May 2018
Intermediate to advanced
554 pages
13h 51m
English
There are two ways to set a Resource QoS: pod configuration or namespace configuration. If you set a Resource QoS to the Namespace, it will apply to all pods that belong to the same Namespace. If you set a Resource QoS to a pod, it will apply to the pod only. In addition, if you set it to both namespace and pod, it takes a value from the namespace configuration first, and then overwrite it with the pod configuration. Thus, we will set up two Namespaces, one which has a Resource QoS, and one that does not, to see how different they are:
$ kubectl create namespace chap8-no-qosnamespace "chap8-no-qos" created$ kubectl create namespace chap8-qosnamespace "chap8-qos" ...