Update backup job running nodes

This commit is contained in:
2022-04-29 09:14:47 +10:00
parent 955eedc333
commit 6b301f3934
+14 -10
View File
@@ -27,16 +27,18 @@ spec:
name: backup
hostNetwork: true
restartPolicy: Never
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: node-role.kubernetes.io/master
operator: Exists
tolerations:
- effect: NoSchedule
operator: Exists
nodeSelector:
gateway: "true"
# affinity:
# nodeAffinity:
# requiredDuringSchedulingIgnoredDuringExecution:
# nodeSelectorTerms:
# - matchExpressions:
# - key: node-role.kubernetes.io/master
# operator: Exists
# tolerations:
# - effect: NoSchedule
# operator: Exists
volumes:
- name: etcd-certs
hostPath:
@@ -79,6 +81,8 @@ spec:
subPath: postgres
name: backup
restartPolicy: OnFailure
nodeSelector:
gateway: "true"
tolerations:
- effect: NoSchedule
operator: Exists