Skip to content

Instantly share code, notes, and snippets.

@janeczku
Created July 27, 2022 16:55
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 janeczku/1ebe15a9e26ee990515fb9bf0a3c3bff to your computer and use it in GitHub Desktop.
Save janeczku/1ebe15a9e26ee990515fb9bf0a3c3bff to your computer and use it in GitHub Desktop.
K8s CPU Pinning Test Workload
apiVersion: apps/v1
kind: Deployment
metadata:
name: cpu-stress
namespace: default
spec:
replicas: 3
selector:
matchLabels:
app: cpu-stress
template:
metadata:
labels:
app: cpu-stress
spec:
containers:
- args:
- -cpus
- "1"
image: vish/stress
name: container-0
resources:
limits:
cpu: "1"
memory: 256Mi
requests:
cpu: "1"
memory: 256Mi
nodeName: replace-with-worker-node-name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment