Skip to content

Instantly share code, notes, and snippets.

@chadmcrowell
Created February 5, 2026 17:00
Show Gist options
  • Select an option

  • Save chadmcrowell/d22ae20a1e71d65825a93727dfe501c9 to your computer and use it in GitHub Desktop.

Select an option

Save chadmcrowell/d22ae20a1e71d65825a93727dfe501c9 to your computer and use it in GitHub Desktop.
Pod with Toleration for Control Plane
apiVersion: v1
kind: Pod
metadata:
name: my-pod
namespace: default
spec:
tolerations:
- key: "node-role.kubernetes.io/control-plane"
operator: "Exists"
effect: "NoSchedule"
containers:
- name: nginx
image: nginx:latest
ports:
- containerPort: 80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment