fix(deployment): Bind pod on master db node
This commit is contained in:
parent
a0df2d736c
commit
861bb04d25
@ -13,6 +13,20 @@ spec:
|
|||||||
labels:
|
labels:
|
||||||
app: dawarich
|
app: dawarich
|
||||||
spec:
|
spec:
|
||||||
|
affinity:
|
||||||
|
podAffinity:
|
||||||
|
requiredDuringSchedulingIgnoredDuringExection:
|
||||||
|
- labelSelector:
|
||||||
|
matchExpressions:
|
||||||
|
- key: cnpg.io/cluster
|
||||||
|
operator: In
|
||||||
|
values:
|
||||||
|
- dawarich-db
|
||||||
|
- key: cnpg.io/instanceRole
|
||||||
|
operator: In
|
||||||
|
values:
|
||||||
|
- primary
|
||||||
|
topologyKey: "kubernetes.io/hostname"
|
||||||
containers:
|
containers:
|
||||||
- name: dawarich
|
- name: dawarich
|
||||||
image: freikin/dawarich:0.26.3
|
image: freikin/dawarich:0.26.3
|
||||||
|
Loading…
x
Reference in New Issue
Block a user