Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- student@student-virtual-machine:~/ckad$ history
- 1 minikube start --vm-driver=docker
- 2 kubectl get all
- 3 free -m
- 4 df -h
- 5 lscpu
- 6 history
- 7 ls
- 8 minikube ssh
- 9 kubectl get all
- 10 minikube dashboard
- 11 kubectl get all
- 12 kubectl create deploy firstginx --image=nginx --replicas=3
- 13 kubectl create deploy cmdginx --image=nginx --replicas=3
- 14 kubectl get all
- 15 kubectl delete deploy cmdginx
- 16 kubectl get all
- 17 history
- 18 minikube --help | less
- 19 ./countdown 13
- 20 kubectl explain pod
- 21 kubectl explain pod.spec | less
- 22 kubectl explain pod.spec.container | less
- 23 kubectl explain pod.spec.containers | less
- 24 kubectl --help | less
- 25 kubectl completion --help | less
- 26 source <(kubectl completion bash)
- 27 kubectl completion --help | less
- 28 less ~/.kube/config
- 29 kubectl config view
- 30 kubectl get all
- 31 kubectl delete pod firstginx-58f758f4d9-9hnd4
- 32 kubectl get all
- 33 kubectl run --help | less
- 34 kubectl run hazelcast --image=hazelcast/hazelcast --env="DNS_DOMAIN=cluster" --env="POD_NAMESPACE=default"
- 35 kubectl get all
- 36 kubectl run --help
- 37 kubectl run --help | less
- 38 kubectl get all
- 39 kubectl delete pod hazelcast
- 40 kubectl get all
- 41 kubectl get pods
- 42 kubectl get pods firstginx-58f758f4d9-6zm4d -o yaml
- 43 kubectl describe pods firstginx-58f758f4d9-6zm4d
- 44 kubectl describe pods firstginx-58f758f4d9-6zm4d | less
- 45 history
- 46 kubectl get all
- 47 ./countdown 12
- 48 history
- 49 ls
- 50 vim mypod.yaml
- 51 sudo apt install vim
- 52 vim mypod.yaml
- 53 kubectl api-resources | less
- 54 vim mypod.yaml
- 55 kubectl api-resources | less
- 56 vim mypod.yaml
- 57 kubectl explain pod.spec | less
- 58 vim mypod.yaml
- 59 kubectl get pods firstginx-58f758f4d9-6zm4d -o yaml | less
- 60 kubectl run mynginx --image=nginx --dry-run=client -o yaml
- 61 kubectl run mynginx --image=nginx --dry-run=client -o yaml > mynginx.yaml
- 62 vim mynginx.yaml
- 63 kubectl create -f mynginx.yaml
- 64 kubectl get pods
- 65 kubectl delete -f mynginx.yaml
- 66 kubectl apply -f mynginx.yaml
- 67 kubectl get pods mynginx -o yaml
- 68 kubectl get pods mynginx -o yaml | less
- 69 vim mynginx.yaml
- 70 kubectl apply -f mynginx.yaml
- 71 kubectl get pods
- 72 vim sidecar.yaml
- 73 kubectl create -f sidecar.yaml
- 74 kubectl get pods
- 75 kubectl describe pod sidecar-pod | less
- 76 kubectl exec -it sidecar-pod -c sidecar -- /bin/bash
- 77 vim sidecar.yaml
- 78 ls
- 79 history
- 80 vim init-example1.yaml
- 81 kubectl create -f init-example1.yaml ; kubectl get pods
- 82 kubectl get pods
- 83 vim init-example2.yaml
- 84 kubectl create -f init-example2.yaml
- 85 kubectl get pods
- 86 cp init-example2.yaml multicontainer.yaml
- 87 vim multicontainer.yaml
- 88 ./countdown 12
- 89 history
- 90 kubectl exec -it sidecar-pod -c sidecar -- /bin/bash
- 91 kubectl exec -it sidecar-pod -c sidecar /bin/bash
- 92 kubectl get pods
- 93 kubectl get pods -A
- 94 kubectl get ns
- 95 kubectl get pods -A
- 96 kubectl get all -A
- 97 kubectl create ns secret
- 98 kubectl get ns
- 99 vim busybox-ns.yaml
- 100 kubectl create -f busybox-ns.yaml
- 101 kubectl get pods
- 102 vim busybox-ns.yaml
- 103 kubectl explain pod.metadata
- 104 kubectl create -f busybox-ns.yaml
- 105 kubectl get pods
- 106 kubectl get pods -A
- 107 kubectl get pods -n secret
- 108 kubectl run secretginx --image=nginx -n secret
- 109 kubectl run nginxlab --image=nginx
- 110 k
- 111 kubectl run mydb --image=mariadb
- 112 kubectl get pods
- 113 kubectl describe pod mydb | less
- 114 kubectl logs mydb
- 115 kubectl run mydb --image=mariadb --env MARIADB_ROOT_PASSWORD
- 116 kubectl run --help | less
- 117 kubectl run mydb --image=mariadb --env="MARIADB_ROOT_PASSWORD=password"
- 118 kubectl delete pod mydb
- 119 kubectl run mydb --image=mariadb --env="MARIADB_ROOT_PASSWORD=password"
- 120 kubectl get pods
- 121 history
- 122 kubectl get all
- 123 kubectl exec -it firstginx-58f758f4d9-6zm4d -- /bin/bash
- 124 kubectl exec -it busybox3 -- sh
- 125 kubectl describe pod nginxlab | less
- 126 history
- 127 kubectl apply --filename https://storage.googleapis.com/tekton-releases/pipeline/latest/release.yaml
- 128 vim hello-world.yaml
- 129 kubectl apply -f hello-world.yaml
- 130 vim hello-world-run.yaml
- 131 kubectl apply -f hello-world-run.yaml
- 132 kubectl get taskrun
- 133 kubectl get pods
- 134 kubectl explain --recursive pod.spec
- 135 kubectl explain --recursive pod.spec | wc
- 136 kubectl explain --recursive pod.spec | grep -i -A 10 securitycontext | less
- 137 kubectl explain --recursive pod.spec.securityContext
- 138 kubectl explain --recursive pod.spec.securityContext.runAsUser
- 139 vim securitycontextdemo2.yaml
- 140 kubectl apply -f securitycontextdemo2.yaml
- 141 kubectl get pods
- 142 kubectl delete sidecar-pod
- 143 kubectl delete pod sidecar-pod
- 144 kubectl get pods
- 145 kubectl exec -it security-context-demo -- sh
- 146 vim securitycontextdemo2.yaml
- 147 vim securitycontextdemo.yaml
- 148 kubectl create -f securitycontextdemo.yaml
- 149 kubectl get pods
- 150 kubectl get pods nginxsecure -o yaml | less
- 151 kubectl describe pods nginxsecure
- 152 kubectl get pods
- 153 for i in busybox3 mydb mynginx mynginx2 nginxlab nginxsecure; do kubectl delete pod $i; done
- 154 kubectl create -h
- 155 kubectl create -h | less
- 156 kubectl create job -h | less
- 157 kubectl create job onejob --image=busybox -- date
- 158 kubectl get jobs,pod
- 159 kubectl create job falsejob --image=busybox -- false
- 160 kubectl get jobs,pod
- 161 kubectl get jobs onejob -o yaml | grep restartPolicy
- 162 kubectl get jobs,pod
- 163 kubectl delete job falsejob
- 164 kubectl create job falsejob --image=busybox -- false
- 165 kubectl logs falsejob-55qhh
- 166 kubectl get jobs
- 167 kubectl delete job falsejob
- 168 kubectl create job mynewjob --image=busybox --dry-run=client -o yaml -- sleep 5 > mynewjob.yaml
- 169 kubectl create job --help | less
- 170 vim mynewjob.yaml
- 171 kubectl explain job.spec | less
- 172 vim mynewjob.yaml
- 173 kubectl create -f mynewjob.yaml
- 174 kubectl get jobs,pod
- 175 kubectl create cronjob --schedule="*/3 * * * 1-5" --image=busybox -- echo greetings from your cluster
- 176 kubectl create cronjob runme --schedule="*/3 * * * 1-5" --image=busybox -- echo greetings from your cluster
- 177 kubectl get cronjob,job,pod
- 178 date
- 179 kubectl get cronjob,job,pod
- 180 kubectl logs onejob-ddxfb
- 181 kubectl delete cronjobs.batch runme
- 182 vim frontend-resources.yaml
- 183 kubectl create -f frontend-resources.yaml
- 184 vim frontend-resources.yaml
- 185 kubectl create -f frontend-resources.yaml
- 186 kubectl get pods
- 187 kubectl delete pod security-context-demo
- 188 kubectl get pods
- 189 kubectl describe pod frontend
- 190 kubectl get pods
- 191 minikube ssh
- 192 kubectl delete pod frontend
- 193 vim frontend-resources.yaml
- 194 kubectl create -f frontend-resources.yaml
- 195 kubectl get pods
- 196 kubectl describe pod frontend
- 197 kubectl delete pod frontend
- 198 vim frontend-resources.yaml
- 199 kubectl create -f frontend-resources.yaml
- 200 kubectl get all
- 201 kubectl describe pod frontend
- 202 kubectl delete -f frontend-resources.yaml
- 203 vim frontend-resources.yaml
- 204 kubectl explain pod.spec | less
- 205 ./countdown 13
- 206 kubectl create deploy -h | less
- 207 kubectl create deployment myweb --image=nginx --replicas=3
- 208 kubectl get all
- 209 kubectl describe deployments.apps myweb | less
- 210 kubectl get all --selector app=myweb
- 211 kubectl delete pod myweb-8764bf4c8-jn4xf
- 212 kubectl get pods
- 213 vim redis-deploy.yaml
- 214 kubectl create -f redis-deploy.yaml
- 215 kubectl api-versions
- 216 kubectl api-resources | less
- 217 vim redis-deploy.yaml
- 218 kubectl create -f redis-deploy.yaml
- 219 kubectl get all
- 220 kubectl edit deployments.apps redis
- 221 kubectl get all
- 222 kubectl delete rs redis-696dfdfbfc
- 223 kubectl get all
- 224 kubectl create deploy nginx-lab7 --image=nginx --replicsa=3
- 225 kubectl create deploy nginx-lab7 --image=nginx --replicas=3
- 226 kubectl get all --selector app=nginx-lab7
- 227 kubectl delete deploy nginx-lab7
- 228 kubectl delete deployments.apps redis
- 229 history | grep source
- 230 kubectl create deploy nginxup --image=nginx:1.14
- 231 kubectl get deploy -o yaml | less
- 232 kubectl get deploy nginxup -o yaml | less
- 233 kubectl scale deployment nginxup --replicas=5
- 234 kubectl get all --selector app=nginxup
- 235 kubectl set image deploy nginxup nginx=nginx:1.17
- 236 kubectl get all --selector app=nginxup
- 237 kubectl set -h | less
- 238 kubectl create deploy bluelabel --image=nginx
- 239 kubectl get all --show-labels --selector app=bluelabel
- 240 kubectl label deployments.apps bluelabel state=demo
- 241 kubectl get all --show-labels --selector app=bluelabel
- 242 kubectl get all --show-labels --selector state=demo
- 243 kubectl describe deployments.apps bluelabel
- 244 kubectl describe pod bluelabel-5996d849cb-5mjgc
- 245 kubectl get all --show-labels --selector app=bluelabel
- 246 kubectl scale deployment bluelabel --replicas=3
- 247 kubectl label pod bluelabel-5996d849cb-l5dgc app-
- 248 kubectl get pods --show-label | grep blue
- 249 kubectl get pods --show-labels | grep blue
- 250 kubectl delete deploy bluelabel
- 251 kubectl get pods --show-labels | grep blue
- 252 ./countdown 13
- 253 vim sleepy.yaml
- 254 kubectl create job --help
- 255 kubectl create job --help | less
- 256 kubectl create job my-job --image=busybox -- sleep 30 --dry-run=client -o yaml > lab9.yaml
- 257 vim lab9.yaml
- 258 kubectl create job my-job --image=busybox --dry-run=client -o yaml -- sleep 30 > lab9.yaml
- 259 vim lab9.yaml
- 260 kubectl explain job.spec | less
- 261 vim lab9.yaml
- 262 kubectl create -f lab9.yaml
- 263 kubectl delete job my-job
- 264 kubectl create -f lab9.yaml
- 265 kubectl get jobs,pod
- 266 vim lab9.yaml
- 267 history | grep bluela
- 268 kubectl create deploy bluelabel --image=nginx
- 269 kubectl get deploy bluelabel -o yaml
- 270 kubectl scale deployment bluelabel --replicas=4
- 271 kubectl get all --selector app=bluelabel
- 272 kubectl set env deploy bluelabel type=blended
- 273 kubectl get all --selector app=bluelabel
- 274 vim rolling.yaml
- 275 kubectl create -f rolling.yaml
- 276 kubectl rollout history deployment
- 277 kubectl edit deployments.apps rolling-nginx
- 278 kubectl rollout history deployment
- 279 kubectl describe deployments.apps rolling-nginx
- 280 kubectl rollout history deployment rolling-nginx --revision=2
- 281 kubectl rollout history deployment rolling-nginx --revision=1
- 282 kubectl rollout undo deployment rolling-nginx --to-revision=1
- 283 kubectl get all --selector app=rolling-nginx
- 284 kubectl get all
- 285 kubectl get deployments.apps rolling-nginx -o yaml | less
- 286 ./countdown 14
- 287 kubectl create deployment nginxsvc --image=nginx
- 288 kubectl scale deployment nginxsvc --replicas=3
- 289 kubectl expose deployment nginxsvc
- 290 kubectl expose deployment nginxsvc --port=80
- 291 kubectl get svc
- 292 kubectl describe svc nginxsvc
- 293 kubectl edit svc nginxsvc
- 294 kubectl get pods -o wide --selector app=nginxsvc
- 295 kubectl get endpoints
- 296 kubectl get svc
- 297 curl 10.102.80.104
- 298 minikube ssh
- 299 kubectl edit svc nginxsvc
- 300 kubectl get svc
- 301 minikube ip
- 302 curl 192.168.49.2
- 303 curl 192.168.49.2:32131
- 304 kubectl edit svc nginxsvc
- 305 kubectl get svc
- 306 curl 192.168.49.2:32000
- 307 kubectl run testpod --image=busybox -- sleep 3600
- 308 kubectl get svc
- 309 kubectl get svc,pods -n kube-system
- 310 kubectl exec -it testpod -- cat /etc/resolv.conf
- 311 kubectl exec -it testpod -- nslookup nginxsvc
- 312 history
- 313 vim goodbye-world.yaml
- 314 kubectl apply --filename goodbye-world.yaml~
- 315 kubectl apply --filename goodbye-world.yaml
- 316 vim hello-goodbye-pipeline.yaml
- 317 kubectl apply --filename hello-goodbye-pipeline.yaml
- 318 vim hello-goodbye-pipeline-run.yaml
- 319 kubectl apply --filename hello-goodbye-pipeline-run.yaml
- 320 tkn pipelinerun logs hello-goodbye-run -f -n default
- 321 sudo apt update;sudo apt install -y gnupg
- 322 sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3EFE0E0A2F2F60AA
- 323 echo "deb http://ppa.launchpad.net/tektoncd/cli/ubuntu eoan main"|sudo tee /etc/apt/sources.list.d/tektoncd-ubuntu-cli.list
- 324 sudo apt update && sudo apt install -y tektoncd-cli
- 325 tkn pipelinerun logs hello-goodbye-run -f -n default
- 326 kubectl get ns
- 327 minikube --help
- 328 minikube addons list
- 329 minikube addons enable ingress
- 330 kubectl get ns
- 331 kubectl get all -n ingress-nginx
- 332 kubectl get deploy
- 333 kubectl get svc nginxsvc
- 334 curl http://$(minikube ip):32000
- 335 kubectl create ingress --help | less
- 336 kubectl create ingress nginxsvc-ingress --rule="/=nginxsvc:80" --rule="/hello=newdep:8080"
- 337 kubectl describe ingress nginxsvc-ingress
- 338 sudo vim /etc/hosts
- 339 kubectl get ingress
- 340 curl nginxsvc.info
- 341 kubectl create deploy newdep --image=gcr.io/google-samples/hello-app:2.0
- 342 kubectl expose deploy newdep --port=8080
- 343 kubectl describe ingress nginxsvc-ingress
- 344 curl nginxsvc.info/hello
- 345 kubectl get svc
- 346 kubectl explain pod.spec.volumes | less
- 347 cat morevolumes.yaml
- 348 kubectl create -f morevolumes.yaml
- 349 kubectl get pods morevol2
- 350 kubectl describe pods morevol2 | less
- 351 kubectl exec -it morevol2 -c centos1 -- touch /centos/test
- 352 kubectl exec -it morevol2 -c centos1 -- touch /centos1/test
- 353 kubectl exec -it morevol2 -c centos2 -- ls -l /centos2
- 354 cat pv.yaml
- 355 kubectl create -f pv.yaml
- 356 kubectl get pv
- 357 cat pvc.yaml
- 358 kubectl create -f pvc.yaml
- 359 kubectl get pvc,pv
- 360 kubectl get storageclass
- 361 kubectl describe pvc pv-claim
- 362 kubectl describe pv pvc-4a0bbd75-4f01-4b95-909c-0a6a61e0e568
- 363 cat pvc-pod.yaml
- 364 kubectl create -f pvc-pod.yaml
- 365 cat pvc-pod.yaml
- 366 kubectl get pv,pvc
- 367 kubectl describe pv pvc-1cfb388b-460f-4036-b2b0-cbdd93f187ac
- 368 kubectl exec nginx-pvc-pod -- touch /usr/share/nginx/html/testfile
- 369 minikube ssh
- 370 kubectl get pv,storageclass
- 371 history
- 372 sleep 60; ./countdown 12
- 373 kubectl create deploy mydb --image=mariadb
- 374 kubectl get pods
- 375 kubectl describe pod mydb-fb7ff4d78-2lqdp
- 376 kubectl logs mydb-fb7ff4d78-2lqdp
- 377 kubectl set env deploy mydb MYSQL_ROOT_PASSWORD=password; kubectl get all --selector app=mydb
- 378 kubectl get all --selector app=mydb
- 379 kubectl get deploy mydb -o yaml > mydb.yaml
- 380 vim mydb.yaml
- 381 vim varsfile
- 382 kubectl create cm mydbvars --from-env-file=varsfile
- 383 kubectl describe cm mydbvars
- 384 kubectl create deploy mydb2 --image=mariadb --replicas=3
- 385 kubectl get all --selector app=mydb2
- 386 kubectl set env deploy mydb2 --from=configmap/mydbvars
- 387 kubectl get all --selector app=mydb2
- 388 kubectl get deployments.apps mydb -o yaml
- 389 kubectl get deployments.apps mydb2 -o yaml
- 390 history
- 391 echo hello world > index.html
- 392 kubectl create cm myindex --from-file=index.html
- 393 kubect get cm
- 394 kubectl get cm
- 395 kubectl get cm myindex -o yaml
- 396 kubectl create deploy myweb --image=nginx
- 397 kubectl get deploy
- 398 for i in rolling-nginx nginxup newdep myweb mydb mydb2; do kubectl delete deploy $i; done
- 399 kubectl create deploy myweb --image=nginx
- 400 kubectl edit deployments.apps myweb
- 401 kubectl get deploy --selector app=,yweb
- 402 kubectl get deploy --selector app=myweb
- 403 kubectl get all --selector app=myweb
- 404 kubectl exec -it myweb-6f46676d95-l2lv6 -- cat /usr/share/nginx/html/index.html
- 405 kubectl exec -it myweb-6f46676d95-l2lv6 -- ls -l /usr/share/nginx/html/
- 406 history
- 407 kubectl edit deployments.apps myweb
- 408 kubectl exec -it myweb-6f46676d95-l2lv6 -- ls -l /usr/share/nginx/html/
- 409 kubectl exec -it myweb-ff8bf9988-4rr8v -- cat /usr/share/nginx/html/index.html
- 410 kubectl create secret generic dbpwd --from-literal=ROOT_PASSWORD=password
- 411 kubectl describe secrets dbpwd
- 412 kubectl get secrets dbpwd -o yaml
- 413 echo cGFzc3dvcmQ= | base64 -d
- 414 kubectl create deployment mynewdb --image=mariadb
- 415 kubectl set env deploy mynewdb --from=secret/dbpw --prefix=MARIADB_
- 416 kubectl set env deploy mynewdb --from=secret/dbpwd --prefix=MARIADB_
- 417 kubectl get pods
- 418 history
- 419 ./countdown 13
- 420 kubectl api-resources | less
- 421 cat ~/.kube/config
- 422 kubectl proxy --port=8001 &
- 423 kubectl create deploy curlginx --image=nginx --replicas=3
- 424 curl http://localhost:8001/version
- 425 curl http://localhost:8001/api/
- 426 curl http://localhost:8001/api/v1/
- 427 curl http://localhost:8001/api/v1/namespaces/default/pods
- 428 kubectl get pods
- 429 curl http://localhost:8001/api/v1/namespaces/default/pods/curlginx-c6f4b6874-h5tdv
- 430 curl -XDELETE http://localhost:8001/api/v1/namespaces/default/pods/curlginx-c6f4b6874-h5tdv
- 431 kubectl get pods
- 432 kubectl auth can-i get pods
- 433 kubectl auth can-i get pods --as bob@example.com
- 434 vim mypod.yaml
- 435 kubectl apply -f mypod.yaml
- 436 kubectl get pods mypod -o yaml | less
- 437 kubectl exec -it mypod -- sh
- 438 cat mysa.yaml
- 439 kubectl apply -f mysa
- 440 kubectl apply -f mysa.yaml
- 441 vim list-pods.yaml
- 442 kubectl apply -f list-pods.yaml
- 443 cat list-pods-mysa-binding.yaml
- 444 kubectl apply -f mysapod.yaml
- 445 kubectl exec -it mypod -- sh
- 446 cat mysapod.yaml
- 447 kubectl create -f mysapod.yaml
- 448 kubectl delete pod mysapod
- 449 kubectl create -f mysapod.yaml
- 450 kubectl get pod mysapod -o yaml
- 451 kubectl exec -it mysapod -- sh
- 452 kubectl config view
- 453 kubectl get sa
- 454 kubectl get rolebindings.rbac.authorization.k8s.io
- 455 kubectl apply -f list-pods-mysa-binding.yaml
- 456 kubectl get rolebindings.rbac.authorization.k8s.io
- 457 kubectl exec -it mysapod -- sh
- 458 kubectl get rolebindings.rbac.authorization.k8s.io
- 459 cd ../Downloads/
- 460 ls
- 461 tar xvf helm-v3.9.0-linux-amd64.tar.gz
- 462 sudo mv linux-amd64/helm /usr/local/bin/
- 463 helm version
- 464 helm repo add bitnami https://charts.bitnami.com/bitnami
- 465 helm repo list
- 466 helm search repo bitnami
- 467 helm repo update
- 468 helm install bitnami/mysql --generate-name
- 469 kubectl get all
- 470 helm show chart bitnami/mysql
- 471 helm show all bitnami/mysql
- 472 helm list
- 473 helm status mysql-1654183483
- 474 kubectl create deploy blue-nginx --image=nginx:1.14 --replicas=3
- 475 kubectl expose deploy blue-nginx --port=80 --name=bgnginx
- 476 kubectl get svc
- 477 kubectl get deploy blue-nginx -o yaml > green-nginx.yaml
- 478 vim green-nginx.yaml
- 479 kubectl create -f green-nginx.yaml
- 480 kubectl get deploy
- 481 for i in nginxsvc myweb mynewdb firstginx curlginx bluelabel; do kubectl delete deploy $i; done
- 482 kubectl get all
- 483 kubectl describe svc bgnginx
- 484 kubectl delete svc bgnginx; kubectl expose deploy green-nginx --port=80 --name=bgnginx
- 485 kubectl describe svc bgnginx
- 486 kubectl delete deploy blue-nginx
- 487 kubectl create deploy old-nginx --image=nginx:1.14 --replicas=3 --dry-run=client -o yaml > ~/oldnginx.yaml
- 488 vim ~/oldnginx.yaml
- 489 kubectl create -f ~/oldnginx.yaml
- 490 kubectl expose deploy old-nginx --name=oldnginx --port=80 --selector type=canary
- 491 kubectl describe svc oldnginx
- 492 minikube ssh
- 493 kubectl cp old-nginx-66bd7bb796-zffnm:/usr/share/nginx/html/index.html blah.html
- 494 vim index.html
- 495 kubectl create cm canaray --from-file=index.html
- 496 kubectl create cm canary --from-file=index.html
- 497 kubectl describe cm canary
- 498 cd ../ckad/
- 499 vim canary.yaml
- 500 kubectl create -f canary.yaml
- 501 kubectl describe svc oldnginx
- 502 minikube ssh
- 503 kubectl get deploy
- 504 kubectl scale deployment new-nginx --replicas 3
- 505 kubectl get deploy
- 506 kubectl scale deployment old-nginx --replicas 0
- 507 kubectl get deploy
- 508 vim busybox-ready.yaml
- 509 kubectl create -f busybox-ready.yaml
- 510 kubectl get pods
- 511 kubectl describe pod busybox-ready
- 512 kubectl edit pods busybox-ready
- 513 kubectl exec -it busybox-ready -- touch /tmp/nothing
- 514 kubectl get pods
- 515 history
Add Comment
Please, Sign In to add comment