Skip to content

Instantly share code, notes, and snippets.

@RoyLDD
Created June 28, 2020 14:16
Show Gist options
  • Save RoyLDD/23116e269773f30d1aa812e2724fb5f2 to your computer and use it in GitHub Desktop.
Save RoyLDD/23116e269773f30d1aa812e2724fb5f2 to your computer and use it in GitHub Desktop.
Pod with toleration and node selector
apiVersion: v1
kind: Pod
metadata:
name: kubia
spec:
containers:
- image: luksa/kubia
name: kubia
ports:
- containerPort: 8080
protocol: TCP
tolerations:
- key: "dedicated"
operator: "Equal"
value: "app"
effect: "NoSchedule"
nodeSelector:
kube/nodetype: app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment