Skip to content

Instantly share code, notes, and snippets.

@cwilkers
Created January 23, 2020 15:21
Show Gist options
  • Save cwilkers/4f45e11b908278d793bb5760889d0790 to your computer and use it in GitHub Desktop.
Save cwilkers/4f45e11b908278d793bb5760889d0790 to your computer and use it in GitHub Desktop.
Pod definition using pinned stress container
apiVersion: v1
kind: Pod
metadata:
generateName: stress-
spec:
containers:
- name: cpu-demo-ctr
image: quay.io/cwilkers/stress-pin
resources:
limits:
cpu: 4
memory: "4G"
args:
- --cpus
- "4"
- -first-cpu
- "2"
nodeSelector:
node-role.kubernetes.io/worker-rt: ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment