Skip to content

Instantly share code, notes, and snippets.

@pulumipus
Last active July 17, 2020 18:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pulumipus/fbf24163a0506c4d678500a92ac56981 to your computer and use it in GitHub Desktop.
Save pulumipus/fbf24163a0506c4d678500a92ac56981 to your computer and use it in GitHub Desktop.
spec: {
serviceAccountName: "default",
securityContext: {
fsGroup: 1001,
runAsUser: 1001
},
affinity: {
podAntiAffinity: {
preferredDuringSchedulingIgnoredDuringExecution: [
{
weight: 1,
podAffinityTerm: {
topologyKey: "kubernetes.io/hostname",
labelSelector: {
matchLabels: {
app: "mariadb",
release: "example"
}
}
}
}
]
}
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment