docs | tasks | configure-pod-container | assign cpu (#15065)
* tasks cpu resource * paraphrasing
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
17e360c389
commit
4395684e07
@@ -0,0 +1,17 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: cpu-demo
|
||||
namespace: cpu-example
|
||||
spec:
|
||||
containers:
|
||||
- name: cpu-demo-ctr
|
||||
image: vish/stress
|
||||
resources:
|
||||
limits:
|
||||
cpu: "1"
|
||||
requests:
|
||||
cpu: "0.5"
|
||||
args:
|
||||
- -cpus
|
||||
- "2"
|
||||
Reference in New Issue
Block a user