add node affinity
This commit is contained in:
parent
0d18e25b98
commit
aea3b6e390
1 changed files with 8 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
||||||
---
|
---
|
||||||
# --------------------------------------------------
|
# --------------------------------------------------
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue