Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- student@student-virtual-machine:~/ckad$ history
- 1 history
- 2 minikube start --vm-driver=docker --cni=calico
- 3 kubectl get all
- 4 history
- 5 minikube status
- 6 minikube ssh
- 7 kubectl get all
- 8 minikube --help | less
- 9 minikube dashboard
- 10 kubectl get all
- 11 kubectl create deploy firstnginx --image=nginx --replicas=3
- 12 kubectl get all
- 13 history
- 14 kubectl -h | less
- 15 kubectl completion -h | less
- 16 source <(kubectl completion bash)
- 17 vim ~/.kube/config
- 18 kubectl get pods
- 19 kubectl get ns
- 20 kubectl config view
- 21 kubectl config set-context minikube --namespace=kube-system
- 22 kubectl get pods
- 23 kubectl config set-context --current --namespace=default
- 24 ls *file
- 25 cd dockerfile/
- 26 vim Dockerfile
- 27 docker build -t centmap .
- 28 docker images
- 29 docker save --help
- 30 docker save centmap
- 31 docker save centmap -o centmap.tar
- 32 ls -l centmap.tar
- 33 history
- 34 kubectl get pods
- 35 kubectl delete pod dontuseme-5dc7b7f996-dph5m
- 36 kubectl get pods
- 37 kubectl run -h | less
- 38 kubectl run nginxxxx --image=nginx
- 39 kubectl get pods
- 40 history
- 41 kubectl get pods
- 42 kubectl delete pod nginxxxx
- 43 kubectl get pods
- 44 kubectl explain pods
- 45 kubectl explain pods.spec | less
- 46 history
- 47 kubectl get pods
- 48 kubectl get pods firstnginx-5444786b89-m48zg -o yaml | less
- 49 kubectl describe pod firstnginx-5444786b89-wh24c | less
- 50 vim ex1.txt
- 51 history
- 52 kubectl describe pod firstnginx-5444786b89-wh24c | less
- 53 kubectl get pods -o wide
- 54 cd
- 55 kubectl run nginxxxx --image=nginx --dry-run=client -o yaml
- 56 kubectl run nginxxxx --image=nginx --dry-run=client -o yaml > nginxxxx.yaml
- 57 vim nginxxxx.yaml
- 58 kubectl apply -f nginxxxx.yaml
- 59 vim nginxxxx.yaml
- 60 kubectl apply -f nginxxxx.yaml
- 61 vim nginxxxx.yaml
- 62 kubectl apply -f nginxxxx.yaml
- 63 history
- 64 vim nginxxxx.yaml
- 65 kubectl delete -f nginxxxx.yaml
- 66 kubectl apply -f nginxxxx.yaml
- 67 vim nginxxxx.yaml
- 68 kubectl apply -f nginxxxx.yaml
- 69 cd ckad/
- 70 vim sidecar.yaml
- 71 kubectl apply -f sidecar.yaml
- 72 kubectl get pods
- 73 kubectl exec -it sidecar-pod -c sidecar -- /bin/bash
- 74 kubectl apply -f sidecar.yaml
- 75 vim sidecar.yaml
- 76 vim morevolumes.yaml
- 77 vim init-example1.yaml
- 78 kubectl create -f init-example1.yaml
- 79 kubectl get pods
- 80 vim init-example2.yaml
- 81 kubectl apply -f init-example2.yaml
- 82 kubectl get pods
- 83 kubectl get ns
- 84 kubectl get pods -n kube-system
- 85 kubectl get pods -n kubernetes-dashboard
- 86 kubectl describe ns default
- 87 kubectl get pods
- 88 kubectl get pods -A
- 89 kubectl create ns secret
- 90 kubectl config set-context --current --namespace=secret
- 91 kubectl get pods
- 92 kubectl run busybox --image=busybox -n secret
- 93 kubectl get pods
- 94 vim busybox-ns.yaml
- 95 kubectl create -f busybox-ns.yaml
- 96 kubectl get pods
- 97 kubectl describe pod busybox
- 98 kubectl delete pod busybox
- 99 kubectl run busybox --image=busybox -n secret -- sleep 3600
- 100 kubectl get pods
- 101 kubectl config set-context --current --namespace=default
- 102 kubectl run nginx-lab --image=nginx
- 103 kubectl get pods
- 104 k get pods
- 105 ./countdown 12
- 106 kubectl run faildb --image=mariadb
- 107 kubectl get pods
- 108 kubectl describe pod init-demo2
- 109 kubectl describe pod faildb
- 110 kubectl logs faildb
- 111 kubectl delete pod faildb
- 112 kubectl run -h | less
- 113 kubectl run mydb --image=mariadb --env=MARIADB_ROOT_PASSWORD=password
- 114 kubectl get pods
- 115 kubectl exec mydb -- set
- 116 kubectl exec mydb -- env
- 117 kubectl run busybox
- 118 kubectl run busybox --image=busbox
- 119 kubectl get pods
- 120 kubectl describe pod busybox
- 121 kubectl get pods
- 122 kubectl delete pod busybox
- 123 kubectl run busybox --image=busybox
- 124 kubectl get pods
- 125 kubectl describe pod busybox
- 126 minikube ssh
- 127 kubectl get pods
- 128 kubectl delete pod busybox
- 129 history
- 130 kubectl explain pod.spec | less
- 131 kubectl explain pod.spec.securityContext | less
- 132 vim securitycontextdemo2.yaml
- 133 kubectl apply -f securitycontextdemo2.yaml
- 134 kubectl exec -it security-context-demo -- sh
- 135 vim securitycontextdemo.yaml
- 136 kubectl create -f securitycontextdemo.yaml
- 137 kubectl get pods
- 138 kubectl describe pod nginxsecure
- 139 kubectl delete -f securitycontextdemo.yaml
- 140 kubectl create job -h | less
- 141 kubectl create job onejob --image=busybox -- date
- 142 kubectl get pods,jobs
- 143 kubectl get jobs onejob -o yaml | less
- 144 kubectl get pods,jobs
- 145 kubectl delete job onejob
- 146 kubectl get pods,jobs
- 147 kubectl create job mynewjob --image=busybox --dry-run=client -o yaml -- sleep 5 > mynewjob.yaml
- 148 vim mynewjob.yaml
- 149 kubectl create -f mynewjob.yaml
- 150 vim mynewjob.yaml
- 151 kubectl create -f mynewjob.yaml
- 152 kubectl get pods,jobs
- 153 history
- 154 kubectl create cronjob
- 155 kubectl create cronjob -h | less
- 156 kubectl create cronjob runme --image=busybox --schedule="* * * * *" -- echo greetings from the cluster
- 157 kubectl get cronjobs,jobs,pods
- 158 kubectl logs runme-27971466-wnnj8
- 159 kubectl get cronjobs,jobs,pods
- 160 kubectl create job --from=cronjob runme
- 161 kubectl create job myjob --from=cronjob runme
- 162 kubectl create job -h
- 163 kubectl create job myjob --from=cronjob/runme
- 164 kubectl get cronjobs,jobs,pods
- 165 kubectl create cronjob -h | less
- 166 create create quota -h | less
- 167 kubectl create quota -h | less
- 168 kubectl create deploy myapp --image=nginx
- 169 kubectl set resources -h | less
- 170 kubectl set resources deploy myapp --limits=cpu=200m,memory=512Mi --requests=cpu=100m,memory=256Mi
- 171 kubectl get deploy myapp -o yaml
- 172 vim frontend-resources.yaml
- 173 kubectl apply -f frontend-resources.yaml
- 174 kubectl get pods
- 175 kubectl describe pod frontend
- 176 sudo reboot
- 177 cd ckad/
- 178 ./countdown 2
- 179 ./countdown 12
- 180 cat dockerfile/ex1.txt
- 181 ./countdown 15
- 182 sudo apt install vim git -y
- 183 free -m
- 184 lscpu | less
- 185 df -h
- 186 git clone https://github.com/sandervanvugt/ckad
- 187 cd ckad
- 188 ls
- 189 ./minikube-docker-setup.sh
- 190 cd ckad/
- 191 ./countdown 3
- 192 kubectl explain pod.spec | less
- 193 cd dockerfile/
- 194 vim ex2.txt
- 195 kubectl explain pod.spec | less
- 196 minikube start
- 197 df -h
- 198 sudo lsblk
- 199 sudo poweroff
- 200 df -h
- 201 sudo gdisk /dev/sda
- 202 sudo reboot
- 203 df -h
- 204 mount | grep sda3
- 205 sudo resize2fs /dev/sda3
- 206 df -h
- 207 history
- 208 minikube start
- 209 kubectl get pods
- 210 minikube ssh
- 211 kubectl get pods
- 212 kubectl describe pods frontend
- 213 kubectl get pods
- 214 kubectl describe pod frontend | less
- 215 cd ckad
- 216 kubectl delete -f frontend.yaml
- 217 kubectl delete -f frontend-resources.yaml
- 218 vim frontend-resources.yaml
- 219 kubectl apply -f frontend-resources.yaml
- 220 kubectl get pods
- 221 source <(kubectl completion bash)
- 222 kubectl describe pod frontend
- 223 vim frontend-resources.yaml
- 224 kubectl delete pod frontend
- 225 kubectl apply -f frontend-resources.yaml
- 226 kubectl get pods
- 227 kubectl delete pods frontend
- 228 history
- 229 minikube ssh
- 230 vim zs.yaml
- 231 kubectl apply -f zs.yaml
- 232 kubectl get pods
- 233 kubectl describe pod my-webserver-pod
- 234 minikube ssh
- 235 kubectl get pods
- 236 minikube ssh
- 237 kubectl run sanderdb --image=mariadb
- 238 minikube ssh
- 239 kubectl get pods
- 240 minikube ssh
- 241 kubectl delete pod sanderdb
- 242 sudo -i
- 243 minikube ssh
- 244 ./countdown 7
- 245 kubectl get pods
- 246 kubectl run sanderpod --image=mariadb
- 247 kubectl logs sanderpod
- 248 minikube ssh
- 249 kubectl delete pod sanderpod
- 250 minikube ssh
- 251 vim busybox-ready.yaml
- 252 kubectl create -f busybox-ready.yaml
- 253 kubectl get pods
- 254 kubectl describe pod busybox-ready
- 255 kubectl edit pod busybox-ready
- 256 kubectl exec -it busybox-ready -- sh
- 257 kubectl get pods
- 258 kubectl get deploy,jobs,pods
- 259 for i in $(kubectl get deploy,jobs,pods); do kubectl delete $i; done
- 260 for i in $(kubectl get deploy,jobs,pods | awk '{ print $1 }'); do kubectl delete $i; done
- 261 kubectl get pods
- 262 vim nginx-probes.yaml
- 263 kubectl create -f nginx-probes.yaml
- 264 kubectl get pods
- 265 kubectl create deploy myweb --image=nginx --replicas=3
- 266 kubectl describe deployments.apps myweb | less
- 267 kubectl get all
- 268 kubectl delete cronjob runme
- 269 kubectl get all
- 270 kubectl get all --selector app=myweb
- 271 kubectl delete pod myweb-5b7f574f7f-vs788
- 272 kubectl get all --selector app=myweb
- 273 vim redis-deploy.yaml
- 274 kubectl apply -f redis-deploy.yaml
- 275 vim redis-deploy.yaml
- 276 kubectl api-versions | less
- 277 kubectl api-resources
- 278 kubectl api-resources | less
- 279 kubectl api-versions
- 280 vim redis-deploy.yaml
- 281 kubectl apply -f redis-deploy.yaml
- 282 kubectl edit deployments.apps redis
- 283 kubectl get all
- 284 kubectl edit replicasets.apps redis-6dc855767d
- 285 kubectl get all
- 286 kubectl delete rs redis-6dc855767d
- 287 kubectl get all
- 288 kubectl scale deployment redis --replicas=0
- 289 kubectl get all
- 290 kubectl create deploy nginx-lab7 --replicas=3 --image=nginx
- 291 kubectl get all
- 292 kubectl api-resources | less
- 293 kubectl create deploy nginxup --image=nginx:1.14
- 294 kubectl scale deployment nginxup --replicas=4
- 295 kubectl get all --selector app=nginxup
- 296 kubectl set image deploy nginxup nginx=nginx:1.17
- 297 kubectl get all --selector app=nginxup
- 298 kubectl get deployments.apps nginxup -o yaml | less
- 299 kubectl create deploy example -h | less
- 300 kubectl create deploy example --image=nginx -o yaml --dry-run=client > example.yaml
- 301 vim example.yaml
- 302 kubectl apply -f example.yaml
- 303 kubectl get all --selector app=example
- 304 kubectl set image deploy example bob=nginx:1.17
- 305 kubectl get all --selector app=example
- 306 history
- 307 kubectl get all
- 308 kubectl get deployments.apps redis -o yaml | less
- 309 kubectl create deploy bluelabel --image=nginx
- 310 kubectl label deploy bluelabel state=demo
- 311 kubectl get deploy --show-labels
- 312 kubectl get all --selector state=demo
- 313 kubectl get all --selector app=bluelabel
- 314 kubectl describe deploy bluelabel | less
- 315 kubectl get all | grep b lue
- 316 kubectl get all | grep blue
- 317 kubectl get all
- 318 kubectl delete deploy example nginxup nginx-lab7 redis myweb
- 319 kubectl get all
- 320 kubectl scale deployment bluelabel --replicas 3
- 321 kubectl get all
- 322 kubectl label pod bluelabel-5cdb7645b5-pjvf8 app-
- 323 kubectl get all
- 324 kubectl get pods --show-labels
- 325 kubectl run testpod --image=busybox -- sleep infinity
- 326 kubectl get pods --show-labels
- 327 kubectl get pods --show-labels | grep run
- 328 kubectl get deploy bluelabel -o yaml
- 329 kubectl get all
- 330 kubectl scale deployment bluelabel --replicas 4
- 331 kubectl get all
- 332 kubectl set env deploy bluelabel type=blended
- 333 kubectl get all
- 334 kubectl delete pod bluelabel-5cdb7645b5-pjvf8
- 335 kubectl get all
- 336 kubectl get deployments.apps bluelabel -o yaml | less
- 337 vim rolling.yaml
- 338 kubectl apply -f rolling.yaml
- 339 kubectl rollout history deployment
- 340 kubectl edit deployments.apps rolling-nginx
- 341 kubectl rollout history deployment
- 342 kubectl rollout history deployment rolling-nginx --revision=2
- 343 kubectl rollout history deployment rolling-nginx --revision=1
- 344 kubectl rollout undo deployment rolling-nginx --to-revision=1
- 345 kubectl rollout history deployment
- 346 kubectl get all
- 347 ./countdown 12
- 348 kubectl create deployment nginxsvc --image=nginx --replicas=3
- 349 kubectl get all --selector app=nginxsvc
- 350 kubectl get all --selector app=nginxsvc -o wide
- 351 kubectl expose deployment nginxsvc --port=80
- 352 kubectl get all --selector app=nginxsvc -o wide
- 353 kubectl describe svc nginxsvc
- 354 kubectl get endpoints
- 355 kubectl get svc
- 356 curl 10.106.84.96
- 357 minikube ssh
- 358 kubectl edit svc nginxsvc
- 359 kubectl get svc
- 360 minikube ip
- 361 curl 192.168.49.2:30089
- 362 kubectl describe svc nginxsvc
- 363 kubectl edit svc nginxsvc
- 364 kubectl get svc
- 365 kubectl get endpoints
- 366 kubectl edit svc nginxsvc
- 367 kubectl get endpoints
- 368 kubectl get all
- 369 kubectl run testpod --image=busybox -- sleep infinity
- 370 kubectl get testpod
- 371 kubectl get pods
- 372 kubectl get svc
- 373 kubectl exec -it testpod -- cat /etc/resolv.conf
- 374 kubectl exec -it testpod -- nslookup nginxsvc
- 375 kubectl get ns
- 376 kubectl get pods -n secret
- 377 kubectl run secretweb --image=nginx -n secret
- 378 kubectl expose -n secret pod secretweb
- 379 kubectl expose -n secret pod secretweb --port=80
- 380 kubectl exec -it testpod -- nslookup secretweb
- 381 kubectl exec -it testpod -- nslookup secretweb.secret.svc.cluster.local
- 382 kubectl exec -it testpod -- cat /etc/resolv.conf
- 383 vim nwpolicy-complete-example.yaml
- 384 kubectl apply -f nwpolicy-complete-example.yaml
- 385 kubectl expose pod nginx --port=80
- 386 kubectl exec -it busybox -- wget --spider --timeout=1 nginx
- 387 kubectl label pod busybox access=true
- 388 kubectl exec -it busybox -- wget --spider --timeout=1 nginx
- 389 vim nwpolicy-complete-example.yaml
- 390 kubectl describe networkpolicy access-nginx
- 391 kubectl get pods --show-label
- 392 kubectl get pods --show-labels
- 393 kubectl create -h | less
- 394 kubectl autoscale -h | less
- 395 minikube addons lists
- 396 minikube addons list
- 397 minikube addons enable metrics-server
- 398 kubectl top pods
- 399 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement