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

19 lines
513 B
YAML
Raw Normal View History

2021-12-27 00:11:38 +00:00
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: postgres
spec:
template:
spec:
affinity:
podAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 1
podAffinityTerm:
labelSelector:
matchExpressions:
- key: app.kubernetes.io/name
operator: In
values:
- nextcloud
topologyKey: kubernetes.io/hostname