add node affinity

This commit is contained in:
Jun-te Kim 2026-02-14 14:05:47 +00:00
parent 0d18e25b98
commit aea3b6e390

View file

@ -14,6 +14,14 @@ spec:
storageClassName: local-storage storageClassName: local-storage
hostPath: hostPath:
path: /home/kimjunte/k8s_storage/postgres/${PG_VOLUME} path: /home/kimjunte/k8s_storage/postgres/${PG_VOLUME}
nodeAffinity:
required:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- mist
--- ---
# -------------------------------------------------- # --------------------------------------------------