Hands-on task
Deployment with 3 replicas
This sandbox has its own Kubernetes cluster: it takes longer to start than a regular sandbox, and kubectl is already configured. You need a Deployment web from the nginx:1.27-alpine image with 3 replicas, with its manifest in /root/deploy.yaml. You don't have to write it by hand — it's easier to generate it with a kubectl command in --dry-run=client -o yaml mode. Open the file in the Editor tab and see how kubectl linked the selector to the pod's labels. Then apply the manifest to the cluster and wait until all three replicas are ready.
- kubernetes
- kubectl
- deployment
- dry-run
- manifest generation
- kubectl apply