Skip to content

Instantly share code, notes, and snippets.

@peschmae
Created December 17, 2024 10:18
Show Gist options
  • Save peschmae/15c9937b98b5d92286094755994b3a34 to your computer and use it in GitHub Desktop.
Save peschmae/15c9937b98b5d92286094755994b3a34 to your computer and use it in GitHub Desktop.
#@data/values
---
topologySpreadConstraints:
- maxSkew: 1
topologyKey: ""
whenUnsatisfiable: "ScheduleAnyway"
#@ load("@ytt:data", "data")
#@ def labels():
app: echo
org: test
#@ end
kind: Pod
apiVersion: v1
metadata:
name: echo-app
labels: #@ labels()
spec:
topologySpreadConstraints: #@ data.values.topologySpreadConstraints
containers:
- name: blub
image: hashicorp/http-echo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment