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:
|
spec:
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
- name: forgejo-registry
|
- name: forgejo-registry
|
||||||
|
|
||||||
|
nodeSelector:
|
||||||
|
{{ toYaml .Values.nodeSelector | indent 8 }}
|
||||||
|
|
||||||
|
topologySpreadConstraints:
|
||||||
|
{{ toYaml .Values.topologySpreadConstraints | indent 8 }}
|
||||||
|
|
||||||
containers:
|
containers:
|
||||||
- name: symcrest-web
|
- name: symcrest-web
|
||||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
||||||
|
|
|
||||||
|
|
@ -26,3 +26,14 @@ resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: 250m
|
cpu: 250m
|
||||||
memory: 256Mi
|
memory: 256Mi
|
||||||
|
|
||||||
|
nodeSelector:
|
||||||
|
workload: app
|
||||||
|
|
||||||
|
topologySpreadConstraints:
|
||||||
|
- maxSkew: 1
|
||||||
|
topologyKey: topology.kubernetes.io/zone
|
||||||
|
whenUnsatisfiable: DoNotSchedule
|
||||||
|
labelSelector:
|
||||||
|
matchLabels:
|
||||||
|
app: symcrest-web
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,18 @@ spec:
|
||||||
spec:
|
spec:
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
- name: forgejo-registry
|
- name: forgejo-registry
|
||||||
|
|
||||||
|
nodeSelector:
|
||||||
|
workload: app
|
||||||
|
|
||||||
|
topologySpreadConstraints:
|
||||||
|
- labelSelector:
|
||||||
|
matchLabels:
|
||||||
|
app: symcrest-web
|
||||||
|
maxSkew: 1
|
||||||
|
topologyKey: topology.kubernetes.io/zone
|
||||||
|
whenUnsatisfiable: DoNotSchedule
|
||||||
|
|
||||||
containers:
|
containers:
|
||||||
- name: symcrest-web
|
- name: symcrest-web
|
||||||
image: "www.symcrest.com/symcrest/symcrest-web:1.0.7"
|
image: "www.symcrest.com/symcrest/symcrest-web:1.0.7"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue