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 cd ckad
- 204 ./countdown 12
- 205 source <(kubectl completion bash)
- 206 df -h
- 207 mount | grep sda3
- 208 sudo resize2fs /dev/sda3
- 209 df -h
- 210 history
- 211 minikube start
- 212 kubectl get pods
- 213 minikube ssh
- 214 kubectl get pods
- 215 kubectl describe pods frontend
- 216 kubectl get pods
- 217 kubectl describe pod frontend | less
- 218 cd ckad
- 219 kubectl delete -f frontend.yaml
- 220 kubectl delete -f frontend-resources.yaml
- 221 vim frontend-resources.yaml
- 222 kubectl apply -f frontend-resources.yaml
- 223 kubectl get pods
- 224 source <(kubectl completion bash)
- 225 kubectl describe pod frontend
- 226 vim frontend-resources.yaml
- 227 kubectl delete pod frontend
- 228 kubectl apply -f frontend-resources.yaml
- 229 kubectl get pods
- 230 kubectl delete pods frontend
- 231 history
- 232 minikube ssh
- 233 vim zs.yaml
- 234 kubectl apply -f zs.yaml
- 235 kubectl get pods
- 236 kubectl describe pod my-webserver-pod
- 237 minikube ssh
- 238 kubectl get pods
- 239 minikube ssh
- 240 kubectl run sanderdb --image=mariadb
- 241 minikube ssh
- 242 kubectl get pods
- 243 minikube ssh
- 244 kubectl delete pod sanderdb
- 245 sudo -i
- 246 minikube ssh
- 247 ./countdown 7
- 248 kubectl get pods
- 249 kubectl run sanderpod --image=mariadb
- 250 kubectl logs sanderpod
- 251 minikube ssh
- 252 kubectl delete pod sanderpod
- 253 minikube ssh
- 254 vim busybox-ready.yaml
- 255 kubectl create -f busybox-ready.yaml
- 256 kubectl get pods
- 257 kubectl describe pod busybox-ready
- 258 kubectl edit pod busybox-ready
- 259 kubectl exec -it busybox-ready -- sh
- 260 kubectl get pods
- 261 kubectl get deploy,jobs,pods
- 262 for i in $(kubectl get deploy,jobs,pods); do kubectl delete $i; done
- 263 for i in $(kubectl get deploy,jobs,pods | awk '{ print $1 }'); do kubectl delete $i; done
- 264 kubectl get pods
- 265 vim nginx-probes.yaml
- 266 kubectl create -f nginx-probes.yaml
- 267 kubectl get pods
- 268 kubectl create deploy myweb --image=nginx --replicas=3
- 269 kubectl describe deployments.apps myweb | less
- 270 kubectl get all
- 271 kubectl delete cronjob runme
- 272 kubectl get all
- 273 kubectl get all --selector app=myweb
- 274 kubectl delete pod myweb-5b7f574f7f-vs788
- 275 kubectl get all --selector app=myweb
- 276 vim redis-deploy.yaml
- 277 kubectl apply -f redis-deploy.yaml
- 278 vim redis-deploy.yaml
- 279 kubectl api-versions | less
- 280 kubectl api-resources
- 281 kubectl api-resources | less
- 282 kubectl api-versions
- 283 vim redis-deploy.yaml
- 284 kubectl apply -f redis-deploy.yaml
- 285 kubectl edit deployments.apps redis
- 286 kubectl get all
- 287 kubectl edit replicasets.apps redis-6dc855767d
- 288 kubectl get all
- 289 kubectl delete rs redis-6dc855767d
- 290 kubectl get all
- 291 kubectl scale deployment redis --replicas=0
- 292 kubectl get all
- 293 kubectl create deploy nginx-lab7 --replicas=3 --image=nginx
- 294 kubectl get all
- 295 kubectl api-resources | less
- 296 kubectl create deploy nginxup --image=nginx:1.14
- 297 kubectl scale deployment nginxup --replicas=4
- 298 kubectl get all --selector app=nginxup
- 299 kubectl set image deploy nginxup nginx=nginx:1.17
- 300 kubectl get all --selector app=nginxup
- 301 kubectl get deployments.apps nginxup -o yaml | less
- 302 kubectl create deploy example -h | less
- 303 kubectl create deploy example --image=nginx -o yaml --dry-run=client > example.yaml
- 304 vim example.yaml
- 305 kubectl apply -f example.yaml
- 306 kubectl get all --selector app=example
- 307 kubectl set image deploy example bob=nginx:1.17
- 308 kubectl get all --selector app=example
- 309 history
- 310 kubectl get all
- 311 kubectl get deployments.apps redis -o yaml | less
- 312 kubectl create deploy bluelabel --image=nginx
- 313 kubectl label deploy bluelabel state=demo
- 314 kubectl get deploy --show-labels
- 315 kubectl get all --selector state=demo
- 316 kubectl get all --selector app=bluelabel
- 317 kubectl describe deploy bluelabel | less
- 318 kubectl get all | grep b lue
- 319 kubectl get all | grep blue
- 320 kubectl get all
- 321 kubectl delete deploy example nginxup nginx-lab7 redis myweb
- 322 kubectl get all
- 323 kubectl scale deployment bluelabel --replicas 3
- 324 kubectl get all
- 325 kubectl label pod bluelabel-5cdb7645b5-pjvf8 app-
- 326 kubectl get all
- 327 kubectl get pods --show-labels
- 328 kubectl run testpod --image=busybox -- sleep infinity
- 329 kubectl get pods --show-labels
- 330 kubectl get pods --show-labels | grep run
- 331 kubectl get deploy bluelabel -o yaml
- 332 kubectl get all
- 333 kubectl scale deployment bluelabel --replicas 4
- 334 kubectl get all
- 335 kubectl set env deploy bluelabel type=blended
- 336 kubectl get all
- 337 kubectl delete pod bluelabel-5cdb7645b5-pjvf8
- 338 kubectl get all
- 339 kubectl get deployments.apps bluelabel -o yaml | less
- 340 vim rolling.yaml
- 341 kubectl apply -f rolling.yaml
- 342 kubectl rollout history deployment
- 343 kubectl edit deployments.apps rolling-nginx
- 344 kubectl rollout history deployment
- 345 kubectl rollout history deployment rolling-nginx --revision=2
- 346 kubectl rollout history deployment rolling-nginx --revision=1
- 347 kubectl rollout undo deployment rolling-nginx --to-revision=1
- 348 kubectl rollout history deployment
- 349 kubectl get all
- 350 ./countdown 12
- 351 kubectl create deployment nginxsvc --image=nginx --replicas=3
- 352 kubectl get all --selector app=nginxsvc
- 353 kubectl get all --selector app=nginxsvc -o wide
- 354 kubectl expose deployment nginxsvc --port=80
- 355 kubectl get all --selector app=nginxsvc -o wide
- 356 kubectl describe svc nginxsvc
- 357 kubectl get endpoints
- 358 kubectl get svc
- 359 curl 10.106.84.96
- 360 minikube ssh
- 361 kubectl edit svc nginxsvc
- 362 kubectl get svc
- 363 minikube ip
- 364 curl 192.168.49.2:30089
- 365 kubectl describe svc nginxsvc
- 366 kubectl edit svc nginxsvc
- 367 kubectl get svc
- 368 kubectl get endpoints
- 369 kubectl edit svc nginxsvc
- 370 kubectl get endpoints
- 371 kubectl get all
- 372 kubectl run testpod --image=busybox -- sleep infinity
- 373 kubectl get testpod
- 374 kubectl get pods
- 375 kubectl get svc
- 376 kubectl exec -it testpod -- cat /etc/resolv.conf
- 377 kubectl exec -it testpod -- nslookup nginxsvc
- 378 kubectl get ns
- 379 kubectl get pods -n secret
- 380 kubectl run secretweb --image=nginx -n secret
- 381 kubectl expose -n secret pod secretweb
- 382 kubectl expose -n secret pod secretweb --port=80
- 383 kubectl exec -it testpod -- nslookup secretweb
- 384 kubectl exec -it testpod -- nslookup secretweb.secret.svc.cluster.local
- 385 kubectl exec -it testpod -- cat /etc/resolv.conf
- 386 vim nwpolicy-complete-example.yaml
- 387 kubectl apply -f nwpolicy-complete-example.yaml
- 388 kubectl expose pod nginx --port=80
- 389 kubectl exec -it busybox -- wget --spider --timeout=1 nginx
- 390 kubectl label pod busybox access=true
- 391 kubectl exec -it busybox -- wget --spider --timeout=1 nginx
- 392 vim nwpolicy-complete-example.yaml
- 393 kubectl describe networkpolicy access-nginx
- 394 kubectl get pods --show-label
- 395 kubectl get pods --show-labels
- 396 kubectl create -h | less
- 397 kubectl autoscale -h | less
- 398 minikube addons lists
- 399 minikube addons list
- 400 minikube addons enable metrics-server
- 401 kubectl top pods
- 402 history
- 403 sudo poweroff
- 404 cd ckad
- 405 ./countdown 1
- 406 ./countdown 5
- 407 ./countdown 1
- 408 cd ../Downloads/
- 409 ls
- 410 tar xvf helm-v3.11.2-linux-amd64.tar.gz
- 411 sudo mv linux-amd64/helm /usr/local/bin/
- 412 helm version
- 413 exit
- 414 minikube start
- 415 kubectl get all
- 416 kubectl top pods
- 417 minikube addons list
- 418 minikube addons enable ingress
- 419 kubectl get ns
- 420 source <(kubectl completion bash)
- 421 kubectl get all -n ingress-nginx
- 422 kubectl get svc
- 423 curl 192.168.49.2:30089
- 424 kubectl create ingress -h | less
- 425 kubectl create ingress nginxsvc-ingress --rule="/=nginsvc:80" --rule=/hello=newdep:8080"
- 426 kubectl create ingress nginxsvc-ingress --rule="/=nginsvc:80" --rule="/hello=newdep:8080"
- 427 sudo vim /etc/hosts
- 428 kubectl get ingress
- 429 curl nginxsvc.indo
- 430 cat /etc/hosts
- 431 curl nginxsvc.info
- 432 kubectl describe ingress nginxsvc-ingress
- 433 kubectl edit ing nginxsvc-ingress
- 434 kubectl describe ingress nginxsvc-ingress
- 435 curl nginxsvc.info
- 436 curl nginxsvc.info/hello
- 437 kubectl create deploy newdep --image=gcr.io/google-samples/hello-app:2.0
- 438 kubectl expose deploy newdep --port=8080
- 439 curl nginxsvc.info/hello
- 440 kubectl explain pod.spec.volumes | less
- 441 cd ckad
- 442 cat morevolumes.yaml
- 443 kubectl apply -f morevolumes.yaml
- 444 kubectl get pods
- 445 kubectl describe pods morevol2 | less
- 446 kubectl -it morevol2 -c centos1 -- touch /centos1/test
- 447 kubectl exec -it morevol2 -c centos1 -- touch /centos1/test
- 448 kubectl exec -it morevol2 -c centos2 -- ls /centos2/
- 449 vim pv.yaml
- 450 kubectl apply -f pv.yaml
- 451 kubectl describe pv pv-volume
- 452 vim pvc.yaml
- 453 kubectl apply -f pvc.yaml
- 454 kubectl get pvc,pv
- 455 kubectl get storageclass
- 456 kubectl describe pvc pv-claim
- 457 kubectl describe pv pvc-43d5aaf1-0a7c-419a-8624-ae8edabcd20c
- 458 vim pvc-pod.yaml
- 459 kubectl apply -f pvc-pod.yaml
- 460 kubectl get pvc,pv
- 461 kubectl describe pv pvc-3961ac15-1dd6-4393-9fe3-979a8faeac97
- 462 kubectl exec nginx-pvc-pod -- touch /usr/share/nginx/html/testfile
- 463 minikube ssh
- 464 kubectl get pvc
- 465 kubect delete pvc pv-claim
- 466 kubectl delete pvc pv-claim
- 467 kubectl explain pvc.spec | less
- 468 vim pvc.yaml
- 469 kubectl delete -f pv.yaml
- 470 vim pv.yaml
- 471 kubectl apply -f pv.yaml
- 472 kubectl apply -f pvc.yaml
- 473 kubectl get pvc,pv
- 474 history
- 475 kubectl get deploy
- 476 kubectl create deploy mydb --image=mariadb
- 477 kubectl describe pods mydb-7978c6b495-fc8k9
- 478 kubectl log mydb-7978c6b495-fc8k9
- 479 kubectl logs mydb-7978c6b495-fc8k9
- 480 kubectl set env deploy mydb MARIADB_ROOT_PASSWORD=password
- 481 kubectl get all --selector app=mydb
- 482 kubectl get deployments.apps mydb -o yaml > mydb.yaml
- 483 vim mydb.yaml
- 484 ./countdown 12
- 485 vim varsfile
- 486 kubectl create cm mydbvars --from-env-file=varsfile
- 487 rm -f varsfile
- 488 kubectl describe cm mydbvars
- 489 kubectl delete deploy mydb
- 490 kubectl create deploy mydb --image=mariadb --replicas=3
- 491 kubectl get all --selector app=mydb
- 492 kubectl set env deploy mydb --from=configmap/mydbvars
- 493 kubectl get all --selector app=mydb
- 494 kubectl get deploy mydb -o yaml
- 495 kubectl set env -h | less
- 496 echo hello world > index.html
- 497 kubectl create cm myindex --from-file=index.html
- 498 kubectl describe cm myindex
- 499 kubectl create cm mypasswd --from-file=/etc/passwd
- 500 kubectl describe cm mypasswd
- 501 kubectl create deployment myweb --image=nginx --dry-run=client -o yaml >myweb.yaml
- 502 vim myweb.yaml
- 503 kubectl apply -f myweb.yaml
- 504 kubectl expose deployment myweb --type=NodePort --port=80
- 505 kubectl get svc
- 506 curl 192.168.49.2:32111
- 507 history
- 508 kubectl create secret -h | less
- 509 kubectl create secret docker-registry -h | less
- 510 kubectl create secret generic dbpw --from-literal=ROOT_PASSWORD=password
- 511 kubectl describe secret dbpw
- 512 kubectl get secret dbpw -o yaml
- 513 echo cGFzc3dvcmQ= | base64 -d
- 514 kubectl create deployment mynewdb --image=mariadb
- 515 kubectl set env deploy mynewdb --from=secret/dbpw --prefix=MARIADB_
- 516 kubectl get all
- 517 ./countdown 12
- 518 kubectl api-resources | less
- 519 kubectl proxy --port=8001 &
- 520 kubectl create deploy curlginx --image=nginx --replicas=3
- 521 curl http://localhost:8001/version
- 522 curl http:/localhost:8001/api/v1/namespaces/default/pods
- 523 kubectl get pods
- 524 curl http:/localhost:8001/api/v1/namespaces/default/pods/nginx/
- 525 curl -XDELETE http:/localhost:8001/api/v1/namespaces/default/pods/nginx/
- 526 kubectl get pods
- 527 history
- 528 kubectl auth can-i get pods
- 529 kubectl auth can-i get pods --as bob@example.com
- 530 kubectl get pods nginx-probes -o yaml | less
- 531 kubectl get sa
- 532 kubectl get pods -n kube-system
- 533 kubectl get pods -n kube-system storage-provisioner -o yaml | grep -i serviceacc
- 534 kubectl get roles
- 535 kubectl get roles -A
- 536 kubectl get clusterroles
- 537 kubectl get clusterroles | less
- 538 kubectl get clusterrolebindings.rbac.authorization.k8s.io
- 539 kubectl get clusterrolebindings.rbac.authorization.k8s.io | less
- 540 vim mypod.yaml
- 541 kubectl apply -f mypod.yaml
- 542 kubectl get pods mypod -o yaml | less
- 543 kubectl exec -it mypod --sh
- 544 kubectl exec -it mypod -- sh
- 545 cat mysa.yaml
- 546 kubectl apply -f mysa.yaml
- 547 vim list-pods.yaml
- 548 kubectl apply -f list-pods.yaml
- 549 vim list-pods-mysa-binding.yaml
- 550 kubectl apply -f list-pods-mysa-binding.yaml
- 551 vim mysapod.yaml
- 552 kubectl apply -f mysapod.yaml
- 553 apk add --update curl
- 554 kubectl exec -it mysapod -- sh
- 555 exit
- 556 helm version
- 557 helm repo add bitnami https://charts.bitnami.com/bitnami
- 558 helm repo list
- 559 helm search repo bitnami
- 560 helm repo update
- 561 helm install bitnami/mysql --generate-name
- 562 kubectl get all
- 563 helm show chart bitnami/mysql
- 564 helm show all bitnami/mysql
- 565 helm list
- 566 helm status mysql-1678384898
- 567 helm show values bitnami/nginx
- 568 helm pull bitnami/nginx
- 569 tar xvf nginx-13.2.29.tgz
- 570 vim nginx/values.yaml
- 571 helm template --debug nginx
- 572 helm install -f nginx/values.yaml mynginx nginx/
- 573 helm list
- 574 cd ckad
- 575 ./countdown 12
- 576 kubectl create deploy blue-nginx --image=nginx:1.14 --replicas=3
- 577 kubectl expose deploy blue-nginx --port=80 --name=bgnginx
- 578 kubectl get all --selector app=blue-nginx
- 579 source <(kubectl completion bash)
- 580 kubectl get deployments.apps blue-nginx -o yaml > green-nginx.yaml
- 581 vim green-nginx.yaml
- 582 kubectl create -f green-nginx.yaml
- 583 kubectl get all --selector app=blue-nginx --selector app=green-nginx
- 584 kubectl get all --selector app=blue-nginx,app=green-nginx
- 585 kubectl get deploy
- 586 kubectl describe svc bgnginx
- 587 kubectl edit svc bgnginx
- 588 kubectl describe svc bgnginx
- 589 kubectl get pods -o wide
- 590 kubectl create deploy old-nginx --image=nginx:1.14 --replicas=3 --dry-run=client -o yaml > ~/oldnginx.yaml
- 591 vim ~/oldnginx.yaml
- 592 kubectl create -f ~/oldnginx.yaml
- 593 kubectl expose deploy old-nginx --name=oldnginx --port=80 --type=NodePort --selector type=canary
- 594 kubectl get svc
- 595 kubectl get endpoints
- 596 curl 192.168.49.2:32462
- 597 kubectl cp old-nginx-654f595c5-vlsnm:/usr/share/nginx/html/index.html ./index.html
- 598 vim index.html
- 599 kubectl create cm canary --from-file=index.html
- 600 vim canary.yaml
- 601 kubectl create -f canary.yaml
- 602 kubectl describe svc oldnginx
- 603 curl 192.168.49.2:32462
- 604 kubectl scale deployment new-nginx --replicas 3
- 605 kubectl scale deployment old-nginx --replicas 0
- 606 history
- 607 kubectl api-resources | less
- 608 vim crd-object.yaml
- 609 kubectl apply -f crd-object.yaml
- 610 kubectl api-resources | grep backup
- 611 vim crd-backup.yaml
- 612 kubectl apply -f crd-backup.yaml
- 613 kubectl get backups
- 614 history
Add Comment
Please, Sign In to add comment