feat(deploy): Schedule on node with db
This commit is contained in:
parent
694cfc2ffb
commit
ad8d1e1d6e
@ -13,6 +13,17 @@ spec:
|
|||||||
labels:
|
labels:
|
||||||
app: mastodon
|
app: mastodon
|
||||||
spec:
|
spec:
|
||||||
|
affinity:
|
||||||
|
podAntiAffinity:
|
||||||
|
preferredDuringSchedulingIgnoredDuringExecution:
|
||||||
|
- labelSelector:
|
||||||
|
matchExpressions:
|
||||||
|
- key: cnpg.io/cluster
|
||||||
|
operator: In
|
||||||
|
values:
|
||||||
|
- mastodon-db
|
||||||
|
topologyKey: "kubernetes.io/hostname"
|
||||||
|
weight: 100
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsUser: 991
|
runAsUser: 991
|
||||||
runAsGroup: 991
|
runAsGroup: 991
|
||||||
|
Loading…
x
Reference in New Issue
Block a user