Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- student@student-virtual-machine:~/ckad$ history
- 1 cd ckad
- 2 ./countdown 15
- 3 cd ckad/
- 4 ./countdown 15
- 5 ./countdown 5
- 6 minikube ip
- 7 ./countdown 12
- 8 minikube start --vm-driver=docker --cni=calico
- 9 kubectl get all
- 10 minikube status
- 11 minikube ssh
- 12 minikube dashboard
- 13 bg
- 14 kubectl get all
- 15 source <(kubectl completion bash)
- 16 kubectl get all
- 17 kubectl create deployment firstginx --image=nginx --replicas=3
- 18 kubectl get all
- 19 history
- 20 kubectl completion -h | less
- 21 kubectl scale deployment --replicas=1
- 22 kubectl scale deployment firstginx --replicas 1
- 23 kubectl get all
- 24 kubectl scale deployment firstginx --replicas 3
- 25 history
- 26 kubectl get pods
- 27 kubectl get pods -o wide
- 28 history
- 29 kubectl -h | less
- 30 kubectl create -h | less
- 31 kubectl create deploy -h | less
- 32 ls
- 33 history
- 34 cd
- 35 git clone https://github.com/sandervanvugt/ckad
- 36 cd ckad
- 37 cd dockerfile/
- 38 ls
- 39 vim Dockerfile
- 40 docker build . -t centmap
- 41 docker images
- 42 docker save --help
- 43 cd ..
- 44 ./countdown 12
- 45 history
- 46 kubectl run -h | less
- 47 kubectl run hazelcast --image=hazelcast/hazelcast --env="DNS_DOMAIN=cluster" --env="POD_NAMESPACE=default"
- 48 kubectl get pods
- 49 kubectl get pods hazelcast -o json | less
- 50 kubectl get pods hazelcast -o yaml | less
- 51 kubectl describe pod hazelcast | less
- 52 kubectl get pods
- 53 kubectl delete pod firstginx-7c4fcf6b55-w6pd2
- 54 kubectl get pods
- 55 kubectl get all
- 56 kubectl delete pod hazelcast
- 57 kubectl get all
- 58 kubectl scale deployment firstginx --replicas 2
- 59 kubectl get all
- 60 kubectl delete replicasets.apps firstapp-568f648dc5
- 61 kubectl get all
- 62 kubectl delete deploy firstapp
- 63 kubectl get all
- 64 history
- 65 kubectl get deployments.apps -o yaml | less
- 66 kubectl get deployments.apps firstginx -o yaml | less
- 67 kubectl explain pod
- 68 kubectl explain pod.spec | less
- 69 kubectl explain pod.spec.volumes | less
- 70 kubectl run yournginx --image=nginx --dry-run=client -o yaml
- 71 kubectl run yournginx --image=nginx --dry-run=client -o yaml > yournginx.yaml
- 72 kubectl explain pod.spec
- 73 kubectl explain pod.spec | less
- 74 vim yournginx.yaml
- 75 kubectl create -f yournginx.yaml
- 76 kubectl apply -f yournginx.yaml
- 77 kubectl run -h | less
- 78 kubectl create -h | less
- 79 history
- 80 vim sidecar.yaml
- 81 kubectl create -f sidecar.yaml
- 82 kubectl get pods
- 83 kubectl describe pod sidecar-pod
- 84 kubectl exec -it sidecar-pod -c sidecar -- /bin/bash
- 85 ./countdown 12
- 86 cat sidecar.yaml
- 87 vim initone.yaml
- 88 kubectl apply -f initone.yaml
- 89 kubectl get pods
- 90 cat initone.yaml
- 91 kubectl get pods
- 92 kubectl describe pod initone
- 93 kubectl get pods
- 94 vim initone.yaml inittwo.yaml
- 95 vim inittwo.yaml
- 96 cp initone.yaml inittwo.yaml
- 97 vim inittwo.yaml
- 98 kubectl apply -f inittwo.yaml
- 99 kubectl get pods
- 100 kubectl delete pod initone
- 101 history
- 102 kubectl get all
- 103 kubectl get ns
- 104 kubectl create ns secret
- 105 kubectl get ns
- 106 kubectl run secretpod --image=nginx -n secret
- 107 kubectl get pods
- 108 kubectl get pods -n secret
- 109 kubectl get pods -A
- 110 kubectl config view
- 111 kubectl config set-context --current secret
- 112 kubectl config set --current secret
- 113 kubectl config --help
- 114 kubectl config set-context --current ns=secret
- 115 kubectl config set-context --current --ns=secret
- 116 kubectl config set-context --current --namespace=secret
- 117 kubectl config set-context -h | less
- 118 kubectl get pods
- 119 kubectl config set-context --current --namespace=default
- 120 kubectl get pods
- 121 history
- 122 kubectl explain pod
- 123 kubectl explain pod.spec
- 124 kubectl describe pod yournginx
- 125 kubectl get pods
- 126 kubectl exec -it firstginx-7c4fcf6b55-6r9zl -- sh
- 127 kubectl logs yournginx
- 128 kubectl describe pods yournginx | less
- 129 history
- 130 kubectl describe pods yournginx | grep volume
- 131 kubectl run faildb --image=mariadb
- 132 kubectl get pods
- 133 kubectl describe pod faildb
- 134 kubectl logs faildb
- 135 kubectl get pods
- 136 history
- 137 kubectl explain pod.spec.securityContext
- 138 kubectl explain pod.spec.securityContext | less
- 139 kubectl explain pod.spec.containers.spec.securityContext | less
- 140 kubectl explain pod.spec.containers.securityContext | less
- 141 vim securitycontextdemo2.yaml
- 142 kubectl apply -f securitycontextdemo2.yaml
- 143 kubectl exec -it security-context-demo sh
- 144 kubectl apply -f securitycontextdemo.yaml
- 145 kubectl get pods
- 146 kubectl describe pod nginxsecure
- 147 history
- 148 kubectl api-resources | less
- 149 kubectl create job onejob --image=busybox -- date
- 150 kubectl get jobs,pods
- 151 kubectl get jobs onejob -o yaml | less
- 152 kubectl delete job onejob
- 153 kubectl get pods
- 154 kubectl create job mynewjob --image=busybox --dry-run=client -o yaml -- sleep 5 > mynewjob.yaml
- 155 vim mynewjob.yaml
- 156 kubectl create -f mynewjob.yaml
- 157 kubectl get pods,jobs
- 158 sleep 60; kubectl get pods,jobs
- 159 history
- 160 kubectl create cronjob -h | less
- 161 kubectl create cronjob runme --image=busybox --schedule="42 * * * *" -- echo greetings from the cluster
- 162 kubectl get cronjobs,jobs,pods
- 163 date
- 164 kubectl get cronjobs,jobs,pods
- 165 kubectl logs runme-27838902-tjshv
- 166 kubectl get cronjob runme -o yaml | less
- 167 kubectl delete cronjobs.batch runme
- 168 history
- 169 kubectl create cj -h | less
- 170 kubectl create cronjob my-job --image=busybox --schedule="*/5 * * * *" -- logger hello world
- 171 history
- 172 vim frontend-resources.yaml
- 173 kubectl apply -f frontend-resources.yaml
- 174 kubectl describe pod frontend | less
- 175 kubectl get pods
- 176 kubectl describe pod frontend
- 177 kubectl delete -f frontend-resources.yaml
- 178 vim frontend-resources.yaml
- 179 kubectl apply -f frontend-resources.yaml
- 180 kubectl get pods
- 181 kubectl delete -f frontend-resources.yaml
- 182 vim frontend-resources.yaml
- 183 kubectl apply -f frontend-resources.yaml
- 184 kubectl get pods
- 185 vim frontend-resources.yaml
- 186 minikube ssh
- 187 kubectl delete -f frontend-resources.yaml
- 188 vim frontend-resources.yaml
- 189 kubectl apply -f frontend-resources.yaml
- 190 kubectl get pods
- 191 kubectl describe pod frontend
- 192 vim frontend-resources.yaml
- 193 kubectl apply -f frontend-resources.yaml
- 194 history
- 195 vim lab6.yaml
- 196 kubectl apply -f lab6.yaml
- 197 kubectl get pods
- 198 kubectl describe pod httpd
- 199 vim busybox-ready.yaml
- 200 kubectl create -f busybox-ready.yaml
- 201 kubectl get pods
- 202 kubectl describe pod busybox-ready
- 203 kubectl edit pods busybox-ready
- 204 kubectl exec -it busybox-ready -- /bin/sh
- 205 kubectl get pods
- 206 vim nginx-probes.yaml
- 207 kubectl get all
- 208 curl -k kubernetes:6443/healthz
- 209 minikube ssh
- 210 vim au.yaml
- 211 kubectl create -f au.yaml
- 212 kubectl get pods
- 213 vim au.yaml
- 214 kubectl delete -f au.yaml
- 215 kubectl create -f au.yaml
- 216 kubectl get pods
- 217 vim au.yaml
- 218 kubectl delete pod readiness-exec
- 219 kubectl create -f au.yaml
- 220 kubectl get pods
- 221 vim au.yaml
- 222 minikube ssh
- 223 vim au.yaml
- 224 kubectl explain pod.spec.readinessProbe
- 225 vim au.yaml
- 226 kubectl explain pod.spec.containers.readinessProbe
- 227 kubectl explain pod.spec.containers.readinessProbe.httpGet
- 228 vim au.yaml
- 229 kubectl explain pod.spec.containers.readinessProbe.tcpSocket
- 230 vim au.yaml
- 231 kubectl delete -f au.yaml
- 232 kubectl create -f au.yaml
- 233 kubectl get pods
- 234 curl -k $(minikube ip):8443/healthz
- 235 curl -k https://$(minikube ip):8443/healthz
- 236 minikube ssh
- 237 minikube ip
- 238 kubectl delete -f au.yaml
- 239 vim au.yaml
- 240 kubectl delete pod readiness-exec
- 241 kubectl create -f au.yaml
- 242 kubectl get pods
- 243 kubectl describe pod readiness-exec
- 244 kubectl delete pod readiness-exec
- 245 vim au.yaml
- 246 kubectl create -f au.yaml
- 247 kubectl get pods
- 248 kubectl describe pod readiness-exec
- 249 kubectl delete pod readiness-exec
- 250 vim au.yaml
- 251 cp au.yaml au2.yaml
- 252 vim au2.yaml
- 253 kubectl create -f au2.yaml
- 254 kubectl get pods
- 255 kubectl describe pod readiness-exec
- 256 kubectl get pods
- 257 kubectl exec -it busybox-ready -- sh
- 258 vim au2.yaml
- 259 kubectl delete pod readiness-exec
- 260 kubectl create -f au2.yaml
- 261 kubectl get pods
- 262 kubectl delete pod readiness-exec
- 263 vim au2.yaml
- 264 kubectl create -f au2.yaml
- 265 kubectl get pods
- 266 history
- 267 curl -k https://$(minikube ip):8443/healthz
- 268 vim au.yaml
- 269 vim au2.yaml
- 270 cat au2.yaml
- 271 kubectl create deploy myweb --image=nginx --replicas=3
- 272 kubectl describe deploy myweb | less
- 273 kubectl get all --selector app=myweb
- 274 kubectl delete pod myweb-d5b9458bc-n6ggw
- 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-resources | less
- 280 vim redis-deploy.yaml
- 281 kubectl apply -f redis-deploy.yaml
- 282 kubectl get all
- 283 kubectl edit deployments.apps redis
- 284 kubectl get deploy
- 285 kubectl delete rs redis-6467896d84
- 286 kubectl get all | grep redis
- 287 history
- 288 kubectl create deploy nginxup --image=nginx:1.14
- 289 kubectl get all --selector app=nginxup
- 290 kubectl scale deployment nginxup --replicas=3
- 291 kubectl set image deploy nginxup nginx=nginx:1.17
- 292 kubectl get all --selector app=nginxup
- 293 kubectl get deploy
- 294 kubectl get deploy redis -o yaml | less
- 295 kubectl create deploy bluelabel --image=nginx
- 296 kubectl label deployment bluelabel state=demo
- 297 kubectl get deploy --show-labels
- 298 kubectl get all --selector state=demo
- 299 kubectl get all --selector app=bluelabel
- 300 kubectl describe deploy bluelabel
- 301 kubectl get all | grep blue
- 302 kubectl label pod bluelabel-d7894847c-wwsl9 app-
- 303 kubectl get all | grep blue
- 304 kubectl get all --selector=run
- 305 kubectl get all --selector=run --show-labels
- 306 history
- 307 kubectl scale deploy bluelabel --replicas 4
- 308 kubectl get all --selector app=bluelabel
- 309 kubectl set env deploy bluelabel type=blended
- 310 kubectl get all --selector app=bluelabel
- 311 vim rolling.yaml
- 312 kubectl apply -f rolling.yaml
- 313 kubectl rollout history deployment
- 314 kubectl edit deployments.apps rolling-nginx
- 315 kubectl rollout history deployment rolling-nginx
- 316 kubectl rollout history deployment rolling-nginx --revision=2
- 317 kubectl rollout history deployment rolling-nginx --revision=1
- 318 kubectl rollout undo deployment rolling-nginx --to-revision 1
- 319 kubectl get all --selector app=rolling-nginx
- 320 kubectl get all | grep rolling
- 321 kubectl delete all --all
- 322 history
- 323 vim rolling.yaml
- 324 kubect get all
- 325 kubectl get all
- 326 kubectl create deployment nginxsvc --image=nginx --replicas=3
- 327 kubectl get all
- 328 kubectl expose deploy nginxsvc --port=80
- 329 kubectl get all
- 330 kubectl get svc nginxsvc -o yaml | less
- 331 kubectl get svc
- 332 kubectl describe svc nginxsvc
- 333 kubectl get pods -o wide
- 334 kubectl get endpoints
- 335 kubectl edit svc nginxsvc
- 336 kubectl get endpoints
- 337 kubectl edit svc nginxsvc
- 338 kubectl get endpoints
- 339 curl 10.109.243.181
- 340 kubectl get svc
- 341 minikube ssh
- 342 kubectl edit svc nginxsvc
- 343 kubectl get svc
- 344 minikube ip
- 345 curl 192.168.49.2:32000
- 346 history
- 347 kubectl run testbox --image=busybox --sleep=36000
- 348 kubectl run testbox --image=busybox -- sleep=36000
- 349 kubectl exec -it testbox -- cat /etc/resolv.conf
- 350 kubectl get all
- 351 kubectl delete testbox
- 352 kubectl delete pod testbox
- 353 kubectl run testbox --image=busybox -- sleep 36000
- 354 kubectl exec -it testbox -- cat /etc/resolv.conf
- 355 kubectl get svc -A
- 356 kubectl exec -it testbox -- nslookup nginxsvc
- 357 kubectl create ns testspace; kubectl run testx --image=nginx -n testspace
- 358 kubectl get pods -A
- 359 kubectl expose -n testspace pod testx --port=80 --type=NodePort
- 360 kubectl get svc -A
- 361 kubectl exec -it testbox -- nslookup testspace
- 362 kubectl exec -it testbox -- nslookup testx
- 363 kubectl exec -it testbox -- nslookup testx.testspace.svc.cluster.local
- 364 kubectl get svc -A
- 365 kubectl exec -it testbox -- nslookup testx.testspace.svc.cluster.local
- 366 history
- 367 kubectl get pods -n kube-system
- 368 kubectl get svc -n kube-system
- 369 vim nwpolicy-complete-example.yaml
- 370 kubectl apply -f nwpolicy-complete-example.yaml
- 371 kubectl expose pod nginx --port=80
- 372 kubectl exec -it busybox -- wget --spider --timeout=1 nginx
- 373 kubectl label pod busybox access=true
- 374 kubectl exec -it busybox -- wget --spider --timeout=1 nginx
- 375 kubectl describe networkpolicies
- 376 kubectl get pods --show-labels
- 377 minikube addon list
- 378 minikube addons list
- 379 minikube addons enable ingress
- 380 kubectl get ns
- 381 kubectl get pods -n ingress-nginx
- 382 kubectl get deploy,svc
- 383 curl 192.168.49.2:32000
- 384 kubectl create ingress -h | less
- 385 kubectl create ingress nginxsvc-ingress --rule="/=nginxsvc:80" --rule="/hello=newdep:8080"
- 386 kubectl get svc
- 387 sudo vim /etc/hosts
- 388 kubectl get ingress
- 389 curl nginxsvc.info
- 390 kubectl describe ingress nginxsvc-ingress
- 391 history
- 392 kubectl edit svc nginxsvc
- 393 kubectl describe ingress nginxsvc-ingress
- 394 curl nginxsvc.info
- 395 kubectl edit svc nginxsvc
- 396 curl nginxsvc.info
- 397 kubectl create deploy newdep --image=gcr.io/google-samples/hello-app:2.0
- 398 kubectl expose deployment newdep --port=8080
- 399 curl nginxsvc.info/hello
- 400 kubectl describe ingress nginxsvc-ingress
- 401 history
- 402 kubectl explain pod.spec.volumes
- 403 cat morevolumes.yaml
- 404 kubectl apply -f morevolumes.yaml
- 405 kubectl get pods morevol2
- 406 kubectl describe pods morevol2 | less
- 407 kubectl get pods morevol2
- 408 kubectl exec -it morevol2 -c centos1 -- touch /centos1/test
- 409 kubectl exec -it morevol2 -c centos2 -- ls -l /centos2/
- 410 df -h
- 411 sudo poweroff
- 412 sudo apt install vim git -y
- 413 git clone https://github.com/sandervanvugt/ckad
- 414 cd ckad
- 415 ls
- 416 ./minikube-docker-setup.sh
- 417 sudo fdisk /dev/sda
- 418 df -h
- 419 sudo resize2fs /dev/sda3
- 420 df -h
- 421 history
- 422 minikube start
- 423 source <(kubectl completion bash)
- 424 kubectl get all
- 425 cd ckad
- 426 vim pv.yaml
- 427 kubectl create -f pv.yaml
- 428 kubectl get pv
- 429 vim pvc.yaml
- 430 kubectl create -f pvc.yaml
- 431 kubectl get pvc,pv
- 432 kubectl get storageclass
- 433 kubectl describe pv pvc-8ed432a2-83b9-474d-8278-47590f5a2277
- 434 vim pvc-pod.yaml
- 435 kubectl apply -f pvc-pod.yaml
- 436 kubectl get pvc
- 437 kubectl describe pv pvc-e1c88729-714d-45cf-9461-bb98f326c8a0
- 438 kubectl exec nginx-pvc-pod -- touch /usr/share/nginx/html/testfile
- 439 minikube ssh
- 440 history
- 441 ./countdown 1
- 442 kubectl get pv,pvc
- 443 kubectl explain pv.spec | less
- 444 kubectl delete pv pv-volume
- 445 vim pv.yaml
- 446 kubectl get storageclass
- 447 kubectl get pvc.spec | less
- 448 kubectl explain pvc.spec | less
- 449 vim pvc.yaml
- 450 kubectl create -f pv.yaml
- 451 kubectl get pv
- 452 kubectl create -f pvc.yaml
- 453 kubectl get pvc
- 454 ./countdown 12
- 455 ssh 192.168.29.169
- 456 ssh 192.168.29.168
- 457 vim nwpolicy-complete-example.yaml
- 458 kubectl create -f nwpolicy-complete-example.yaml
- 459 kubectl create deploy mydb --image=mariadb --replicas=2
- 460 kubectl describe pods mydb-c8bddc94c-j5dq4
- 461 kubectl logs mydb-c8bddc94c-j5dq4
- 462 kubectl get all
- 463 kubectl set env deploy mydb MYSQL_ROOT_PASSWORD=password
- 464 kubectl get all
- 465 kubectl get deploy mydb -o yaml > mydb.yaml
- 466 vim mydb.yaml
- 467 vim varsfile
- 468 kubectl create cm mydbvars --from-env-file=varsfile
- 469 kubectl describe cm mydbvars
- 470 rm varsfile
- 471 kubectl create deployment newdb --image=mariadb --replicas=3
- 472 kubectl get all --selector app=newdb
- 473 kubectl set env deploy newdb --from=configmap/mydbvars
- 474 kubectl get all --selector app=newdb
- 475 kubectl get deploy newdb -o yaml | less
- 476 kubectl exec -it newdb-764d987974-pk88f -- env
- 477 history
- 478 echo hello world > index.html
- 479 kubectl create cm myindex --from-file=index.html
- 480 kubectl describe cm myindex
- 481 kubectl create deploy myweb --image=nginx
- 482 kubectl edit deploy myweb
- 483 kubectl exec -it myweb-859f554699-jrz9l -- cat /usr/share/nginx/html/index.html
- 484 history
- 485 kubectl create secret generic dbpw --from-literal=ROOT_PASSWORD=password
- 486 kubectl describe secret dbpw
- 487 kubectl get secret dbpw -o yaml
- 488 echo cGFzc3dvcmQ= | base64 -d
- 489 kubectl create deploy mynewdb --image=mariadb
- 490 kubectl set env deploy mynewdb --from=secret/dbpw --prefix=MYSQL_
- 491 kubectl create secret generic dbpw --from-literal=ROOT_PASSWORD=password
- 492 kubectl get all
- 493 kubectl delete all --all
- 494 ./countdown 14
- 495 vim nwpolicy-complete-example.yaml
- 496 kubectl delete -f nwpolicy-complete-example.yaml
- 497 kubectl apply -f nwpolicy-complete-example.yaml
- 498 kubectl expose pod nginx --port=80
- 499 kubectl exec -it busybox -- wget --spider --timeout=1 nginx
- 500 kubectl get pods -n kube-system
- 501 kubectl get ns
- 502 kubectl proxy --port=8001 &
- 503 kubectl create deploy curlginx --image=nginx --replicas=3
- 504 kubectl get pods
- 505 curl http://localhost:8001/version
- 506 curl http://localhost:8001/api/v1/namespaces/default/pods
- 507 curl http://localhost:8001/api/v1/namespaces/default/pods/nginx/
- 508 curl --XDELETE http://localhost:8001/api/v1/namespaces/default/pods/nginx/
- 509 curl --XDELETE http://localhost:8001/api/v1/namespaces/default/pods/nginx
- 510 curl -XDELETE http://localhost:8001/api/v1/namespaces/default/pods/nginx
- 511 kubectl get pods
- 512 vim ~/.kube/config | less
- 513 kubectl get podsreset
- 514 reset
- 515 vim ~/.kube/config
- 516 kubectl get pods
- 517 kubectl get pods --as bob
- 518 vim mypod.yaml
- 519 kubectl apply -f mypod.yaml
- 520 kubectl get pods mypod -o yaml | less
- 521 kubectl exec -it mypod -- sh
- 522 kubectl delete pod mypod
- 523 vim mypod.yaml
- 524 kubectl apply -f mypod.yaml
- 525 kubectl exec -it mypod -- sh
- 526 ssh 192.168.29.168
- 527 history
- ######
- 55 vim nwpolicy-complete-example.yaml
- 56 kubectl create -f nwpolicy-complete-example.yaml
- 57 kubectl expose pod nginx --port=80
- 58 kubectl exec -it busybox -- wget --spider --timeout=1 nginx
- 59 kubectl label pod busybox access=true
- 60 kubectl exec -it busybox -- wget --spider --timeout=1 nginx
- 61 exit
- 62 cd ckad/
- 63 kubectl apply -f mypod.yaml
- 64 kubectl exec -it mypod -- sh
- 65 kubectl run alpine/curl --name mypod
- 66 kubectl run -h
- 67 kubectl run mypod --image=alpine/curl
- 68 kubectl delete pod mypod
- 69 kubectl run mypod --image=alpine/curl
- 70 kubectl exec -it mypod -- sh
- 71 kubectl get pods
- 72 kubectl run mypod2 --image=alpine/curl -- sleep 3600
- 73 kubectl get pods
- 74 kubectl exec -it mypod2 -- sh
- 75 vim mysa.yaml
- 76 kubectl apply -f mysa.yaml
- 77 vim list-pods.yaml
- 78 kubectl apply -f list-pods.yaml
- 79 kubectl get roles
- 80 kubectl get roles -A
- 81 vim list-pods-mysa-binding.yaml
- 82 kubectl apply -f list-pods-mysa-binding.yaml
- 83 vim mysapod.yaml
- 84 kubectl apply -f mysapod.yaml
- 85 kubectl exec -it mysapod -- sh
- 86 kubectl get sa
- 87 source <(kubectl completion bash)
- 88 kubectl set serviceaccount -h
- 89 kubectl set serviceaccount -h | less
- 90 ./countdown 10
- 91 kubectl create deployment blue-nginx --image=nginx:1.14 --replicas=3
- 92 kubectl expose deploy blue-nginx --port=80 --name=bgnginx
- 93 kubectl describe svc bgnginx
- 94 kubectl get deployments.apps blue-nginx -o yaml > green-nginx.yaml
- 95 vim green-nginx.yaml
- 96 kubectl create -f green-nginx.yaml
- 97 kubectl get pods -o wide
- 98 kubectl delete svc bgnginx; kubectl expose deploy green-nginx --port=80 --name=bgnginx
- 99 kubectl get endpoints
- 100 kubectl scale deploy blue-nginx --replicas=0
- 101 kubectl get deploy
- 102 kubectl delete all --all
- 103 kubectl create deploy old-nginx --image=nginx:1.13 --replicas=3 --dry-run=client -o yaml > ~/oldnginx.yaml
- 104 cd ..
- 105 vim oldnginx.yaml
- 106 kubectl create -f oldnginx.yaml
- 107 kubectl expose deploy old-nginx --name=oldnginx --port=80 --selector type=canary
- 108 kubectl describe svc oldnginx
- 109 kubectl get svc; kubectl get endpoints
- 110 minikube ssh
- 111 curl 10.107.189.173
- 112 kubectl cp old-nginx-88d745f56-vmwh4:/usr/share/nginx/html/index.html index.html
- 113 vim index.html
- 114 kubectl create cm canary --from-file=index.html
- 115 kubectl describe cm canary
- 116 cd ckad/
- 117 vim canary.yaml
- 118 kubectl get endpoints
- 119 kubectl apply -f canary.yaml
- 120 kubectl get endpoints
- 121 kubectl get svc
- 122 curl 10.107.189.173
- 123 kubectl get deploy
- 124 kubectl scale deployment new-nginx --replicas=3
- 125 kubectl scale deployment old-nginx --replicas=0
- 126 history
- 127 cat crd-object.yaml
- 128 kubectl create -f crd-object.yaml
- 129 kubectl api-resources | grep backup
- 130 car crd-backup.yaml
- 131 cat crd-backup.yaml
- 132 kubectl create -f crd-backup.yaml
- 133 kubectl get backups
- 134 kubectl get backups -o yaml
- 135 kubectl api-resources | grep -C 5 backup
- 136 history
Add Comment
Please, Sign In to add comment