Skip to content

Commit 0321cc5

Browse files
committed
feat(nextcloud): affinity for cronjob and base nextcloud containers
1 parent 104034b commit 0321cc5

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

flux/apps/nextcloud.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,22 @@ spec:
252252
cronjob:
253253
annotations:
254254
healthcheckSecret: nextcloud-cron
255+
affinity:
256+
podAffinity:
257+
requiredDuringSchedulingIgnoredDuringExecution:
258+
- labelSelector:
259+
matchExpressions:
260+
- key: app.kubernetes.io/name
261+
operator: In
262+
values:
263+
- nextcloud
264+
- key: app.kubernetes.io/component
265+
operator: In
266+
values:
267+
- app
268+
topologyKey: kubernetes.io/hostname
269+
securityContext:
270+
runAsUser: 82
255271
internalDatabase:
256272
enabled: false
257273
externalDatabase:

0 commit comments

Comments
 (0)