Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- student@control:~/gitops$ history
- 1 git clone https://github.com/sandervanvugt/cka
- 2 cd cka
- 3 ls
- 4 ls *sh
- 5 sudo setup-container.sh
- 6 sudo ./setup-container.sh
- 7 ls *sh
- 8 sudo ./setup-kubetools.sh
- 9 history
- 10 sudo kubeadm init
- 11 history
- 12 mkdir -p $HOME/.kube
- 13 sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
- 14 sudo chown $(id -u):$(id -g) $HOME/.kube/config
- 15 kubectl get all
- 16 kubectl create -f https://raw.githubusercontent.com/projectcalico/calico/v3.26.0/manifests/tigera-operator.yaml
- 17 kubectl create -f https://raw.githubusercontent.com/projectcalico/calico/v3.26.0/manifests/custom-resources.yaml
- 18 kubectl get pods -n calico-system
- 19 history
- 20 kubectl apply -f https://raw.githubusercontent.com/projectcalico/calico/v3.25.0/manifests/calico.yaml
- 21 kubectl get pods -n calico-system
- 22 kubectl get ns
- 23 kubectl get pods -n kube-system
- 24 history
- 25 kubectl apply -f https://raw.githubusercontent.com/projectcalico/calico/v3.26.0/manifests/calico.yaml
- 26 history
- 27 cd
- 28 git clone https://github.com/sandervanvugt/kube3weeks
- 29 cd kube3weeks/
- 30 ls -l *sh
- 31 chmod +x setup-calico.sh
- 32 history
- 33 kubectl get pods -n calico-system
- 34 kubectl get pods -n kube-system
- 35 kubectl get nodes
- 36 kubectl run testapp --image=nginx
- 37 history
- 38 git pull
- 39 less setup-kubecluster-history.txt
- 40 git pull
- 41 less setup-kubecluster-history.txt
- 42 cd
- 43 source <(kubectl completion bash)
- 44 kubectl completion -h | less
- 45 kubectl create deployment myfirstapp --image=nginx --replicas=3
- 46 kubectl get all
- 47 kubectl delete pods myfirstapp-564cb9865d-czm74
- 48 kubectl get all
- 49 kubectl run lonelypod --image=nginx
- 50 kubectl get all
- 51 kubectl get pods
- 52 kubectl delete pod lonelypod
- 53 kubectl get all
- 54 history
- 55 kubectl api-resources | less
- 56 kubectl explain pods
- 57 kubectl explain pod.spec | less
- 58 cd kube3weeks/
- 59 ls
- 60 kubectl get pods
- 61 kubectl get pods testapp -o yaml | less
- 62 history
- 63 kubectl explain nodes.spec | less
- 64 history | grep yaml
- 65 wget https://raw.githubusercontent.com/projectcalico/calico/v3.26.0/manifests/calico.yaml
- 66 vim calico.yaml
- 67 kubectl run mynginx --image=nginx --dry-run=client -o yaml
- 68 kubectl run mynginx --image=nginx --dry-run=client -o yaml > mynginx.yaml
- 69 vim mynginx.yaml
- 70 kubectl explain pod.spec
- 71 vim mynginx.yaml
- 72 kubectl apply -f mynginx.yaml
- 73 vim mynginx.yaml
- 74 kubectl apply -f mynginx.yaml
- 75 kubectl get pods
- 76 vim mynginx.yaml
- 77 kubectl apply -f mynginx.yaml
- 78 kubectl delete -f mynginx.yaml
- 79 kubectl apply -f mynginx.yaml
- 80 history
- 81 kubectl delete -f mynginx.yaml
- 82 vim multicontainer.yaml
- 83 kubectl create -f multicontainer.yaml
- 84 kubectl get pods
- 85 kubectl explain pod.spec | less
- 86 history
- 87 vim mynginx.yaml
- 88 kubectl create deploy yamltest --image=nginx --replicas=3 --dry-run=client -o yaml
- 89 vim initstuff.yaml
- 90 kubectl apply -f initstuff.yaml
- 91 kubectl get pods
- 92 vim initstuff.yaml
- 93 kubectl apply -f initstuff.yaml
- 94 vim initstuff.yaml
- 95 kubectl apply -f initstuff.yaml
- 96 kubectl get pods
- 97 kubectl get ns
- 98 kubectl get pods
- 99 kubectl get pods -n kube-system
- 100 kubectl get pods -n tigera-operator
- 101 kubectl get pods -A
- 102 kubectl get all -A
- 103 kubectl get pods -n kube-system
- 104 kubectl create ns secret
- 105 kubectl run secretapp --image=nginx -n secret
- 106 kubectl get pods
- 107 kubectl get pods -n secret
- 108 kubectl config set-context --current --namespace=secret
- 109 kubectl get pods
- 110 kubectl config view
- 111 kubectl config set-context --current --namespace=default
- 112 kubectl run mydb --image=mariadb
- 113 kubectl get pods
- 114 kubectl describe pod mydb | less
- 115 kubectl logs mydb
- 116 kubectl delete pod mydb
- 117 kubectl run mydb --image=mariadb -e MARIADB_ROOT_PASSWORD=password
- 118 kubectl run mydb --image=mariadb --env MARIADB_ROOT_PASSWORD=password
- 119 kubectl run -h | less
- 120 kubectl options
- 121 kubectl options | wc
- 122 kubectl get pods
- 123 kubectl run mydb --image=mariadb --env MARIADB_ROOT_PASSWORD=password --dry-run=client -o yaml > mydb.yaml
- 124 vim mydb.yaml
- 125 history
- 126 sudo poweroff
- 127 history
- 128 source <(kubectl completion bash)
- 129 kubectl create deployment mynginx --image=nginx --replicas=3
- 130 kubectl get all
- 131 kubectl delete pod mynginx-55cd454cfc-bkxd2
- 132 kubectl get all
- 133 kubectl scale deployment mynginx --replicas=2
- 134 kubectl get deploy mynginx -o yaml | less
- 135 kubectl get rs mynginx-55cd454cfc -o yaml
- 136 kubectl get rs mynginx-55cd454cfc -o yaml | less
- 137 kubectl delete rs mynginx-55cd454cfc
- 138 kubectl get rs
- 139 kubectl get pods
- 140 kubectl create deployment oldnginx --image=nginx:1.14 --replicas=3
- 141 kubectl get all --selector app=oldnginx
- 142 kubectl get all
- 143 kubectl set image -h | less
- 144 kubectl set image deploy oldnginx nginx=nginx:latest
- 145 kubectl get deploy oldnginx -o yaml | less
- 146 kubectl get all --selector app=oldnginx
- 147 kubectl rollout -h | less
- 148 kubectl rollout deploy oldnginx
- 149 kubectl rollout deploy
- 150 kubectl rollout status deployment oldnginx
- 151 kubectl rollout history deployment oldnginx
- 152 kubectl rollout undo deployment oldnginx ; kubectl get all --selector app=oldnginx
- 153 kubectl edit deployments.apps oldnginx
- 154 kubectl create deployment lnginx --image=nginx --replicas=3
- 155 kubectl get all --show-labels
- 156 kubectl get pods -n kube-system -L
- 157 kubectl get pods -n kube-system --show-label
- 158 kubectl get pods -n kube-system --show-labels
- 159 kubectl get all --selector app=lnginx
- 160 kubectl label pod lnginx-689f487b9f-rrgln app-
- 161 kubectl get all | grep lnginx
- 162 kubectl get all --show-labels | grep lnginx
- 163 kubectl create daemondemo --image=nginx --dry-run=client -o yaml > daemondemo.yaml
- 164 kubectl create deploy daemondemo --image=nginx --dry-run=client -o yaml > daemondemo.yaml
- 165 vim daemondemo.yaml
- 166 kubectl create -f daemondemo.yaml
- 167 kubectl get all
- 168 kubectl edit node control
- 169 kubectl get all
- 170 kubectl get ds -A
- 171 kubectl -n kube-system get ds kube-proxy -o yaml | less
- 172 kubectl -n kube-system get ds calico-node -o yaml | less
- 173 ls
- 174 cd kube3weeks/
- 175 ./countdown 13
- 176 kubectl get deploy
- 177 kubectl delete deploy lnginx myfirstapp mynginx oldnginx
- 178 kubectl create deploy nginxsvc --image=nginx
- 179 kubectl scale deployment nginxsvc --replicas=3
- 180 kubectl expose deployment nginxsvc --port=80
- 181 kubectl get all
- 182 kubectl get all --selector app=nginxsvc
- 183 kubectl get all --selector app=nginxsvc -o wide
- 184 kubectl describe svc nginxsvc
- 185 kubectl get svc nginxsvc -o yaml | less
- 186 kubectl get endpoints
- 187 curl 10.110.67.234
- 188 kubectl edit svc nginxsvc
- 189 kubectl get svc
- 190 ip a
- 191 kubectl get svc
- 192 ./countdown 1
- 193 kubectl config view
- 194 ps aux | grep api-server
- 195 ps aux | grep api-
- 196 ps aux | grep api
- 197 kubectl get svc
- 198 kubectl edit svc nginxsvc
- 199 kubectl scale deployment nginxsvc --replicas=20
- 200 kubectl get pods -o wide
- 201 kubectl describe svc nginxsvc
- 202 kubectl scale deployment nginxsvc --replicas=3
- 203 vim morevolumes.yaml
- 204 kubectl apply -f morevolumes.yaml
- 205 kubectl get pods
- 206 kubectl describe pods morevol2
- 207 kubectl get pods
- 208 kubectl exec morevol2 -c centos1 -- touch /centos1/testfile
- 209 kubectl exec morevol2 -c centos2 -- ls -l /centos2
- 210 ./countdown 13
- 211 vim pv.yaml
- 212 kubectl explain pv.spec | less
- 213 kubectl apply -f pv.yaml
- 214 kubectl get all
- 215 kubectl get pv
- 216 vim pvc.yaml
- 217 kubectl apply -f pvc.yaml
- 218 kubectl get pvc,pv
- 219 vim pvc.yaml
- 220 vim pv-pod.yaml
- 221 kubectl apply -f pv-pod.yaml
- 222 kubectl exec pv-pod -- touch /usr/share/nginx/html/hellofriday
- 223 kubectl describe pod pv-pod
- 224 kubectl describe pvc pv-claim
- 225 kubectl describe pv pv-volume
- 226 kubectl get pods -o wide
- 227 ssh 192.168.29.31
- 228 ssh 192.168.29.41
- 229 ssh 192.168.29.21
- 230 ssh 192.168.29.22
- 231 vim pv-pvc-pod.yaml
- 232 kubectl apply -f pv-pvc-pod.yaml
- 233 kubectl get pv,pvc
- 234 kubectl delete -f pv-pvc-pod.yaml
- 235 vim pv.yaml
- 236 kubectl apply -f pv.yaml
- 237 kubectl get pv
- 238 vim pv-pvc-pod.yaml
- 239 kubectl apply -f pv-pvc-pod.yaml
- 240 kubectl get pv,pvc
- 241 ./countdown 1
- 242 kubectl create ns myvol
- 243 kubectl get pods
- 244 kubectl get pods testapp -o yaml | less
- 245 kubectl get -n kube-system pod calico-kube-controllers-786b679988-plhh4 -o yaml | less
- 246 sudo apt install nfs-server -y
- 247 sudo mkdir /nfsexport
- 248 sudo vim /nfsexport
- 249 sudo vim /etc/export
- 250 sudo vim /etc/exports
- 251 cat /etc/exports
- 252 sudo systemctl restart nfs-server
- 253 showmount -e localhost
- 254 cd
- 255 ls
- 256 tar xvf helm-v3.12.0-linux-amd64.tar.gz
- 257 sudo cp linux-amd64/helm /usr/local/bin
- 258 helm version
- 259 helm repo add nfs-subdir-external-provisioner https://kubernetes-sigs.github.io/nfs-subdir-external-provisioner/
- 260 helm install nfs-subdir-external-provisioner nfs-subdir-external-provisioner/nfs-subdir-external-provisioner --set nfs.server=192.168.29.30 --set nfs.path=/nfsexport
- 261 kubectl get pods -n kube-system
- 262 kubectl get ns
- 263 kubectl get pods
- 264 kubectl get storageclass
- 265 kubectl get pv
- 266 cd kube3weeks/
- 267 vim nfs-provisioner-pvc-test.yaml
- 268 kubectl apply -f nfs-provisioner-pvc-test.yaml
- 269 kubectl get pv
- 270 ls /nfsexport/
- 271 history
- 272 vim varsfile
- 273 kubectl create cm dbvars --from-env-file=varsfile
- 274 kubectl describe cm dbvars
- 275 kubectl create deploy mydb --image=mariadb --replicas=3
- 276 kubectl get all --selector app=mydb
- 277 kubectl logs mydb-6875696859-x2drl
- 278 kubectl set env deploy mydb --from=configmap/mydbvars
- 279 kubectl set env deploy mydb --from=configmap/dbvars
- 280 kubectl get deploy mydb -o yaml | less
- 281 kubectl get all --selector app=mydb
- 282 echo hello friday > index.html
- 283 kubectl create cm myindex --from-file=index.html
- 284 rm index.html
- 285 kubectl describe cm myindex
- 286 kubectl create deploy myweb --image=nginx
- 287 kubectl edit deployments.apps myweb
- 288 kubectl exec myweb-7777f58f5-t9kk6 -- cat /usr/share/nginx/index.html
- 289 kubectl edit deployments.apps myweb
- 290 kubectl exec myweb-7777f58f5-t9kk6 -- cat /usr/share/nginx/html/index.html
- 291 kubectl create secret docker-registry my-docker-credentials --docker-username=unclebob --docker-password=mypw --docker-email=uncel@bob.com --docker-server=myregistry:5000
- 292 kubectl get secret my-docker-credentials -o yaml
- 293 echo eyJhdXRocyI6eyJteXJlZ2lzdHJ5OjUwMDAiOnsidXNlcm5hbWUiOiJ1bmNsZWJvYiIsInBhc3N3b3JkIjoibXlwdyIsImVtYWlsIjoidW5jZWxAYm9iLmNvbSIsImF1dGgiOiJkVzVqYkdWaWIySTZiWGx3ZHc9PSJ9fX0= | base64 -d
- 294 kubectl explain --recursive pod.spec | less
- 295 history
- 296 sudo poweroff
- 297 cd kube3weeks/
- 298 ./countdown 1
- 299 ./countdown 15
- 300 kubectl get all
- 301 kubectl delete deply mydb myweb nginxsvc
- 302 kubectl delete deploy mydb myweb nginxsvc
- 303 source <(kubectl completion bash)
- 304 kubectl get all
- 305 kubectl delete pod init-demo init-demo2 lnginx-689f487b9f-rrgln local-pv-pod multicontainer mydb pv-pod testapp
- 306 helm version
- 307 helm repo add bitnami https://charts.bitnami.com/bitnami
- 308 helm repo list
- 309 helm search repo bitnami
- 310 helm repo update
- 311 helm list
- 312 helm --help
- 313 helm install bitnami/mysql --generate-name
- 314 kubectl get all
- 315 helm show chart bitnami/mysql
- 316 helm show all bitnami/mysql
- 317 helm list
- 318 helm status mysql-1686917437
- 319 kubectl get all
- 320 kubectl describe pod mysql-1686917437-0
- 321 systemctl status nfs-server
- 322 kubectl get storageclass
- 323 kubectl get pv,pvs
- 324 kubectl get pv,pvc
- 325 cd kube3weeks/
- 326 vim nfs-provisioner-pvc-test.yaml
- 327 helm show values
- 328 helm list
- 329 helm show values mysql
- 330 helm show values bitnami-mysql/bitnami-mysql
- 331 helm show values bitnami/bitnami-mysql
- 332 helm repo add bitnami https://charts.bitnami.com/bitnami
- 333 helm show values bitnami/nginx
- 334 helm show values bitnami/nginx | grep commonLabels
- 335 helm show values bitnami/nginx | grep replicaCount
- 336 vim values.yaml
- 337 helm install bitnami/nginx --generate-name --values values.yaml
- 338 kubectl get pods --show-labels
- 339 kubectl get all --show-labels
- 340 helm repo add kubernetes-dashboard https://kubernetes.github.io/dashboard/
- 341 mkdir dashboard
- 342 vim dashboard/values.yaml
- 343 helm repo list
- 344 helm install -f dashboard/values.yaml dashboard dashboard
- 345 helm install dashboard dashboard
- 346 helm install kubernetes-dashboard kubernetes-dashboard/kubernetes-dashboard -f dashboard/values.yaml
- 347 helm install kubernetes-dashboard kubernetes-dashboard/kubernetes-dashboard
- 348 kubectl get deploy
- 349 kubectl edit deploy kubernetes-dashboard
- 350 kubectl get all
- 351 kubectl port-forward kubernetes-dashboard-67b5dff5f4-lftqv 8443:8443
- 352 bg
- 353 ip a
- 354 helm upgrade --install ingress-nginx ingress-nginx --repo helm://kubernetes.github.io/ingress-nginx --namespace ingress-nginx --create-namespace
- 355 helm upgrade --install ingress-nginx ingress-nginx --repo https://kubernetes.github.io/ingress-nginx --namespace ingress-nginx --create-namespace
- 356 kubectl get pods -n ingress-nginx
- 357 kubectl get all -n ingress-nginx
- 358 kubectl create deploy nginxsvc --image=nginx --port=80
- 359 kubectl expose deploy nginxsvc
- 360 kubectl delete svc nginxsvc
- 361 kubectl expose deploy nginxsvc
- 362 kubectl describe svc nginxsvc
- 363 kubectl create ingress --help | less
- 364 kubectl create ingress nginxsvc --class=nginx --rule=nginxsvc.info/*=nginxsvc:80
- 365 kubectl describe ingress nginxsvc
- 366 kubectl get ing nginxsvc -o yaml | less
- 367 kubectl port-forward -n ingress-nginx svc/ingress-nginx-controller 8080:80
- 368 bg
- 369 sudo vim /etc/hosts
- 370 curl nginxsvc.info:8080
- 371 ./countdown 13
- 372 vim statefulset.yaml
- 373 kubectl get storageclass
- 374 kubectl apply -f statefulset.yaml
- 375 kubectl get all
- 376 kubectl get pvc
- 377 kubectl get pods
- 378 kubectl get svc
- 379 vim statefulset.yaml
- 380 kubectl explain deploy.spec
- 381 kubectl explain statefulset.spec
- 382 kubectl get all
- 383 kubectl describe pod mysql-1686917437-0
- 384 kubectl edit statefulsets.apps mysql-1686917437
- 385 kubectl get statefulsets.apps web -o yaml | less
- 386 kubectl edit statefulsets.apps mysql-1686917437
- 387 kubectl get statefulsets.apps mysql-1686917437 -o yaml > mysql-ss.yaml
- 388 kubectl delete statefulsets.apps mysql-1686917437
- 389 vim mysql-ss.yaml
- 390 kubectl get all
- 391 kubectl apply -f mysql-ss.yaml
- 392 kubectl get all
- 393 kubectl describe pod mysql-1686917437-0
- 394 kubectl edit statefulsets.apps mysql-1686917437
- 395 kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/components.yaml
- 396 kubectl get all -n kube-system
- 397 kubectl describe pod -n kube-system metrics-server-7b4c4d4bfd-24k49
- 398 kubectl -n kube-system logs metrics-server-7b4c4d4bfd-24k49
- 399 kubectl edit deployments.apps -n kube-system metrics-server
- 400 kubectl get all -n kube-system
- 401 kubectl get all -n kube-system -w
- 402 kubectl get pods -n kube-system
- 403 kubectl get pods -w -n kube-system
- 404 kubectl top pods
- 405 cd ..
- 406 git clone https://github.com/sandervanvugt/ckad
- 407 kubectl get svc -n kube-system
- 408 kubectl get svc -n ingress-nginx
- 409 kubectl edit svc -n ingress-nginx ingress-nginx-controller
- 410 ls
- 411 cd ckad
- 412 ls
- 413 cd autoscaling/
- 414 ls
- 415 vi Dockerfile
- 416 docker ps
- 417 crictl ps
- 418 sudo crictl ps
- 419 sudo crictl --help | less
- 420 sudo apt install docker.io
- 421 sudo systemctl status docker
- 422 sudo systemctl disable --now docker
- 423 sudo docker build -t php-apache .
- 424 vim hpa.yaml
- 425 kubectl apply -f hpa.yaml
- 426 kubectl get deploy
- 427 kubectl get deploy,pods
- 428 kubectl autoscale -h | less
- 429 kubectl autoscale deployment php-apache --cpu-percent=1 --min=3 --max=10
- 430 kubectl get hpa
- 431 kubectl get deploy,pods
- 432 kubectl get hpa
- 433 kubectl get deploy,pods
- 434 kubectl get hpa
- 435 ../countdown 13
- 436 kubectl get hpa
- 437 exit
- 438 kubectl run -it load-generator --rm --image=busybox --restart=Never -- /bin/sh -c "while sleep 0.01; do wget -q -O - http://php-apache; done"
- 439 kubectl create ns test
- 440 kubectl get ns
- 441 kubectl run -n test -it load-generator --rm --image=busybox --restart=Never -- /bin/sh -c "while sleep 0.01; do wget -q -O - http://php-apache; done"
- 442 kubectl run -n test -it load-generator --rm --image=busybox --restart=Never -- cat /etc/resolv.conf
- 443 kubectl get svc
- 444 kubectl get svc -n kube-system
- 445 kubectl run -n test -it load-generator --rm --image=busybox --restart=Never -- nslookup php-apache.default.svc.cluster.local
- 446 kubectl get svc -A
- 447 curl 10.98.103.32
- 448 cd kube3weeks/
- 449 vim crd-object.yaml
- 450 kubectl api-resources | grep ustom
- 451 vim crd-object.yaml
- 452 kubectl apply -f crd-object.yaml
- 453 kubectl api-resources | grep backup
- 454 cat crd-backup.yaml
- 455 kubectl create -f crd-backup.yaml
- 456 kubectl get backups
- 457 kubectl api-resources
- 458 kubectl api-resources | less
- 459 curl -sL https://github.com/operator-framework/operator-lifecycle-manager/releases/download/v0.25.0/install.sh | bash -s v0.25.0
- 460 kubectl get -n operator.yaml
- 461 exit
- 462 source <(kubectl completion bash)
- 463 kubectl get all -n operators
- 464 kubectl get pods -A
- 465 kubectl create -f https://operatorhub.io/install/kubeflow.yaml
- 466 kubectl api-resources | grep csv
- 467 kubectl get csv -n operators
- 468 kubectl describe csv -n operators kubeflow.v1.2.0
- 469 git clone https://github.com/sandervanvugt/gitops
- 470 cd gitops/
- 471 cd kustomize-bluegreen/blue/
- 472 ls
- 473 vim kustomization.yaml
- 474 ls
- 475 vim bluecm.yaml
- 476 cat index.html
- 477 vim deployment.yaml
- 478 vim blue-svc.yaml
- 479 vim myapp-ing.yaml
- 480 kubectl apply -k .
- 481 sudo vim /etc/hosts
- 482 curl http://myapp.local
- 483 kubectl describe ingress myapp
- 484 kubectl get svc
- 485 curl 10.106.10.49
- 486 history | grep port-f
- 487 kubectl port-forward -n ingress-nginx svc/ingress-nginx-controller 8080:80
- 488 curl http://myapp.local:8080
- 489 ../../countdown 14
- 490 curl http://myapp.local:8080
- 491 kubectl get ing myapp
- 492 kubectl get ing myapp -o yaml
- 493 cd ../green/
- 494 ls
- 495 cat greencm.yaml
- 496 vim myapp-ing.yaml
- 497 vim kustomization.yaml
- 498 kubectl apply -k .
- 499 curl http://myapp.local:8080
- 500 kubectl apply -f myapp-ing.yaml
- 501 curl http://myapp.local:8080
- 502 kubectl get deploy
- 503 kubectl scale deployment blue-deploy --replicas=0
- 504 kubectl get deploy
- 505 cd ../..
- 506 echo new-version > index.html
- 507 kubectl create cm new-version --from-file=index.html
- 508 echo old-version > index.html
- 509 kubectl create cm old-version --from-file=index.html
- 510 vim canary.yaml
- 511 kubectl apply -f canary.yaml
- 512 kubectl expose deploy old-version --port=80 --type=NodePort
- 513 sed -i -e 's/old/new/' canary.yaml
- 514 vim canary.yaml
- 515 kubectl apply -f canary.yaml
- 516 kubectl expose deploy new-version --port=80 --type=NodePort
- 517 kubectl get deploy,pods,svc
- 518 sudo vim /etc/hosts
- 519 kubectl create ing old-version --rule="theapp.info/=old.version:80"
- 520 kubectl create ing old-version --rule="theapp.info/=old-version:80"
- 521 curl theapp.info
- 522 curl theapp.info:8080
- 523 kubectl get ing
- 524 kubectl get ing myapp -o yaml
- 525 kubectl edit ing old-version
- 526 curl theapp.info:8080
- 527 vim new-ing.yaml
- 528 kubectl apply -f new-ing.yaml
- 529 kubectl get ing
- 530 curl theapp.info:8080
- 531 history
- 532 kubectl get svc -A
- 533 kubectl edit svc kubernetes-dashboard
- 534 kubectl get svc -A
- 535 kubectl get nodes
- 536 kubectl get nodes -o wide
- 537 kubectl edit deploy kubernetes-dashboard-67b5dff5f4-lftqv
- 538 kubectl edit deploy kubernetes-dashboard
- 539 kubectl get clusterroles | less
- 540 kubectl create clusterrolebinding --help
- 541 kubectl create clusterrolebinding cluster-admin --clusterrole=cluster-admin --serviceaccount=kubernetes-dahsboard
- 542 kubectl create clusterrolebinding cluster-admin --clusterrole=cluster-admin --serviceaccount=default:kubernetes-dahsboard
- 543 kubectl create clusterrolebinding clusterdash --clusterrole=cluster-admin --serviceaccount=default:kubernetes-dahsboard
- 544 kubectl create clusterrolebinding clusterdashg --clusterrole=cluster-admin --serviceaccount=default:kubernetes-dashboard
- 545 history
Add Comment
Please, Sign In to add comment