Created
July 27, 2022 16:55
-
-
Save janeczku/1ebe15a9e26ee990515fb9bf0a3c3bff to your computer and use it in GitHub Desktop.
K8s CPU Pinning Test Workload
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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