FEAT(web-apps): enable HA with replica 2 and soft anti-affinity
- Add replicaCount: 2 to all web applications - Add soft pod anti-affinity for node distribution - Update chart template to handle affinity correctly - Configure affinity for todo, portfolio, jovies, jotion, joossam, joossam-dev, jaejadle, jaejadle-dev
This commit is contained in:
@@ -76,7 +76,20 @@ spec:
|
||||
{{- end }}
|
||||
{{- with .Values.affinity }}
|
||||
affinity:
|
||||
{{- if and .podAntiAffinity .podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution }}
|
||||
podAntiAffinity:
|
||||
preferredDuringSchedulingIgnoredDuringExecution:
|
||||
{{- range .podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution }}
|
||||
- weight: {{ .weight }}
|
||||
podAffinityTerm:
|
||||
labelSelector:
|
||||
matchLabels:
|
||||
app: {{ include "web-app.fullname" $ }}
|
||||
topologyKey: {{ .podAffinityTerm.topologyKey }}
|
||||
{{- end }}
|
||||
{{- else }}
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- with .Values.tolerations }}
|
||||
tolerations:
|
||||
|
||||
Reference in New Issue
Block a user