Pods contd
- Kubernetes supports three Quality of Service classes for containers in pods
- Guranteed
- Burstable
- Best Efforts
- Refer Here for official docs
- The containers running a a pod without mentioning resources it requires falls under best effort.
- The containers running in a pod with minimum resources required and maximum resources required mentioned fall under
- Burstable (if minimum < maximum)
- Guranteed (if minimum == maximum)
How to mention resources -> requests and limits
- Refer Here for requests and limits
Best-efforts
- sample
---
apiVersion: v1
kind: Pod
metadata:
name: best-efforts
labels:
app: httpd
purpose: learning
env: dev
spec:
containers:
- name: httpd
image: httpd:latest
ports:
- name: httpd
protocol: TCP
containerPort: 80
- Scheduler will look into nodes and assigns this pod to any node
Burstable
- Refer Here for mentioning resources
- Refer Here for all the yaml files which we have used to understand impact of resources on Pods and scheduling the pods.
Inspecting pods
- kubectl has a command called describe
kubectl describe <type> <name>
kubectl get <type> <name>
kubectl get <type> <name> -o yaml
Figuring out what can be created in a k8s cluster
- execute the following command
kubectl api-resources


