This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CKAD | |
Core Concepts (13%) | |
kubectl create namespace mynamespace | |
kubectl run nginx --image=nginx --restart=Never -n mynamespace | |
kubectl run nginx --image=nginx --restart=Never --dry-run -o yaml > myfile.yaml | |
kubectl run busybox --image=busybox --command --restart=Never -it -- env #withoutput | |
kubectl run busybox --image=busybox --command --restart=Never -- env #with | |
kubectl logs busybox | |
kubectl run busybox --image=busybox --restart=Never -o yaml --dry-run --command env > myfile.yaml | |
kubectl apply -f myfile.yaml |