zh_trans: add quota-memory-cpu-namespace.md (#11047)

* zh_trans: add quota-memory-cpu-namespace.md

zh_trans: add quota-memory-cpu-namespace.md

* Create quota-mem-cpu.yaml

* Create quota-mem-cpu-pod.yaml

* Create quota-mem-cpu-pod-2.yaml

* Fixes due to review
This commit is contained in:
AdamDang
2018-11-20 13:31:55 +08:00
committed by k8s-ci-robot
parent 6fb9a555a7
commit 0b05bbbbc7
4 changed files with 348 additions and 0 deletions
@@ -0,0 +1,16 @@
apiVersion: v1
kind: Pod
metadata:
name: quota-mem-cpu-demo-2
spec:
containers:
- name: quota-mem-cpu-demo-2-ctr
image: redis
resources:
limits:
memory: "1Gi"
cpu: "800m"
requests:
memory: "700Mi"
cpu: "400m"
@@ -0,0 +1,16 @@
apiVersion: v1
kind: Pod
metadata:
name: quota-mem-cpu-demo
spec:
containers:
- name: quota-mem-cpu-demo-ctr
image: nginx
resources:
limits:
memory: "800Mi"
cpu: "800m"
requests:
memory: "600Mi"
cpu: "400m"
@@ -0,0 +1,10 @@
apiVersion: v1
kind: ResourceQuota
metadata:
name: mem-cpu-demo
spec:
hard:
requests.cpu: "1"
requests.memory: 1Gi
limits.cpu: "2"
limits.memory: 2Gi