Skip to content
Snippets Groups Projects

Implement PDB and running replicas across zones(azure aks)

Closed Bhargav Pandya requested to merge pdb into master
2 files
+ 29
0
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -40,6 +40,25 @@ spec:
{{- if .Values.nodepool }}
nodeSelector:
agentpool: {{ .Values.nodepool }}
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 1
podAffinityTerm:
labelSelector:
matchExpressions:
- key: app
operator: In
values:
- {{ .Values.deployment.name }}{{ include "os-wellbore-ddms.name-suffix" . }}
topologyKey: topology.kubernetes.io/zone
topologySpreadConstraints:
- maxSkew: 1
topologyKey: topology.kubernetes.io/zone
whenUnsatisfiable: ScheduleAnyway
labelSelector:
matchLabels:
app: {{ .Values.deployment.name }}{{ include "os-wellbore-ddms.name-suffix" . }}
{{- end }}
volumes:
# Note:
Loading