fix(deployment): Bind pod on master db node
This commit is contained in:
parent
a0df2d736c
commit
861bb04d25
@ -13,6 +13,20 @@ spec:
|
||||
labels:
|
||||
app: dawarich
|
||||
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:
|
||||
- name: dawarich
|
||||
image: freikin/dawarich:0.26.3
|
||||
|
Loading…
x
Reference in New Issue
Block a user