Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- student@student-virtual-machine:~/ckad$ history
- 1 cd ckad/
- 2 ./countdown 4
- 3 vim sg.yal
- 4 vim sg.yaml
- 5 kubectl apply sg.yaml
- 6 kubectl apply -f sg.yaml
- 7 kubectl run sidecard --image=busybox --dry-run=client -o yaml -- sleep infinity
- 8 kubectl run sidecard --image=busybox --dry-run=client -o yaml -- sleep infinity > sidecard.yaml
- 9 vim sidecard.yaml
- 10 kubectl apply -f sidecard.yaml
- 11 kubectl get pods
- 12 ./countdown 12
- 13 history
- 14 minikube start --vm-driver=docker --cni=calico
- 15 kubectl get all
- 16 ./countdown 2
- 17 minikube dashboard
- 18 source <(kubectl completion bash)
- 19 kubectl create deploy apptwo --image=nginx --replicas=3
- 20 kubectl get all
- 21 history
- 22 ./countdown 15
- 23 kubectl get all
- 24 kubectl delete pod appone-dcc78d77f-mrz5r
- 25 kubectl get all
- 26 kubectl create deploy appthree --image=nginx
- 27 kubectl get all
- 28 kubectl create -h
- 29 kubectl create -h | less
- 30 kubectl create deploy -h | less
- 31 kubectl completion -h | less
- 32 kubectl get pods
- 33 kubectl get pods appthree-dd4b5fc5d-vsmc4 -o yaml | less
- 34 ls
- 35 cd dockerfile/
- 36 ls
- 37 vim Dockerfile
- 38 docker build -t centmap:1.0 .
- 39 docker images
- 40 cd ..
- 41 ls
- 42 cd alpmap/
- 43 ls
- 44 vim Containerfile
- 45 docker build -t alpmap .
- 46 mv Containerfile Dockerfile
- 47 docker build -t alpmap .
- 48 touch sander.repo
- 49 docker build -t alpmap .
- 50 docker images
- 51 docker save alpmap
- 52 docker save --help | less
- 53 docker save alpmap -o alpmap.tgz
- 54 ls -l alpmap.tgz
- 55 file alpmap.tgz
- 56 kubectl explain pod.spec | less
- 57 kubectl get all
- 58 kubectl delete pod appthree-dd4b5fc5d-vsmc4
- 59 kubectl get all
- 60 kubectl run alone --image=nginx
- 61 kubectl get all
- 62 kubectl delete pod alone
- 63 kubectl get all
- 64 history
- 65 kubectl run -h | less
- 66 kubectl get pods appthree-dd4b5fc5d-z58r2 -o yaml | less
- 67 kubectl describe pods appthree-dd4b5fc5d-z58r2 | less
- 68 cd ..
- 69 ./countdown 4
- 70 kubectl run busybox --image-busybox
- 71 kubectl run busybox --image=busybox
- 72 kubectl get pods
- 73 kubectl describe pod busybox
- 74 kubectl delete pod busybox
- 75 kubectl run busybox --image=busybox --restart=Never
- 76 kubectl get pods
- 77 ./countdown 12
- 78 kubectl get pods busybox -o yaml | less
- 79 ./countdown 12
- 80 kubectl explain pod
- 81 kubectl explain pod.spec
- 82 ls
- 83 vim busybox.yaml
- 84 kubectl run mynginx --image=nginx --dry-run=client -o yaml > mynginx.yaml
- 85 vim mynginx.yaml
- 86 kubectl create -f mynginx.yaml
- 87 kubectl remove -f mynginx.yaml
- 88 kubectl delete -f mynginx.yaml
- 89 kubectl apply -f mynginx.yaml
- 90 vim sidecar.yaml
- 91 kubectl apply -f sidecar.yaml
- 92 kubectl get pods
- 93 kubectl exec -it sidecar-pod -c sidecar -- /bin/bash
- 94 vim sidecar.yaml
- 95 vim bonuslab.txt
- 96 history
- 97 cat bonuslab.txt
- 98 cat sidecar.yaml
- 99 ls -lrt
- 100 history
- 101 cat bonuslab.txt
- 102 cat sidecard.yaml
- 103 vim init-example1.yaml
- 104 kubectl apply -f init-example1.yaml
- 105 kubectl get pods
- 106 vim init-example2.yaml
- 107 kubectl apply -f init-example2.yaml
- 108 kubectl get pods
- 109 kubectl describe pod init-demo2
- 110 kubectl get ns
- 111 kubectl get pods
- 112 kubectl get pods -A
- 113 kubectl create ns secret
- 114 kubectl run secretpod --image=nginx -n secret
- 115 kubectl get pods
- 116 kubectl get pods -n secret
- 117 kubectl config set-context --current --namespace=secret
- 118 kubectl get pods
- 119 kubectl config set-context --current -n default
- 120 kubectl config set-context --current --namespace=default
- 121 kubectl get pods
- 122 history
- 123 ./countdown 2
- 124 kubectl run faildb --image=mariadb
- 125 kubectl get pods
- 126 kubectl describe pod faildb | less
- 127 kubectl logs faildb
- 128 kubectl delete pod faildb
- 129 kubectl run faildb --image=mariadb --env MARIADB_ROOT_PASSWORD=password
- 130 kubectl get pods
- 131 kubectl run -h | less
- 132 kubectl explain --recursive pod.spec | less
- 133 kubectl explain pod.spec.containers | less
- 134 kubectl explain pod.spec.containers.securityContext
- 135 kubectl explain pod.spec.containers.securityContext | less
- 136 vim securitycontextdemo2.yaml
- 137 kubectl apply -f securitycontextdemo2.yaml
- 138 kubectl exec -it security-context-demo -- sh
- 139 kubectl apply -f securitycontextdemo.yaml
- 140 vim securitycontextdemo.yaml
- 141 kubectl get pods
- 142 kubectl describe pod nginxsecure
- 143 history
- 144 kubectl explain --recursive pod.spec | less
- 145 kubectl explain pod.spec | less
- 146 kubectl explain pod.spec.securitycontext
- 147 kubectl explain pod.spec.securityContext
- 148 kubectl explain pod.spec.containers.securityContext
- 149 history
- 150 sudo poweroff
- 151 sudo apt install vim git -y
- 152 git clone https://github.com/sandervanvugt/ckad
- 153 history
- 154 cd ckad/
- 155 ls
- 156 ./minikube-docker-setup.sh
- 157 cd ckad/
- 158 ./countdown 4
- 159 ./countdown 5
- 160 ./countdown 14
- 161 ./countdown 2
- 162 ./countdown 14
- 163 ./countdown 4
- 164 minikube start
- 165 kubectl explain job.spec | less
- 166 source <(kubectl completion bash)
- 167 kubectl create job -h | less
- 168 kubectl create onejob --image=busybox -- date
- 169 kubectl create job onejob --image=busybox -- date
- 170 kubectl get jobs
- 171 kubectl get jobs,pods
- 172 kubectl get jobs onejob -o yaml | less
- 173 kubectl delete jobs onejob
- 174 kubectl get pods
- 175 kubect create job mynewjob --image=busybox --dry-run=client -o yaml -- sleep 5 > mynewjob.yaml
- 176 kubectl create job mynewjob --image=busybox --dry-run=client -o yaml -- sleep 5 > mynewjob.yaml
- 177 vim mynewjob.yaml
- 178 kubectl apply -f mynewjob.yaml
- 179 kubectl get jobs,pods
- 180 kubectl create cronjob -h | less
- 181 kubectl create cronjob runme --image=busybox --schedule="*/2 * * 6 1-5"
- 182 kubectl get cronjobs,jobs,pods
- 183 date
- 184 kubectl get cronjobs -o yaml
- 185 kubectl get cronjobs,jobs,pods
- 186 kubectl logs runme-28122618-8lgbl
- 187 kubectl get cronjobs -o yaml
- 188 kubectl create cronjob runmeagain --image=busybox --schedule="*/2 * * 6 1-5" -- echo take two
- 189 date
- 190 kubectl get cronjobs,jobs,pods
- 191 kubectl logs runmeagain-28122620-b7hnv
- 192 history
- 193 kubectl create cronjob -h | less
- 194 kubectl create cronjob logjob --image=busybox --schedule="5 * * * *" -- logger hello world
- 195 #kubectl create cronjob logjob --image=busybox --schedule="0 5 * * *" -- logger hello world
- 196 kubectl explain pod.spec.containers.resources
- 197 cd ckad/
- 198 vim frontend-resources.yaml
- 199 kubectl apply -f frontend-resources.yaml
- 200 kubectl get pods
- 201 kubectl describe pods frontend
- 202 kubectl delete -f frontend-resources.yaml
- 203 vim frontend-resources.yaml
- 204 kubectl apply -f frontend-resources.yaml
- 205 kubectl get pods
- 206 kubectl get deployments.apps
- 207 kubectl delete deployments.apps appone apptwo appthree
- 208 kubectl get pods
- 209 kubectl delete cronjobs.batch logjob runme runmeagain
- 210 kubectl get pods
- 211 kubectl describe pod frontend
- 212 kubectl delete -f frontend-resources.yaml
- 213 vim frontend-resources.yaml
- 214 kubectl apply -f frontend-resources.yaml
- 215 kubectl get pods
- 216 history
- 217 cat frontend-resources.yaml
- 218 vim lab6.yaml
- 219 kubectl apply -f lab6.yaml
- 220 kubectl get pods
- 221 kubectl get pods lab6 -o yaml | less
- 222 vim lab6.yaml
- 223 kubectl delete pod lab6
- 224 kubectl apply -f lab6.yaml
- 225 kubectl get pods lab6 -o yaml | less
- 226 vim busybox-ready.yaml
- 227 kubectl apply -f busybox-ready.yaml
- 228 kubectl get pods
- 229 kubectl describe pods busybox-ready
- 230 kubectl edit pods busybox-ready
- 231 kubectl exec -it busybox-ready -- /bin/sh
- 232 kubectl get pods
- 233 vim nginx-probes.yaml
- 234 kubectl apply -f nginx-probes.yaml
- 235 history
- 236 vim dm9.yaml
- 237 kubectl create cronjob -h | less
- 238 kubectl create cronjob lab9job --image=busybox --schedule="*/1 * * * *" --dry-run=client -o yaml -- sleep 30 > lab9.yaml
- 239 kubectl explain job.spec
- 240 kubectl explain job.spec | less
- 241 vim lab9.yaml
- 242 kubectl apply -f lab9.yaml
- 243 kubectl get cronjobs,jobs,pods
- 244 history
- 245 cat lab9.yaml
- 246 kubectl get all
- 247 kubectl delete cronjobs.batch lab9job
- 248 kubectl delete pod busybox busybox-ready faildb init-demo1 init-demo2 lab6 mynginx nginx-probes nginxsecure security-context-demo sidecar-pod sidecard sidecar-question
- 249 kubectl get pods
- 250 kubectl create deploy myweb --image=nginx --replicas 3
- 251 kubectl get all
- 252 kubectl describe deployments.apps myweb
- 253 kubectl get all
- 254 kubectl delete pod myweb-5b7f574f7f-v8h5g
- 255 kubectl get all
- 256 kubectl run pod mypod --image=nginx
- 257 kubectl get pods
- 258 kubectl run mypod --image=nginx
- 259 kubectl get pods
- 260 kubectl delete pod pod
- 261 kubectl delete pod mypod
- 262 kubectl get pods
- 263 vim redis-deploy.yaml
- 264 kubectl apply -f redis-deploy.yaml
- 265 vim redis-deploy.yaml
- 266 kubectl api-versions
- 267 vim redis-deploy.yaml
- 268 kubectl apply -f redis-deploy.yaml
- 269 kubectl get all
- 270 kubectl edit deployments.apps redis
- 271 kubectl get all
- 272 kubectl scale deployment redis --replicas 1
- 273 kubectl get all
- 274 kubectl delete rs redis-6dc855767d
- 275 kubectl get all
- 276 history
- 277 kubectl create deployment nginx-lab7 --image=nginx --replicas 3
- 278 kubectl get all --selector app=nginx-lab7
- 279 kubectl create deployment nginxup --image=nginx:1.14
- 280 kubectl get all --selector app=nginxup
- 281 kubectl set -h | less
- 282 kubectl set image deploy nginxup nginx=nginx:1.17
- 283 kubectl get all --selector app=nginxup
- 284 kubectl get deployments.apps redis -o yaml | less
- 285 kubectl create deploy bluelabel --image=nginx
- 286 kubectl label deploy bluelabel state=demo
- 287 kubectl get all --show-labels --selector app=bluelabel
- 288 kubectl get all --show-labels --selector state=demo
- 289 kubectl describe deployments.apps bluelabel
- 290 kubectl describe pod bluelabel-5cdb7645b5-kt2xm | less
- 291 kubectl label pod bluelabel-5cdb7645b5-kt2xm app-
- 292 kubectl get all --show-labels
- 293 kubectl get deploy bluelabel -o yaml | less
- 294 kubectl scale deployment bluelabel --replicas=4
- 295 kubectl set env deploy bluelabel type=blended
- 296 kubectlk get all --selector app=bluelabel
- 297 kubectl get all --selector app=bluelabel
- 298 ./countdown 14
- 299 kubectl edit deployments.apps bluelabel
- 300 vim rolling.yaml
- 301 kubectl apply -f rolling.yaml
- 302 kubectl rollout history deployment
- 303 kubectl edit deployments.apps rolling-nginx
- 304 kubectl rollout history deployment rolling-nginx
- 305 kubectl describe deployments.apps rolling-nginx
- 306 kubectl rollout history deployment rolling-nginx --revision=2
- 307 kubectl rollout history deployment rolling-nginx --revision=1
- 308 kubectl rollout undo deployment rolling-nginx --to-revision 1
- 309 kubectl get all
- 310 kubectl create deploy nginxsvc --image=nginx
- 311 kubectl get deploy
- 312 kubectl scale deployment nginxsvc --replicas=3
- 313 kubectl expose deployment nginxsvc --port=80
- 314 kubectl describe svc nginxsvc
- 315 kubectl get svc nginxsvc -o yaml | less
- 316 kubectl get svc
- 317 kubectl get endpoints
- 318 kubectl scale deployment nginxsvc --replicas 5
- 319 kubectl get endpoints
- 320 curl 10.105.204.135
- 321 minikube ssh
- 322 kubectl edit svc nginxsvc
- 323 kubectl get svc
- 324 minikube ip
- 325 curl 192.168.49.2:30762
- 326 ./countdown 2
- 327 history
- 328 kubectl edit svc nginxsvc
- 329 kubectl get svc
- 330 minikube ip
- 331 curl 192.168.49.2:30762
- 332 kubectl describe svc
- 333 kubectl edit svc nginxsvc
- 334 kubectl get endpoints
- 335 curl 192.168.49.2:30762
- 336 history
- 337 kubectl get svc,pods -n kube-system
- 338 kubectl run testpod --image=busybox -- sleep 3600
- 339 kubectl create ns other
- 340 kubectl run newnginx --image=nginx -n other
- 341 kubectl expose -n other newnginx --port=80
- 342 kubectl expose pod -n other newnginx --port=80
- 343 kubectl get svc -A
- 344 kubectl exec -it testpod -- cat /etc/resolv.conf
- 345 kubectl get pods,svc -n kube-system
- 346 kubectl exec -it testpod -- nslookup nginxsvc
- 347 kubectl exec -it testpod -- nslookup newnginx
- 348 kubectl exec -it testpod -- nslookup newnginx.other.svc.cluster.local
- 349 history
- 350 vim nwpolicy-complete-example.yaml
- 351 kubectl apply -f nwpolicy-complete-example.yaml
- 352 kubectl expose pod nginx --port=80
- 353 kubectl exec -it busybox -- wget --spider --timeout=1 nginx
- 354 kubectl label pod busybox access=true
- 355 kubectl exec -it busybox -- wget --spider --timeout=1 nginx
- 356 vim nwpolicy-complete-example.yaml
- 357 history
- 358 kubectl exec busybox -- wget --spider --timeout=1 nginx
- 359 minikube addons list
- 360 minikube addons enable ingress
- 361 kubectl get ns
- 362 kubectl get pods,svc -n ingress-nginx
- 363 kubectl get svc
- 364 kubectl create ing -h | less
- 365 kubectl create ingress nginxsvc-ingress --rule="/=nginxsvc:80" --rule="/hello=newdep:8080"
- 366 sudo vim /etc/hosts
- 367 kubectl get ingress
- 368 curl nginxsvc.info
- 369 kubectl describe ing nginxsvc-ingress
- 370 kubectl create deploy newdep --image=gcr.io/google-samples/hello-app:2.0
- 371 kubectl expose deploy newdep --port=8080
- 372 kubectl describe ing nginxsvc-ingress
- 373 curl nginxsvc.info
- 374 curl nginxsvc.info/hello
- 375 history
- 376 vim /etc/hosts
- 377 sudo poweroff
- 378 sudo fdisk /dev/sda
- 379 sudo reboot
- 380 sudo resize2fs /dev/sda3
- 381 df -h
- 382 minikube start
- 383 source <(kubectl completion bash)
- 384 kubectl get all
- 385 kubectl delete deploy --all
- 386 kubectl get all
- 387 kubectl explain pod.spec
- 388 kubectl explain pod.spec.volumes | less
- 389 cd ckad/
- 390 vim morevolumes.yaml
- 391 kubectl apply -f morevolumes.yaml
- 392 kubectl get pods morevol
- 393 kubectl get pods morevol2
- 394 kubectl describe pod morevol2 | less
- 395 kubectl exec -it morevol2 -c centos1 -- touch /centos1/test
- 396 kubectl exec -it morevol2 -c centos2 -- ls -l /centos2
- 397 vim pv.yaml
- 398 kubectl apply -f pv.yaml
- 399 kubectl get pv
- 400 vim pvc.yaml
- 401 kubectl apply -f pvc.yaml
- 402 kubectl get pvc,pv
- 403 kubectl get storageclass
- 404 kubectl describe pv pvc-4b357bd7-fce2-467b-82b4-c35f6bbb7ec0
- 405 minikube ssh
- 406 vim pvc-pod.yaml
- 407 kubectl apply -f pvc-pod.yaml
- 408 kubectl get pvc,pv
- 409 kubectl exec nginx-pvc-pod -- touch /usr/share/nginx/html/testfil
- 410 minikube ssh
- 411 kubectl get storageclass
- 412 minikube addon list
- 413 minikube addons list
- 414 #minikube addons disable storage-provisioner
- 415 kubectl create deploy mydb --image=mariadb
- 416 kubectl get all
- 417 kubectl describe pod mydb-7978c6b495-4blc7
- 418 kubectl logs mydb-7978c6b495-4blc7
- 419 kubectl set env deploy mydb MARIADB_ROOT_PASSWORD=password
- 420 kubectl get all
- 421 vim varsfile
- 422 kubectl create cm mydbvars --from-env-file=varsfile
- 423 kubectl describe cm mydbvars
- 424 kubectl get cm mydbvars -o yaml
- 425 kubectl delete deploy mydb
- 426 kubectl create deploy mydb --image=mariadb --replicas=3
- 427 kubectl get all --selector app=mydb
- 428 kubectl set env -h | less
- 429 kubectl set env deploy mydb --from=configmap/mydbvars
- 430 kubectl get all --selector app=mydb
- 431 kubectl get deploy mydb -o yaml | less
- 432 echo hello world > index.html
- 433 kubectl create cm myindex --from-file=index.html
- 434 kubectl describe cm myindex
- 435 kubectl create cm mypasswd --from-file=/etc/passwd
- 436 kubectl describe cm mypasswd
- 437 kubectl create deploy myweb --image=nginx
- 438 kubectl edit deployments.apps myweb
- 439 kubectl get pods
- 440 kubectl exec -it myweb-589445db67-p8ttj -- ls -l /usr/share/nginx/html
- 441 kubectl exec -it myweb-589445db67-p8ttj -- cat /usr/share/nginx/html/index.html
- 442 history
- 443 kubectl create secret -h | less
- 444 kubectl create secret generic -h | less
- 445 kubectl create secret generic dbpw --from-literal=ROOT_PASSWORD=password
- 446 kubectl describe secrets dbpw
- 447 kubectl get secret dbpw -o yaml
- 448 echo cGFzc3dvcmQ= | base64 -d
- 449 kubectl create deploy mynewdb --image=mariadb
- 450 kubectl set env deploy mynewdb --from=secret/dbpw --prefix=MARIADB_
- 451 kubectl get all
- 452 kubectl get deploy mynewdb -o yaml | less
- 453 kubectl api-resources | less
- 454 kubectl api-versions
- 455 kubectl get pods -n kube-system
- 456 kubectl config view
- 457 kubectl proxy --port 8001 &
- 458 kubectl create deploy curlnginx --image=nginx --replicas=3
- 459 curl http://localhost:8001/version
- 460 curl http://localhost:8001/api/v1/namespaces/default/pods
- 461 curl http://localhost:8001/api/v1/namespaces/default/pods/testpod
- 462 kubectl get pods
- 463 curl -XDELETE http://localhost:8001/api/v1/namespaces/default/pods/testpod
- 464 kubectl get pods
- 465 kubectl config view
- 466 cat ~/.kube/config
- 467 kubectl get pods
- 468 kubectl get pods nginx -o yaml | less
- 469 kubectl get sa
- 470 kubectl get sa -n kube-system
- 471 kubectl get ns
- 472 kubectl get sa -n ingress-nginx
- 473 kubectl get roles
- 474 kubectl get roles -A
- 475 kubectl get clusterroles -A
- 476 kubectl get clusterrole view -o yaml
- 477 kubectl get clusterroles
- 478 kubectl get clusterrolebindings
- 479 vim mypod.yaml
- 480 kubectl apply -f mypod.yaml
- 481 kubectl get pods mypod -o yaml
- 482 kubectl exec -it mypod -- sh
- 483 vim mysa.yaml
- 484 kubectl apply -f mysa.yaml
- 485 vim list-pods.yaml
- 486 kubectl apply -f list-pods.yaml
- 487 vim list-pods-mysa-binding.yaml
- 488 kubectl apply -f list-pods-mysa-binding.yaml
- 489 vim mysapod.yaml
- 490 kubectl apply -f mysapod.yaml
- 491 vim mysapod.yaml
- 492 kubectl exec -it mysapod -- sh
- 493 vim list-pods.yaml
- 494 history
- 495 cd ../Downloads/
- 496 ls -lrt
- 497 tar xvf helm-v3.12.1-linux-amd64.tar.gz
- 498 sudo mv linux-amd64/helm /usr/local/bin
- 499 helm version
- 500 helm repo add bitnami https://charts.bitnami.com/bitnami
- 501 helm repo list
- 502 helm search repo bitnami
- 503 helm search repo file
- 504 helm search repo nginx --versions
- 505 helm install bitnami/mysql --generate-name
- 506 kubectl get all
- 507 helm show chart bitnami/mysql
- 508 helm show all bitnami/mysql
- 509 helm list
- 510 helm list --all-namespaces
- 511 helm status mysql-1687452470
- 512 source <(helm completion bash)
- 513 helm repo list
- 514 helm show values bitnami/nginx
- 515 helm show values bitnami/nginx | less
- 516 helm show values bitnami/nginx | grep commonLabels
- 517 cd
- 518 vim values.yaml
- 519 helm install bitnami/nginx --generate-name --values values.yaml
- 520 helm list
- 521 vim values.yaml
- 522 helm get values nginx-1687453031
- 523 kubectl get deploy
- 524 helm update nginx-1687453031 --set commonLabels: 'type: helmapp'
- 525 helm upgrade nginx-1687453031 --set commonLabels: 'type: helmapp'
- 526 cd ckad/
- 527 ./countdown 12
- 528 history
- 529 kubectl create deploy blue-nginx --image=nginx:1.14 --replicas=3
- 530 kubectl expose deploy blue-nginx --port=80 --name=bgnginx
- 531 kubectl get endpoints
- 532 kubectl get deployments.apps blue-nginx -o yaml > green-nginx.yaml
- 533 vim green-nginx.yaml
- 534 kubectl apply -f green-nginx.yaml
- 535 kubectl get pods
- 536 kubectl delete svc bgnginx; kubectl expose deploy green-nginx --port=80 --name=bgnginx
- 537 kubectl get endpoints
- 538 kubectl get pods
- 539 history
- 540 kubectl create deploy old-nginx --image=nginx:1.14 --replicas=3 --dry-run=client -o yaml > ~/oldnginx.yaml
- 541 vim old-nginx.yaml
- 542 vim ~/old-nginx.yaml
- 543 vim ~/oldnginx.yaml
- 544 kubectl expose deploy old-nginx --name=canary --port=80 --selector type=canary
- 545 kubectl apply -f ~/oldnginx.yaml
- 546 kubectl expose deploy old-nginx --name=canary --port=80 --selector type=canary
- 547 kubectl get svc
- 548 kubectl get endpoints
- 549 kubectl edit svc canary
- 550 kubectl get svc
- 551 curl 192.168.49.2:31445
- 552 history
- 553 kubectl cp old-nginx-654f595c5-v2xf4:/usr/share/nginx/html/index.html index.html
- 554 vim index.html
- 555 kubectl create cm canary --from-file=index.html
- 556 kubectl describe cm canary
- 557 vim canary.yaml
- 558 kubectl get endpoints
- 559 kubectl apply -f canary.yaml
- 560 kubectl get endpoints
- 561 curl 192.168.49.2:31445
- 562 kubectl get deploy
- 563 kubectl scale deployment new-nginx --replicas=3
- 564 kubectl scale deployment old-nginx --replicas=0
- 565 kubectl get deploy
- 566 history
- 567 vim crd-object.yaml
- 568 kubectl apply -f crd-object.yaml
- 569 kubectl api-resources | grep back
- 570 vim crd-backup.yaml
- 571 kubectl apply -f crd-backup.yaml
- 572 kubectl get backups
- 573 kubectl get backups -o yaml
- 574 kubectl api-resources
- 575 kubectl get pods -n kube-system
- 576 history
Add Comment
Please, Sign In to add comment