Complete the YAML to set a pod with the BestEffort QoS class by leaving out resource requests and limits.
apiVersion: v1
kind: Pod
metadata:
name: best-effort-pod
spec:
containers:
- name: app
image: nginx
resources:
[1]BestEffort pods have no resource requests or limits set. The resources field is left empty or omitted entirely, represented here as (none).
Complete the YAML to set a pod with Burstable QoS by specifying resource requests but no limits.
apiVersion: v1
kind: Pod
metadata:
name: burstable-pod
spec:
containers:
- name: app
image: nginx
resources:
requests:
memory: [1]Setting resource requests without limits makes the pod Burstable. Here, memory request is set to "256Mi".
Fix the error in this pod spec to make it Guaranteed QoS by matching requests and limits exactly.
apiVersion: v1
kind: Pod
metadata:
name: guaranteed-pod
spec:
containers:
- name: app
image: nginx
resources:
requests:
cpu: "500m"
memory: "256Mi"
limits:
cpu: [1]For Guaranteed QoS, resource requests and limits must be equal. Here, cpu limit must match cpu request "500m".
Fill both blanks to create a pod with Burstable QoS by setting CPU requests and limits correctly.
apiVersion: v1
kind: Pod
metadata:
name: burstable-pod
spec:
containers:
- name: app
image: nginx
resources:
requests:
cpu: [1]
limits:
cpu: [2]Burstable QoS requires requests less than limits. Here, CPU request is "250m" and limit is "500m".
Fill all three blanks to define a pod with Guaranteed QoS by matching CPU and memory requests and limits.
apiVersion: v1
kind: Pod
metadata:
name: guaranteed-pod
spec:
containers:
- name: app
image: nginx
resources:
requests:
cpu: [1]
memory: [2]
limits:
cpu: [3]
memory: [2]Guaranteed QoS requires requests and limits to be equal. CPU requests and limits are "500m", memory requests and limits are "256Mi".