Kubernetes 101: Excercise 4 for CKA (kubectl create a deployment, status pods)
Following our journey on the preparation towards the exam CKA (Certified Kubernetes Administrator), we continue this time with the exercise number 4.
Exercise 4:
- Run kubectl to create a deployment test called webapp7 and use the image ngnix1.16-alpine-perl
- Modify the quantity of replicas to 10 inside the webapp7.yaml file
- Check the status of the pods
Solution:
k create deploy webapp7 --image=ngnix1.16-alpine-perl --dry-run=client -o yaml > webapp7.yaml
Comments