19 lines
513 B
YAML
19 lines
513 B
YAML
|
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
|