apiVersion: apps/v1 kind: Deployment metadata: name: controllerbackupmonitoring namespace: monitoring spec: selector: matchLabels: app: controllerbackupmonitoring template: metadata: labels: app: controllerbackupmonitoring spec: terminationGracePeriodSeconds: 0 tolerations: - effect: NoSchedule key: node-role.kubernetes.io/control-plane operator: Exists - effect: NoSchedule key: node-role.kubernetes.io/master operator: Exists affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: node-role.kubernetes.io/control-plane operator: Exists containers: - name: exporter image: docker.example.com/filemonitor:1.0 args: - python3 - -u - /exporter.py - backup:/backup/etcd-snapshot-latest.db - image:/backup/etcdimage ports: - containerPort: 8080 protocol: TCP name: http volumeMounts: - name: controllerbackup mountPath: /backup readOnly: true volumes: - name: controllerbackup hostPath: path: /var/lib/wamblee/etcd