ensure nextcloud cronjobs are scheduled on the same node as the running pod
This commit is contained in:
@@ -10,6 +10,21 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
template:
|
template:
|
||||||
spec:
|
spec:
|
||||||
|
affinity:
|
||||||
|
podAffinity:
|
||||||
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
|
- labelSelector:
|
||||||
|
matchExpressions:
|
||||||
|
- key: app.kubernetes.io/name
|
||||||
|
operator: In
|
||||||
|
values:
|
||||||
|
- nextcloud
|
||||||
|
# This is the selector for the node
|
||||||
|
# So when you find a valid node - schedule the pod to the
|
||||||
|
# node that matches hostname
|
||||||
|
# needed for iscsi mounts
|
||||||
|
topologyKey: kubernetes.io/hostname
|
||||||
|
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsUser: 33
|
runAsUser: 33
|
||||||
runAsGroup: 33
|
runAsGroup: 33
|
||||||
|
|||||||
Reference in New Issue
Block a user