~xdavidwu/flux

3fdaf5e85d98852bdd3c118d602719a12e28ac68 — Pinghao Wu a month ago 02c6969
migrate node-exporter to flux
A monitoring/node-exporter/daemonset.yaml => monitoring/node-exporter/daemonset.yaml +38 -0
@@ 0,0 1,38 @@
apiVersion: apps/v1
kind: DaemonSet
metadata:
  name: node-exporter
spec:
  template:
    spec:
      containers:
        - name: node-exporter
          image: quay.io/prometheus/node-exporter:v1.8.2
          args:
            - --path.rootfs=/host
            - --no-collector.bcache
            - --no-collector.bonding
            - --no-collector.fibrechannel
            - --no-collector.mdadm
            - --no-collector.nvme
            - --no-collector.nfs
            - --no-collector.nfsd
            - --no-collector.tapestats
            - --no-collector.xfs
            - --no-collector.zfs
            - --collector.filesystem.mount-points-exclude=^(/etc/|/var/lib/kubelet/pods/.|/run/containers/storage/overlay-containers/|/sys|/var/lib/containers/storage/overlay)
          volumeMounts:
            - name: host
              mountPath: /host
              readOnly: true
          readinessProbe:
            httpGet:
              port: 9100
      hostNetwork: true
      volumes:
        - name: host
          hostPath:
            path: /
      tolerations:
        - key: node-role.kubernetes.io/control-plane
          effect: NoSchedule

A monitoring/node-exporter/kustomization.yaml => monitoring/node-exporter/kustomization.yaml +11 -0
@@ 0,0 1,11 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: node-exporter
labels:
  - pairs:
      app: node-exporter
    includeTemplates: true
    includeSelectors: true
resources:
  - namespace.yaml
  - daemonset.yaml

A monitoring/node-exporter/namespace.yaml => monitoring/node-exporter/namespace.yaml +7 -0
@@ 0,0 1,7 @@
apiVersion: v1
kind: Namespace
metadata:
  creationTimestamp: null
  name: node-exporter
spec: {}
status: {}