Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- student@control:~/cka$ history
- 1 sudo apt install vim git -y
- 2 vim /etc/hosts
- 3 sudo -i
- 4 git clone https://github.com/sandervanvugt/cka
- 5 ip a
- 6 ip route show
- 7 sudo -i
- 8 history
- 9 git clone https://github.com/sandervanvugt/cka
- 10 cd cka
- 11 ls *sh
- 12 sudo ./setup-container.sh
- 13 ls *sh
- 14 sudo ./setup-kubetools.sh
- 15 history
- 16 sudo kubeadm init
- 17 kubectl get all
- 18 kubectl create -f https://raw.githubusercontent.com/projectcalico/calico/v3.26.0/manifests/tigera-operator.yaml
- 19 kubectl create -f https://raw.githubusercontent.com/projectcalico/calico/v3.26.0/manifests/custom-resources.yaml
- 20 kubectl get ns
- 21 kubectl get pods
- 22 kubectl get pods -n tigera-operator
- 23 kubectl get pods -n kube-system
- 24 kubectl create -f https://raw.githubusercontent.com/projectcalico/calico/v3.26.0/manifests/custom-resources.yaml
- 25 kubectl apply -f https://raw.githubusercontent.com/projectcalico/calico/v3.26.0/manifests/custom-resources.yaml
- 26 kubectl apply -f https://raw.githubusercontent.com/projectcalico/calico/v3.25.0/manifests/calico.yaml
- 27 kubectl get ns
- 28 kubectl get pods
- 29 kubectl get pods -n kube-system
- 30 kubectl get nodes
- 31 kubectl create deploy testginx --image=nginx
- 32 kubectl get pods
- 33 kubectl get nodes
- 34 history
- 35 kubectl get pods -n kube-system
- 36 source <(kubectl completion bash)
- 37 kubectl create ns mynamespace
- 38 kubectl run task2pod --image=alpine -- sleep 3600
- 39 kubectl run -n mynamespace task2pod --image=alpine -- sleep 3600
- 40 kubectl get pods -n mynamespace
- 41 kubectl edit -n mynamespace pod task2pod
- 42 history
- 43 vim lab3.yaml
- 44 kubectl apply -f lab3.yaml
- 45 kubectl get pods
- 46 kubectl describe pod task3pod
- 47 kubectl run failingbox --image=busybox
- 48 kubectl get pods
- 49 kubectl delete pod failingbox
- 50 kubectl run succesfulbox --image=busybox -- sleep 3600
- 51 kubectl get pods
- 52 kubectl get pods -o yaml
- 53 kubectl get pods succesfulbox -o yaml | less
- 54 kubectl create quota -h | less
- 55 kubectl create ns limited
- 56 kubectl create quota qtest --hard pods=3,cpu=100m.memory=500Mi -n limited
- 57 kubectl create quota qtest --hard pods=3,cpu=100m,memory=500Mi -n limited
- 58 kubectl describe quota -n limited
- 59 kubectl create deploy nginx --image=nginx:latest --replicas=3 -n limited
- 60 kubectl get all -n limited
- 61 kubectl describe -n limited rs/nginx-7bf8c77b5b
- 62 kubectl set -h
- 63 kubectl set resources -h
- 64 kubectl set resources -n limited --requests cpu=100m,memory=5Mi --limits cpu=200m,memory=20Mi
- 65 kubectl set resources -n limited --requests cpu=100m,memory=5Mi --limits cpu=200m,memory=20Mi deploy nginx
- 66 kubectl get all -n limited
- 67 kubectl describe -n limited
- 68 kubectl describe ns limited
- 69 kubectl edit ns limited
- 70 kubectl edit -n limited quota qtest
- 71 kubectl get all -n limited
- 72 kubectl scale -n limited deploy nginx --replicas=3
- 73 kubectl get all -n limited
- 74 ./counter.sh 8
- 75 history
- 76 cat /etc/os-release
- 77 history | less
- 78 vim nwpolicy-complete-example.yaml
- 79 kubectl apply -f nwpolicy-complete-example.yaml
- 80 kubectl expose pod nginx --port=80
- 81 kubectl describe svc nginx
- 82 kubectl exec -it busybox -- wget --spider --timeout=1 nginx
- 83 kubectl label pod busybox access=true
- 84 kubectl exec -it busybox -- wget --spider --timeout=1 nginx
- 85 kubectl create ns nwp-namespace
- 86 vim nwp-lab9-1.yaml
- 87 kubectl create -f nwp-lab9-1.yaml
- 88 kubectl expose pod nwp-nginx --port=80
- 89 kubectl exec -it newp-busybox -n nwp-namespace -- wget --spider --timeout=1 nwp-nginx
- 90 kubectl exec -it nwp-busybox -n nwp-namespace -- wget --spider --timeout=1 nwp-nginx
- 91 kubectl exec -it nwp-busybox -n nwp-namespace -- nslookup nwp-nginx
- 92 kubectl exec -it nwp-busybox -n nwp-namespace -- nslookup nwp-nginx.default.svc.cluster.local
- 93 kubectl get svc
- 94 kubectl exec -it nwp-busybox -n nwp-namespace -- wget --spider --timeout=1 nwp-nginx.default.svc.cluster.local
- 95 vim nwp-lab9-1.yaml
- 96 vim nwp-lab9-2.yaml
- 97 kubectl create -f nwp-lab9-2.yaml
- 98 kubectl exec -it nwp-busybox -n nwp-namespace -- wget --spider --timeout=1 nwp-nginx.default.svc.cluster.local
- 99 kubectl create deployment busybox --image=busybox --sleep 3600
- 100 kubectl create deployment busybox --image=busybox -- sleep 3600
- 101 kubectl exec -it busybox-c95495658-ljctl -- wget --spider --timeout=1 nwp-nginx
- 102 kubectl delete -f nwp-lab9-2.yaml
- 103 echo google for ahmetdb
- 104 ./counter.sh 20
- 105 vim rh.yaml
- 106 ./counter.sh 5
- 107 vim rh.yaml
- 108 vim wz.yaml
- 109 history
- 110 vim wz-lab6.yaml
- 111 kubectl get pods
- 112 kubectl get pods busybox -o yaml | less
- 113 vim wz-lab6.yaml
- 114 kubectl apply -f wz-lab6.yaml
- 115 vim wz-lab6.yaml
- 116 kubectl apply -f wz-lab6.yaml
- 117 kubectl expose pod task6pod --port=80
- 118 kubectl get svc
- 119 kubectl edit svc task6pod
- 120 kubectl get svc
- 121 curl 192.168.29.81:31761
- 122 kubectl get pods task6pod -o yaml | less
- 123 kubectl exec -it task6pod -- sh
- 124 kubectl exec -it task6pod -c nginx -- sh
- 125 curl 192.168.29.81:31761
- 126 kubectl delete -f wz-lab6.yaml
- 127 vim wz-lab6.yaml
- 128 kubectl apply -f wz-lab6.yaml
- 129 kubectl expose pod task6podsvv --type=NodePort
- 130 kubectl expose pod task6podsvv --type=NodePort --port=80
- 131 kubectl get svc
- 132 curl 192.168.29.81:30130
- 133 history
- student@control:~/cka$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement