Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- USER StuDENT
- student@control:~/cka$ history
- 1 sudo -i
- 2 ls -l .kube/config
- 3 kubectl get all
- 4 kubectl apply -f https://docs.projectcalico.org/manifests/calico.yaml
- 5 kubectl get ns
- 6 kubectl get all -n kube-system
- 7 kubectl get nodes
- 8 kubectl create deploy testginx --image=nginx --replicas=3
- 9 kubectl get pods -o wide
- 10 sudo -i
- 11 history
- 12 kubectl get pods -n kube-system
- 13 kubectl describe etcd-control
- 14 kubectl describe etcd-control -n kube-system
- 15*
- 16 kubectl -n kube-system describe deploy
- 17 cd cka
- 18 git clone https://github.com/sandervanvugt/cka
- 19 cd cka/
- 20 vim kubeadm-config.yaml
- 21 kubectl version
- 22 vim kubeadm-config.yaml
- 23 source <(kubectl completion bash)
- 24 kubectl create ns mynamespace
- 25 kubectl run mypod --image=alpine -n mynamespace -- sleep 3600
- 26 kubectl get pods -n mynamespace
- 27 kubectl get pods -n mynamespace -o yaml
- 28 sudo -i
- 29 kubectl get pods -n kube-system
- 30 kubectl get pods -n kube-system -o wide
- 31 kubectl get nodes
- 32 kubectl get all -n kube-system
- 33 kubectl describe daemonsets.apps calico-node
- 34 kubectl describe daemonsets.apps calico-node -n kube-system
- 35 kubectl get pods -n kube-system
- 36 kubectl describe -n kube-system pod calico-node-8kxht
- 37 kubectl logs -n kube-system calico-node-m4mj5
- 38 history
- 39 ./counter.sh 12
- 40 ./counter.sh 5
- 41 vim multi.yaml
- 42 kubectl create -f multi.yaml
- 43 kubectl get pods
- 44 kubectl describe pods three-containers
- 45 kubectl delete -f multi.yaml
- 46 vim multi.yaml
- 47 kubectl create -f multi.yaml
- 48 kubectl get pods
- 49 cat multi.yaml
- 50 vim wg.yaml
- 51 kubectl create -f wg.yaml
- 52 kubectl get pods
- 53 cat wg.yaml
- 54 ./counter.sh 18
- 55 kubectl create quota -h | less
- 56 kubectl set resources -h | less
- 57 ./counter.sh 7
- 58 cd
- 59 kubectl create ns restricted
- 60 kubectl get ns
- 61 kubectl create quota qtest --hard pods=3,cpu=100m,memory=500Mi -n restricted
- 62 kubectl describe quota -n restricted
- 63 kubectl create deploy rginx --image=nginx --replicas=3 -n restricted
- 64 kubectl describe quota -n restricted
- 65 kubectl get all -n restricted
- 66 kubectl describe deployments.apps rginx -n restricted
- 67 kubectl describe deployments.apps rginx-95d54596d -n restricted
- 68 kubectl describe -n restricted replicasets.apps rginx-95d54596d
- 69 kubectl set resources deploy rginx --requests cpu=100m,memory=5Mi --limits cpu=200m,memory=20Mi -n restricted
- 70 kubectl get all -n restricted
- 71 kubectl describe -n restricted quota
- 72 kubectl -n restricted edit quota
- 73 kubectl describe -n restricted quota
- 74 kubectl edit deployments.apps -n restricted rginx
- 75 kubectl describe -n restricted quota
- 76 kubectl run -n restricted busybox -- sleep 3600
- 77 kubectl run bbox -n restricted --image=busybox -- sleep 3600
- 78 kubectl run -h
- 79 kubectl -n restricted get pods -o yaml
- 80 kubectl run bbox -n restricted --image=busybox --dry-run=client -o yaml -- sleep 3600 > bbox.yaml
- 81 vim bbox.yaml
- 82 kubectl create -f bbox.yaml
- 83 vim bbox.yaml
- 84 kubectl explain pod.spec --recursive | less
- 85 kubectl explain pod.spec | less
- 86 vim bbox.yaml
- 87 kubectl create -f bbox.yaml
- 88 history
- 89 cka/counter.sh 8
- 90 cka/counter.sh 12
- 91 vim rs.yaml
- 92 kubectl api-resources | less
- 93 vim rs.yaml
- 94 kubectl create -f rs.yaml
- 95 kubectl get pvc,pv
- 96 cd cka/
- 97 vim nwpolicy-complete-example.yaml
- 98 kubectl create -f nwpolicy-complete-example.yaml
- 99 kubectl get all
- 100 kubectl get nwp
- 101 kubectl get networkpolicy
- 102 kubectl expose pod nginx --port=80
- 103 kubectl exec -it busybox -- wget --spider --timeout=1 nginx
- 104 kubectl get pods --show-labels
- 105 kubectl get networkpolicy -o yaml
- 106 kubectl label pod busybox access=true
- 107 kubectl exec -it busybox -- wget --spider --timeout=1 nginx
- 108 rm ~/.kube/config
- 109 kubectl get all
- 110 ls ~/.kube/
- 111 sudo cp -i /etc/kubernetes/admin.conf ~/.kube/config
- 112 ls -l ~/.kube
- 113 kubectl get all
- 114 sudo chown student:student ~/.kube/config
- 115 kubectl get all
- 116 kubectl get pods -n kube-system
- 117 ps aux | grep apiserver
- 118 kubectl config view
- 119 less ~/.kube/config
- 120 history
- USER ROOTroot@control:~# history
- 1 vim /etc/hosts
- 2 cat /etc/hosts
- 3 ping worker1
- 4 git clone https://github.com/sandervanvugt/cka
- 5 cd cka
- 6 ls *sh
- 7 ./setup-container.sh
- 8 ls *sh
- 9 ./setup-kubetools-new.sh
- 10 vim kubeadm-config.yaml
- 11 kubectl version
- 12 vim kubeadm-config.yaml
- 13 kubeadm init --help | less
- 14 kubeadm init --kubeadmin-config.yaml
- 15 kubeadm init --config kubeadmin-config.yaml
- 16 kubeadm init --config kubeadm-config.yaml
- 17 vim join.txt
- 18 history
- 19 cat kubeadm-config.yaml
- 20 exit
- 21 history
- 22 exit
- 23 systemctl status containerd
- 24 systemctl status kubelet
- 25 exit
- 26 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement