Skip to content

Commit

Permalink
kustomize: add topology spread constaints
Browse files Browse the repository at this point in the history
This will ensure that we are running across multiple availability zones and hosts
  • Loading branch information
james-callahan committed Jul 23, 2024
1 parent 405433f commit ab9eeb8
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions kustomize/resources.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,21 @@ spec:
mountPath: /usr/share/nginx/templated
readOnly: true
serviceAccountName: frames
topologySpreadConstraints:
- maxSkew: 1
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: DoNotSchedule
labelSelector:
matchLabels: {}
matchLabelKeys:
- pod-template-hash
- maxSkew: 1
topologyKey: topology.kubernetes.io/zone
whenUnsatisfiable: ScheduleAnyway
labelSelector:
matchLabels: {}
matchLabelKeys:
- pod-template-hash
volumes:
- name: templated
emptyDir: {}
Expand Down

0 comments on commit ab9eeb8

Please sign in to comment.