Skip to content

Commit

Permalink
Add pod topology spread to helm chart and update storage class for un…
Browse files Browse the repository at this point in the history
…ity-nfs
  • Loading branch information
rbo54 committed Jan 26, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 46b9816 commit fe24a65
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions test/podmontest/deploy/templates/test.yaml
Original file line number Diff line number Diff line change
@@ -30,6 +30,7 @@ spec:
labels:
app: podmontest-{{ .Release.Namespace }}
podmon.dellemc.com/driver: {{ required "Must set driver label" .Values.podmonTest.driverLabel }}
affinity: affinity
spec:
{{- if ne .Values.podmonTest.zone "" }}
affinity:
@@ -54,6 +55,14 @@ spec:
- podmontest-{{ .Release.Namespace }}
topologyKey: "kubernetes.io/hostname"
{{end}}
topologySpreadConstraints:
- maxSkew: {{ required "Number of replicas" .Values.podmonTest.replicas }} #
topologyKey: kubernetes.io/hostname
# whenUnsatisfiable: ScheduleAnyway
whenUnsatisfiable: DoNotSchedule
labelSelector:
matchLabels:
affinity: affinity
serviceAccount: podmontest
containers:
- name: podmontest
2 changes: 1 addition & 1 deletion test/podmontest/deploy/values-unity-nfs.yaml
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@ podmonTest:
image: "registry:port/podmontest:v0.0.54"
namespace: "podmontest"
driverLabel: csi-unity
storageClassName: unity-virt21048j9rzz-nfs
storageClassName: unity-nfs
nvolumes: 2
ndevices: 0
# deploymentType can be "statefulset" or "deployment"

0 comments on commit fe24a65

Please sign in to comment.