Skip to content

Instantly share code, notes, and snippets.

@larkintuckerllc
Created September 14, 2025 15:14
Show Gist options
  • Save larkintuckerllc/7079951e6bc82086aef73280f67cc61e to your computer and use it in GitHub Desktop.
Save larkintuckerllc/7079951e6bc82086aef73280f67cc61e to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Pod
metadata:
annotations:
example.com/nodepool: high-cpu
name: my-workload
namespace: my-namespace
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: zone
operator: In
values:
- us-central1-a
containers:
- name: ubuntu-container
image: ubuntu:latest
command: ["/bin/bash"]
args: ["-c", "sleep infinity"]
tolerations:
- key: hello
operator: Equal
value: world
effect: NoSchedule
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment