Create the pod in the "qos-example" namespace.
$ kubectl create namespace qos-example

$ kubectl create -f Pod_2.yaml
$ kubectl create -f https://k8s.io/examples/pods/qos/qos-pod-5.yaml

$ kubectl get pod qos-demo-5 --output=yaml --namespace=qos-example
...
spec:
  containers:
    ...
    resizePolicy:
    - resourceName: cpu
      restartPolicy: NotRequired
    - resourceName: memory
      restartPolicy: NotRequired
    resources:
      limits:
        cpu: 700m
        memory: 200Mi
      requests:
        cpu: 700m
        memory: 200Mi
...
  containerStatuses:
...
    name: qos-demo-ctr-5
    ready: true
...
    allocatedResources:
      cpu: 700m
      memory: 200Mi
    resources:
      limits:
        cpu: 700m
        memory: 200Mi
      requests:
        cpu: 700m
        memory: 200Mi
    restartCount: 0
    started: true
...
  qosClass: Guaranteed

Now, updating the patch the Pod's Container with CPU requests & limits both set to 800m.
$ kubectl -n qos-example patch pod qos-demo-5 --patch '{"spec":{"containers":[{"name":"qos-demo-ctr-5", "resources":{"requests":{"cpu":"800m"}, "limits":{"cpu":"800m"}}}]}}'

Query the Pod's detailed information after the Pod has been patched.
$ kubectl get pod qos-demo-5 --output=yaml --namespace=qos-example
...
spec:
  containers:
    ...
    resources:
      limits:
        cpu: 800m
        memory: 200Mi
      requests:
        cpu: 800m
        memory: 200Mi
...
  containerStatuses:
...
    allocatedResources:
      cpu: 800m
      memory: 200Mi
    resources:
      limits:
        cpu: 800m
        memory: 200Mi
      requests:
        cpu: 800m
        memory: 200Mi
    restartCount: 0
    started: true

Observe that the allocatedResources values have been updated to reflect the new desired CPU requests. 
This indicates that node was able to accommodate the increased CPU resource needs.
In the Container's status, updated CPU resource values shows that new CPU resources have been applied. 
The Container's restartCount remains unchanged, indicating that container's CPU resources were resized without restarting the container.

Delete the namespace.
$ kubectl delete namespace qos-example
