Skip to content

Latest commit

 

History

History
26 lines (13 loc) · 399 Bytes

practice-questions.md

File metadata and controls

26 lines (13 loc) · 399 Bytes

Practice questions

Create a pod from the image nginx

kubectl run nginx --image=nginx

Create a pod from the image nginx with the yaml spec and do not apply it (hint : use dry-run)

kubectl run nginx --image=nginx --dry-run=client -o yaml > pod.yaml

Deploy a pod named pod-test using the image nginx:1.2-alpine

kubectl run pod-test --image=nginx:1.2-alpine