Skip to content

Commit 696615c

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

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

flux/apps/nextcloud.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,20 @@ 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
255269
internalDatabase:
256270
enabled: false
257271
externalDatabase:

0 commit comments

Comments
 (0)