Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- student@control:~/ckad$ history
- 1 sudo vim /etc/hosts
- 2 cat /etc/hosts
- 3 sudo apt install vim git bash-completion -y
- 4 git clone https://github.com/sandervanvugt/cka
- 5 cd cka
- 6 ls
- 7 vim setup-container.sh
- 8 ./setup-container.sh
- 9 ls
- 10 vim setup-kubetools.sh
- 11 vim setup-kubetools-ubuntu.sh
- 12 ./setup-kubetools-ubuntu.sh
- 13 history
- 14 cat /etc/hosts
- 15 sudo kubeadm init --help
- 16 sudo kubeadm init --pod-network-cidr=10.10.0.0/16
- 17 mkdir -p $HOME/.kube
- 18 sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
- 19 sudo chown $(id -u):$(id -g) $HOME/.kube/config
- 20 kubectl get all
- 21 kubectl apply -f "https://cloud.weave.works/k8s/net?k8s-version=$(kubectl version | base64 | tr -d '\n')"
- 22 kubectl get nodes
- 23 kubectl create testginx --image=nginx --replicas=3
- 24 kubectl create deploy testginx --image=nginx --replicas=3
- 25 kubectl get all
- 26 ls
- 27 history
- 28 ls
- 29 ./counter.sh 15
- 30 kubectl completion -h
- 31 source <(kubectl completion bash)
- 32 kubectl create namespace mynamespace
- 33 kubectl get ns
- 34 kubectl run mypod --image=alpine -n mynamespace -- sleep 3600
- 35 kubectl get pods mypod -n mynamespace -o yaml | less
- 36 history
- 37 ./counter.sh 15
- 38 vim wg.yaml
- 39 kubectl apply -f wg.yaml
- 40 kubectl get all
- 41 kubectl describe pod myapp-pod
- 42 history
- 43 ./counter.sh
- 44 vim nrv.yaml
- 45 kubectl apply -f nrv.yaml
- 46 kubectl get pods
- 47 kubectl describe pod ex3
- 48 kubectl delete pod ex3
- 49 ls -lrt
- 50 vim nrv.yaml
- 51 kubectl run busybox --image=busybox --dry-run=client -o yaml -- sleep 3600
- 52 vim aj.yaml
- 53 kubectl create -f aj.yaml
- 54 kubectl delete -f aj.yaml
- 55 kubectl create -f aj.yaml
- 56 kubectl get pods
- 57 kubectl describe myapp-pod
- 58 kubectl describe pod myapp-pod
- 59 kubectl logs myapp-pod
- 60 kubectl describe pod myapp-pod
- 61 ./counter.sh 5
- 62 vim wg2.yaml
- 63 kubectl create -f wg2.yaml
- 64 kubectl get all
- 65 kubectl get pod -o wide
- 66 vim svv.yaml
- 67 kubectl create -f svv.yaml
- 68 kubectl create deploy nginx --image=nginx --dry-run -o yaml | \ sed '/null\|{}\|replicas/d;/status/,$d;s/Deployment/DaemonSet/g' > nginx-ds.yaml kubectl apply -f nginx-ds.yaml
- 69 sudo apt install sed
- 70 kubectl create deploy nginx --image=nginx --dry-run -o yaml | \ sed '/null\|{}\|replicas/d;/status/,$d;s/Deployment/DaemonSet/g' > nginx-ds.yaml kubectl apply -f nginx-ds.yaml
- 71 kubectl create deploy nginx --image=nginx --dry-run -o yaml > nginx-ds.yaml
- 72 vim nginx-ds.yaml
- 73 kubectl create -f nginx-ds.yaml
- 74 vim nginx-ds.yaml
- 75 kubectl create -f nginx-ds.yaml
- 76 ./counter.sh 25
- 77 kubectl create deploy nginx --image=nginx --dry-run -o yaml | sed '/null\|{}\|replicas/d;/status/,$d;s/Deployment/DaemonSet/g' > nginx-ds.yaml
- 78 vim nginx-ds.yaml
- 79 ls -lrt
- 80 vim ex18.yaml
- 81 cd /etc/kubernetes/
- 82 ls
- 83 cd manifests/
- 84 ls
- 85 vim kube-scheduler.yaml
- 86 sudo vim kube-scheduler.yaml
- 87 ssh worker1
- 88 cd
- 89 kubectl run auto-web --image=nginx --dry-run=client -o yaml > auto-web.yaml
- 90 cat auto-web.yaml
- 91 kubectl get pods -o wide
- 92 kubectl create ns limited
- 93 kubectl create quota --help
- 94 kubectl create quota qtest --hard pods=3,cpu=100,memory=500Mi -n limited
- 95 kubectl describe ns limited
- 96 kubectl create deploy nginx --image=nginx --replicas=3 -n limited
- 97 kubectl get all -n limited
- 98 kubectl describe -n limited rs nginx-6799fc88d8
- 99 kubectl get all -n limited
- 100 kubectl set resources -h | less
- 101 kubectl set resources deploy nginx --requests cpu=100m,memory=5Mi --limits cpu=200m,memory=20Mi -n limited
- 102 kubectl get all -n limited
- 103 kubectl scale deploy nginx --replicas=5 -n limited
- 104 kubectl get all -n limited
- 105 kubectl describe ns limited
- 106 kubectl describe -n limited rs nginx-86d467bc98
- 107 kubectl delete deploy nginx -n limited
- 108 kubectl set resources deploy nginx --limits cpu=200m,memory=1Mi -n limited
- 109 kubectl create deploy nginx
- 110 kubectl create deploy nginx --image=nginx -n limited
- 111 kubectl set resources deploy nginx --limits cpu=200m,memory=1Mi -n limited
- 112 kubectl get deploy nginx -n limited -o yaml > oom.yaml
- 113 kubectl delete deploy nginx
- 114 kubectl delete deploy nginx -n limited
- 115 vim oom.yaml
- 116 kubectl create -f oom.yaml
- 117 kubectl get all -n limited
- 118 kubectl describe -n limited pod nginx-566bfb9779-ll295
- 119 history
- 120 sleep 120; cka/counter.sh 13
- 121 kubectl get nodes
- 122 kubectl get pods -o wide
- 123 kubectl get nodes
- 124 kubectl describe node worker1
- 125 kubectl get pods
- 126 kubectl get nodes
- 127 cka/counter.sh 5
- 128 cd cka
- 129 ls
- 130 cd ..
- 131 git clone https://github.com/sandervanvugt/ckad
- 132 cd ckad
- 133 ls
- 134 vim pv.yaml
- 135 kubectl create -f pv.yaml
- 136 kubectl api-resources | less
- 137 vim pvc.yaml
- 138 kubectl create -f pvc.yaml
- 139 kubectl get pv
- 140 kubectl get storageclass
- 141 kubectl pv-pod.yaml
- 142 vim pv-pod.yaml
- 143 kubectl create -f pv-pod.yaml
- 144 kubectl exec -it pv-pod -- touch /usr/share/nginx/html/hello.txt
- 145 kubectl describe pv pv-volume
- 146 ls /
- 147 kubectl get pods -o wide
- 148 kubectl explain pv.spec | less
- 149 kubectl explain pv.spec.iscsi
- 150 kubectl explain pv.spec.initiatorName
- 151 kubectl explain pv.spec.iscsi
- 152 vim pvc.yaml
- 153 cat /etc/os-release
- 154 history
Add Comment
Please, Sign In to add comment