mirror of
https://github.com/wahyd4/home-docker.git
synced 2026-08-09 04:15:52 +10:00
Update backup job running nodes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user