Hands-on task
Resource limits in a Deployment
/root/limited.yaml already describes a working Deployment api (image nginx:1.27-alpine), but the container has no resources set — in prod that's dangerous. Open the file in the Editor tab and give the container requests (cpu 100m, memory 128Mi) and limits (cpu 500m, memory 256Mi). Then apply the manifest to this sandbox's Kubernetes cluster (kubectl is already configured), wait until it's ready and see which QoS class the pod got.
- kubernetes
- deployment
- resources
- requests-limits
- yq
- qos
- kubectl apply