48 lines
1.2 KiB
YAML
48 lines
1.2 KiB
YAML
|
apiVersion: apps/v1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
name: pantherbackupmonitoring
|
||
|
namespace: monitoring
|
||
|
spec:
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app: pantherbackupmonitoring
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
app: pantherbackupmonitoring
|
||
|
prometheus-scrapable: "true"
|
||
|
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
|
||
|
nodeSelector:
|
||
|
kubernetes.io/hostname: panther
|
||
|
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: pantherbackup
|
||
|
mountPath: /backup
|
||
|
readOnly: true
|
||
|
volumes:
|
||
|
- name: pantherbackup
|
||
|
hostPath:
|
||
|
path: /var/lib/wamblee/etcd
|
||
|
|