Scale to 3 replicas spread across physical hosts
- 3 replicas with pod anti-affinity on physical-host topology key - Tolerate control-plane taint so pods can schedule on cp nodes
This commit is contained in:
parent
be0dfd898d
commit
69cfda7e8c
1 changed files with 12 additions and 1 deletions
|
|
@ -4,7 +4,7 @@ metadata:
|
||||||
name: prop
|
name: prop
|
||||||
namespace: prop
|
namespace: prop
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 3
|
||||||
minReadySeconds: 10
|
minReadySeconds: 10
|
||||||
strategy:
|
strategy:
|
||||||
type: RollingUpdate
|
type: RollingUpdate
|
||||||
|
|
@ -19,6 +19,17 @@ spec:
|
||||||
labels:
|
labels:
|
||||||
app: prop
|
app: prop
|
||||||
spec:
|
spec:
|
||||||
|
tolerations:
|
||||||
|
- key: node-role.kubernetes.io/control-plane
|
||||||
|
operator: Exists
|
||||||
|
effect: NoSchedule
|
||||||
|
affinity:
|
||||||
|
podAntiAffinity:
|
||||||
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
|
- labelSelector:
|
||||||
|
matchLabels:
|
||||||
|
app: prop
|
||||||
|
topologyKey: topology.kubernetes.io/physical-host
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
- name: forgejo-registry
|
- name: forgejo-registry
|
||||||
securityContext:
|
securityContext:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue