Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 21 source <(kubectl completion bash)
- 22 kubectl create deployment --image=nginx mynginx --replicas=3
- 23 kubectl get all
- 24 kubectl describe pod mynginx-5b686ccd46-vqkxm
- 25 kubectl get nodes -o wide
- 26 kubectl describe nodes classroom-vm.vm.linuxfriendly.nl
- 27 kubectl taint nodes --all node-role.kubernetes.io/master-
- 28 kubectl get all
- 29 history
- 30 exit
- 31 history
- 32 kubectl proxy --port=8001 &
- 33 curl http://localhost:8001/version
- 34 curl http://localhost:8001/api/
- 35 curl http://localhost:8001/api/v1/
- 36 curl http://localhost:8001/api/v1/namespaces/default/pods
- 37 kubectl get pods
- 38 curl http://localhost:8001/api/v1/namespaces/default/pods/mynginx-5b686ccd46-vqkxm
- 39 curl -XDELETE http://localhost:8001/api/v1/namespaces/default/pods/mynginx-5b686ccd46-vqkxm
- 40 kubectl get pods
- 41 kubectl get all
- 42 history
- 43 cd .kube/
- 44 ls
- 45 cat config
- 46 cd
- 47 kubectl get pods -A
- 48 kubectl config -h | less
- 49 kubectl config view
- 50 kubectl get pods
- 51 history
- 52 kubectl get pods
- 53 kubectl get pods -A
- 54 kubectl get pods
- 55 kubectl run -h | less
- 56 mynginx-5b686ccd46-vqkxm
- 57 kubectl run nginx --image=nginx
- 58 kubectl get all
- 59 kubectl delete pod mynginx-5b686ccd46-qfbg9
- 60 kubectl get all
- 61 kubectl delete pod nginx
- 62 kubectl get all
- 63 cd ckad
- 64 ls
- 65 git clone https://github.com/sandervanvugt/ckad
- 66 cd ckad
- 67 ls
- 68 vim busybox.yaml
- 69 kubectl api-resources | grep pod
- 70 vim busybox.yaml
- 71 kubectl create -f busybox.yaml
- 72 kubectl get pdos
- 73 kubectl get pods
- 74 kubectl run busybox --image=busybox
- 75 kubectl get pods
- 76 kubectl explain pods.spec | less
- 77 kubectl get pods
- 78 source <(kubectl completion bash)
- 79 kubectl describe pod busybox
- 80 kubectl run mydb --image=mariadb
- 81 kubectl get pods
- 82 echo "source <(kubectl completion bash)" >> .bashrc
- 83 kubectl get pods
- 84 kubectl describe mydb
- 85 kubectl describe pods mydb
- 86 kubectl logs mydb
- 87 kubectl edit pods mydb
- 88 kubectl get pods mydb
- 89 kubectl get pods mydb -o yaml | less
- 90 kubectl api-resources | less
- 91 kubectl get pods mydb -o json | less
- 92 kubectl explain pod.spec | less
- 93 kubectl explain --recursive pod.spec | less
- 94 history
- 95 kubectl run -h | less
- 96 kubectl run hazelcast --image=hazelcast/hazelcast --port=5701 --dry-run=client -o yaml
- 97 kubectl run hazelcast --image=hazelcast/hazelcast --port=5701 --dry-run=client -o yaml > myhazel.yaml
- 98 vim myhazel.yaml
- 99 kubectl get pods
- 100 kubectl get pods busybox2 -o yaml | less
- 101 history
- 102 vim ex1b.txt
- 103 history
- [centos@classroom-vm ckad]$ cat ex1b.txt
- 1. run a pod that starts mysql image with all that is necessary to start it successfully.
- 2. after making sure that it runs, create a yaml file so that the next time you can run it from the yaml file
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement