Spread symcrest-web across availability zones
This commit is contained in:
parent
677f00c15a
commit
d9fac9fb88
3 changed files with 30 additions and 0 deletions
|
|
@ -16,6 +16,13 @@ spec:
|
|||
spec:
|
||||
imagePullSecrets:
|
||||
- name: forgejo-registry
|
||||
|
||||
nodeSelector:
|
||||
{{ toYaml .Values.nodeSelector | indent 8 }}
|
||||
|
||||
topologySpreadConstraints:
|
||||
{{ toYaml .Values.topologySpreadConstraints | indent 8 }}
|
||||
|
||||
containers:
|
||||
- name: symcrest-web
|
||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
||||
|
|
|
|||
|
|
@ -26,3 +26,14 @@ resources:
|
|||
limits:
|
||||
cpu: 250m
|
||||
memory: 256Mi
|
||||
|
||||
nodeSelector:
|
||||
workload: app
|
||||
|
||||
topologySpreadConstraints:
|
||||
- maxSkew: 1
|
||||
topologyKey: topology.kubernetes.io/zone
|
||||
whenUnsatisfiable: DoNotSchedule
|
||||
labelSelector:
|
||||
matchLabels:
|
||||
app: symcrest-web
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue