Configuring a Burstable pod

The Burstable pod has a priority that is higher than BestEffort but lower than Guaranteed. In order to configure a pod to be a Burstable Pod, you need to set resources.requestresources.limit is optional, but the value of resources.request and resources.limit must not be equal:

  1. Prepare a pod configuration that has resources.request only:
$ cat burstable.ymlapiVersion: v1kind: Podmetadata:  name: burstable-podspec:  containers:  - name: nginx    image: nginx    resources:      requests:        cpu: 0.1        memory: 10Mi      limits:        cpu: 0.5        memory: 300Mi
  1. Create the pod:
$ kubectl create -f burstable.yml --namespace=chap8-no-qospod "burstable-pod" created
  1. Check the QoS class; it is Burstable:
$ kubectl describe pods burstable-pod --namespace=chap8-no-qos ...

Get Kubernetes Cookbook, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.