⦿ Create a Pod that gets assigned a QoS class of Guaranteed

[Create a Namespace]
$ kubectl create namespace qos-example

[Create the Pod]
$ kubectl apply -f Pod_1.yaml --namespace=qos-example
$ kubectl apply -f https://k8s.io/examples/pods/qos/qos-pod.yaml --namespace=qos-example

[View detailed information about the Pod]
$ kubectl get pod qos-demo --namespace=qos-example --output=yaml
...
spec:
  containers:
    ...
    resources:
      limits:
        cpu: 700m
        memory: 200Mi
      requests:
        cpu: 700m
        memory: 200Mi
    ...
status:
  qosClass: Guaranteed

[Delete the Pod]
$ kubectl delete pod qos-demo --namespace=qos-example


⦿ Create a Pod that gets assigned a QoS class of Burstable

[Create the Pod]
$ kubectl apply -f Pod_2.yaml --namespace=qos-example
$ kubectl apply -f https://k8s.io/examples/pods/qos/qos-pod-2.yaml --namespace=qos-example

[View detailed information about the Pod]
$ kubectl get pod qos-demo-2 --namespace=qos-example --output=yaml
...
spec:
  containers:
  - image: nginx
    imagePullPolicy: Always
    name: qos-demo-2-ctr
    resources:
      limits:
        memory: 200Mi
      requests:
        memory: 100Mi
  ...
status:
  qosClass: Burstable

[Delete the Pod]
$ kubectl delete pod qos-demo-2 --namespace=qos-example


⦿ Create a Pod that gets assigned a QoS class of BestEffort

[Create the Pod]
$ kubectl apply -f Pod_3.yaml --namespace=qos-example
$ kubectl apply -f https://k8s.io/examples/pods/qos/qos-pod-3.yaml --namespace=qos-example

[View detailed information about the Pod]
$ kubectl get pod qos-demo-3 --namespace=qos-example --output=yaml
...
spec:
  containers:
    ...
    resources: {}
  ...
status:
  qosClass: BestEffort

[Delete the Pod]
$ kubectl delete pod qos-demo-3 --namespace=qos-example


⦿ Create a Pod that has two Containers

[Create the Pod]
$ kubectl apply -f Pod_4.yaml --namespace=qos-example
$ kubectl apply -f https://k8s.io/examples/pods/qos/qos-pod-4.yaml --namespace=qos-example

[View detailed information about the Pod]
$ kubectl get pod qos-demo-4 --namespace=qos-example --output=yaml
...
spec:
  containers:
    ...
    name: qos-demo-4-ctr-1
    resources:
      requests:
        memory: 200Mi
    ...
    name: qos-demo-4-ctr-2
    resources: {}
    ...
status:
  qosClass: Burstable

[Delete the Pod]
$ kubectl delete pod qos-demo-4 --namespace=qos-example

[Delete the Namespace]
$ kubectl delete namespace qos-example
