You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.4 KiB

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