1
0
Fork 0
home-stack-kustomize/kustomize/bases/nextcloud/patches/redis-podaffinity-patch.yaml

19 lines
509 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: redis
spec:
template:
spec:
affinity:
podAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 1
podAffinityTerm:
labelSelector:
matchExpressions:
- key: app.kubernetes.io/name
operator: In
values:
- nextcloud
topologyKey: kubernetes.io/hostname