1 sudo -i 2 mkdir /.kube 3 mkdir -p $HOME/.kube 4 sudo cp -i /etc/kubernetes/admin.conf /home/ubuntu/.kube/config 5 less .kube/config 6 sudo shown $(id -u):$(id -g) /home/ubuntu/.kube/config 7 sudo chown $(id -u):$(id -g) /home/ubuntu/.kube/config 8 less .kube/config 9 sudo cp /root/rbac-kdd.yaml . 10 kubectl apply -f rbac-kdd.yaml 11 sudp cp /root/calico.yaml 12 sudp cp /root/calico.yaml . 13 sudo cp /root/calico.yaml . 14 kubectl apply -f calico.yaml 15 source <(kubectl completion bash) 16 echo "source <(kubectl completion bash" >> ~/.bashrc 17 kubectl describe nodes lfs458-node-01 18 kubectl -n kube-system get pod 19 kubectl describe nodes lfs458-node-01 20 kubectl get node 21 wathc kubectl get node 22 watch kubectl get node 23 history 24 sudo -i 25 watch kubectl get node 26 ip a 27 ip addr show ens4 | grep inet 28 ip addr show ens3 | grep inet 29 watch kubectl get node 30 sudo kubeadm token list 31 sudo kubeadm token create 32 openssl x509 -pubkey -in /etc/kubernetes/pki/ca.crt | openssl rsa -pubin -outform der 2>/dev/null | openssl dgst -sha256 -hex | sed 's/^.* //' 33 ~wa 34 watch kubectl get node 35 kubectl describe nodes | grepp -i taint 36 kubectl describe nodes | grep -i taint 37 kubectl taint node --all node-role.kubernetes.io/master- 38 kubectl describe nodes | grep -i taint 39 kubectl get pods --all-namespaces 40 ip a 41 kubectl create deployment nginx --image=nginx 42 kubectl get deployments. 43 kubectl de 44 kubectl get deployments nginx -o yaml 45 kubectl get events 46 kubectl get deployments nginx -o yaml > first.yaml 47 vim first.yaml 48 nano first.yaml 49 kubectl delete deployments nginx 50 kubectl get deployments. 51 kubectl create -f first.yaml 52 kubectl get deployments nginx -o yaml > second.yaml 53 diff first.yaml second.yaml 54 kubectl create deployment two --image=nginx --dry-run -o yaml 55 kubectl get deployments. 56 kubectl get deployments nignx --export -o yaml 57 kubectl get deployments nginx --export -o yaml 58 kubectl get deployments nginx --export -o json 59 kubectl expose -h 60 kubectl expose deployment/nginx 61 nano first.yaml 62 kubectl expose deployment/nginx 63 kubectl replace -f first.yaml 64 nano first.yaml 65 kubectl replace -f first.yaml 66 nano first.yaml 67 kubectl replace -f first.yaml 68 nano first.yaml 69 kubectl replace -f first.yaml 70 nano first.yaml 71 kubectl replace -f first.yaml 72 nano first.yaml 73 kubectl replace -f first.yaml 74 nano first.yaml 75 nano second.yaml 76 nano first.yaml 77 kubectl replace -f first.yaml 78 nano first.yaml 79 kubectl replace -f first.yaml 80 nano first.yaml 81 kubectl replace -f first.yaml 82 nano first.yaml 83 kubectl replace -f first.yaml 84 kubectl delete deployments nginx 85 kubectl create -f first.yaml 86 kubectl replace -f first.yaml 87 kubectl get deployments nginx -o yaml > first.yaml 88 nano first.yaml 89 kubectl delete deployments nginx 90 kubectl create -f first.yaml 91 kubectl replace -f first.yaml 92 nano first.yaml 93 kubectl get deploy,pod 94 kubectl expose deployment/nginx 95 kubectl get svc nginx 96 kubectl get ep nginx 97 i[ a 98 ip a 99 sudo tcpdump -i tun10 100 kubectl describe pod nginx-7db75b8b78-2ml97 | grep node 101 kubectl describe pod nginx-7db75b8b78-2ml97 | grep node: 102 kubectl describe pod nginx-7db75b8b78-2ml97 | grep Node: 103 ip a 104 kubectl describe pod nginx-7db75b8b78-2ml97 105 curl 172.20.1.5 106 ip a 107 curl 172.20.1.5 108 ip a 109 curl 192.168.122.244:80 110 kubectl describe pod nginx-7db75b8b78-2ml97 111 kubectl cluster-info 112 curl 192.168.122.244:80 113 kubectl get svc nginx 114 curl 10.100.61.190:80 115 kubectl get deployments nginx 116 kubectl scale deployment nginx --replicas=3 117 kubectl get deployments nginx 118 kubectl get ep nginx 119 curl 172.20.1.6 120 curl 172.20.1.4 121 curl 172.20.0.4 122 kubectl get deployments nginx 123 kubectl describe pod nginx-7db75b8b78-2ml97 | grep Node: 124 kubectl describe pod nginx-7db75b8b78- 125 kubectl describe pod nginx | grep Node: 126 tcpdump -i 127 tcpdump -v 128 sudo tcpdump 129 kubectl get po 130 kubectl exec nginx-7db75b8b78-25v9m --printenv | grep KUBERNETES 131 kubectl exec nginx-7db75b8b78-25v9m -- printenv | grep KUBERNETES 132 kubeadm vies 133 w 134 kubeadm view 135 kubeadm -view 136 kubectl -view 137 sudo kubeadm config view 138 kubectl delete svc nginx 139 kubectl expose deployment nginx --type=LoadBalancer 140 kubectl get svc 141 sudo kubeadm config view 142 kubectl get svc 143 ipa 144 ip a 145 kubectl scale deployment nginx --replicas=0 146 kubectl get svc 147 kubectl get po 148 kubectl scale deployment nginx --replicas=2 149 kubectl get po 150 kubectl get svc 151 kubectl get po 152 kubectl describe pod nginx-7db75b8b78- 153 kubectl describe pod nginx-7db75b8b78-2ml97 | grep Node: 154 kubectl describe pod nginx | grep Node: 155 kubectl scale deployment nginx --replicas=1 156 kubectl describe pod nginx | grep Node: 157 kubectl get po 158 kubectl get svr 159 kubectl get srv 160 kubectl get svc 161 ip a 162 kubectl describe pod nginx | grep Node: 163 kubectl delete deployments nginx 164 kubectl delete ep nginx 165 kubectl delete svc nginx 166 kubectl get svc 167 kubectrl create deployment hog --image vish/stress 168 kubectl create deployment hog --image vish/stress 169 kubectl get deployments. 170 kubectl describe deployments hog 171 kubectl get deployments hog -o yaml 172 kubectl get deployments hog --export -o yaml > hog.yaml 173 vim hog.yaml 174 kubectl replace -f hog.yaml 175 vim hog.yaml 176 rm hog.yaml 177 kubectl get deployments hog --export -o yaml > hog.yaml 178 rm hog.yaml 179 kubectl get deployments hog --export -o yaml > hog.yaml 180 vim hog.yaml 181 kubectl get deployments hog --export -o yaml > hog.yaml 182 vim hog.yaml 183 kubectl replace -f hog.yaml 184 vim hog.yaml 185 kubectl replace -f hog.yaml 186 kubectl get deployments hog -o yaml 187 kubectl get po 188 kubectl logs hog-fbf9cf454-dzwcn 189 ex 190 exit 191 vim hog.yaml 192 kubectl delete deployment hog 193 kubectl create -f hog.yaml 194 kubectl get pod 195 kubectl get po 196 kubectl create namespace low-usage-limet 197 kubectl delete namespace low-usage-limet 198 kubectl delete namespace low-usage-limit 199 kubectl create namespace low-usage-limit 200 kubectl get namespace 201 vim low-recource-range.yaml 202 kubectl --namespace=low-usage-limit create -f low-resource-range.yaml 203 vim low-recource-range.yaml 204 kubectl --namespace=low-usage-limit create -f low-recource-range.yaml 205 kubectl get LimetRange 206 kubectl get LimetRange --all-namespaces 207 vim low-recource-range.yaml 208 fg 209 kubectl get LimetRange --all-namespace 210 kubectl get LimetRange --all-namespaces 211 kubectl get LimitRange --all-namespace 212* kubectl get LimitRange --all-namespace 213 clear 214 kubectl -n low-usage-limit create deployment limited-hog --image vish/stress 215 kubectl get deployments --all-namespaces 216 kubectl -n low-recource-range get pods 217 kubectl -n low-usage-limit get pods 218 kubectl -n low-recource-range get pods 219 kubectl -n low-usage-limit get pods 220 kubectl -n low-usage-limit get pod limited-hog-568fbbf4cf-2w6g7 -o yaml 221 cp hog.yaml hog2.yaml 222 vim hog2 223 vim hog2.yaml 224 kubectl create -f hog2.yaml 225 kubectl get deployments --all-namespaces 226 kubectl get nodes 227 kubectl get deployments --all-namespaces 228 kubectl create -f hog2.yaml 229 kubectl scale deployment hog --replicas=2 230 kubectl scale deployment hog --replicas=4 231 kubectl get nodes 232 kubectl get deployments --all-namespaces 233 kubectl scale deployment hog --replicas=0 234 kubectl scale deployment hog --replicas=1 235 kubectl get deployments --all-namespaces 236 kubectl -n low-usage-limit delete deployment hog 237 kubectl delete deployment hog 238 kubectl get deployments --all-namespaces 239 kubectl get pod 240 kubectl delete pod hog 241 kubectl get pod 242 kubectl get ? 243 kubectl get help 244 kubectl get --help 245 kubectl scale deployment hog --replicas=0 246 kubectl get pod 247 kubectl get --all-namespaces 248 kubectl get deployments --all-namespaces 249 pskill -p 18567 250 pkill -p 18567 251 pkill -ns 18567 252 sudo pkill -ns 18567 253 sudo pkill -ns 19059 254 kubectl get deployments --all-namespaces 255 kubectl delete deployment low-usage-limit 256 kubectl delete deployment * 257 pskill stress 258 pkill stress 259 sudo pkill stress 260* kubectl delete deployment 261 sudo pkill stress 262 kubectl get deployments 263 kubectl get --help 264 kubectl get deployments -allnamespaces 265 kubectl get deployments -all-namespaces 266 kubectl get deployments --all-namespaces 267 kubectl delete low-usage-limit 268 kubectl delete low-usage-limit -all-namespaces 269 kubectl delete low-usage-limit -all 270 kubectl delete low-usage-limit 271 kubectl get deployments --all-namespaces 272 kubectl delete limited-hog 273 bectl get services 274 kubectl get services 275 kubectl get pods --all-namespaces 276 kubectl delete pod low-usage-limit 277 kubectl delete pod limited-hog* 278 kubectl delete pod limited-hog-568fbbf4cf-2w6g7 279 kubectl delete limited-hog-568fbbf4cf-2w6g7 280 kubectl delete deployments limited-hog 281 kubectl delete deployment limited-hog 282 kubectl get deployment 283 kubectl get deployment --all-namespaces 284 kubectl delete deployment low-usage-limit 285 kubectl delete deployment low-usage-limit --al 286 kubectl delete deployment low-usage-limit --all 287 kubectl delete deployment low-usage-limit --all-namesapces 288 kubectl delete deployment low-usage-limit --all-namespaces 289 wget https://tinyurl.com/y8bn2awp -O complete-demo.yaml 290 less complete-demo.yaml 291 kubectl create namespace sock-shop 292 kubectl get namespace 293 grep image complete-demo.yaml 294 kubectl apply -n sock-shop -f complete-demo.yaml 295 kubectl het pods 296 kubectl ghet pods 297 kubectl get pods 298 kubectl -n sock-shop get pods 299 kubectl get svc -n sock-shop 300 kubectl get svc 301 kubectl get svc -n sock-shop 302 sudo docket ps 303 sudo docker ps 304 clear 305 sudo docker ps 306 kubectl get deployment --all-namespaces 307 kubectl 308 kubectl get nodes 309 kubectl drain lfs458-node-02 310 kubectl describe node | grep -i taint 311 kubectl drain lfs458-node-02 --igonore-daemonsets 312 kubectl drain lfs458-node-02 --ignore-daemonsets 313 kubectl drain lfs458-node-02 --ignore-daemonsets --delete-local-data 314 kubectl uncordon lfs458-node-02 315 kubectl describe node | grep -i taint 316 kubectl -n sock-shop get pod 317 kubectl -n sock-shop delete pod 318 kubectl -n sock-shop delete pod --all 319 kubectl -n sock-shop get pod 320 kubectl -n sock-shop get deployment 321 kubectl delete -f complete-demo.yaml 322 kubectl -n sock-shop get deployment 323 kubectl -n sock-shop get pod 324 kubectl resources 325 kubectl -resources 326 kubectl api-resources 327 kubectl config view 328 kubectl explain pod 329 kubectl explain 330* kubectl explain ippool 331 kubectl explain pod.status 332 export client 333 export client=$(grep client-cert ~/.kube/config | cut -d" " -f 6) 334 echo $client 335 export key=$(grep client-key-data ~/.kube/config | cut -d" " -f 6) 336 echo $key 337 export auth=$(grep certificate-authority-data ~/.kube/config | cut -d" " -f 6) 338 echo $auth 339 echo $client | base64 -d - > ./client.pem 340 echo $key | base64 -d - > ./client-key.pem 341 echo $auth | base64 -d - > ./ca.pem 342 cat client 343 cat client.pem 344 cat client-key.pem 345 cat ca.pem 346 kubectl config view | grep server 347 curl --cert ./client.pem --key ./client-key.pem --cacert ./ca.pem https://192.168.122.244:6443/api/v1/pods 348 vim curlpod.json 349 curl --cert ./client.pem --key ./client-key.pem --cacert ./ca.pem https://192.168.122.244:6443/api/v1/namespaces/default/pods -XPOST -H'Content-Type: application/json' -d@curlpod.json 350 kubectl get pods 351 kubectl get endpoints 352 stracekubectl get endpoints 353 strace kubectl get endpoints 354 cd /home/ubuntu/.kube/cache/discovery/ 355 ls 356 cd 192.168.122.244_6443/ 357 ls 358 find . 359 python -m json.tool v1/serverresources.json 360 kubectl get ep 361 python -m json.tool v1/serverresources.json | grep kind 362 python -m json.tool apps/v1beta/serverresources.json | grep kind 363 python -m json.tool apps/v1beta1/serverresources.json | grep kind 364 kubectl delete pod cur 365 kubectl delete pod curlpod 366 cd ./ 367 cd $/ 368 cd $./ 369 cd ~/ 370 curl --cert ./client.pem --key ./client-key.pem --cacert ./ca.pem https://192.168.122.244:6443/api/v2/pods 371 curl --cert ./client.pem --key ./client-key.pem --cacert ./ca.pem https://192.168.122.244:6443/api/v2 372 curl --cert ./client.pem --key ./client-key.pem --cacert ./ca.pem https://192.168.122.244:6443/api/v1/pods 373 kubectl get pods 374 kubectl get pods --all-namespaces 375* kubectl delete 376 kubectl get pods --all-namespaces 377 kubectl get resources --all-namespaces 378 kubectl get deployments --all-namespaces 379 kubectl remove deployments limited-hog 380 kubectl delte deployments limited-hog 381 kubectl delete deployments limited-hog 382 kubectl get deployments --all-namespaces 383 kubectl delete deployments low-usage-limit 384 kubectl get deployments --all-namespaces 385 kubectl delete pod low-usage-limit 386 kubectl get pods --all-namepaces 387 kubectl get pods --all-namespaces 388 kubectl delete pod limited-hog-568fbbf4cf-8vqbf 389 kubectl delete pod limited-hog* 390 kubectl delete pod limited-hog 391 kubectl delete pod limited-hog --all 392 kubectl delete limited-hog --all 393 kubectl delete low-usage-limit --all 394 kubectl get pods --all-namespaces 395 clear 396 kubectl get pods --all-namespaces 397 kubectl get secrets 398 kubectl describe secret default-token-69q2v 399 export token=$(kubectl describe secret default-token-69q2v | grep ^token |cut -f7 -d ' ') 400 curl https://192.168.122.244:6443/apis --header "Authorizzation: Bearer $token" -k 401 curl https://192.168.122.244:6443/api1 --header "Authorizzation: Bearer $token" -k 402 kubectl run -i -t busybox --image=busybox --restart=Never 403 kubectl proxy -h 404 kubectl proxy --api-prefix=/ & 405 curl http://127.0.0.1:8001/api 406 curl http://127.0.0.1:8001/api/v1/namespaces 407 vim jobyaml 408 kubectl create -f jobyaml 409 kubectl get job 410 kubectl describe jobs.batch sleepy 411 kubectl get job.batch sleepy -o yaml 412 mv jobyaml job.yaml 413 kubectl delete jobs.batch sleepy 414 vim job.yaml 415 kubectl create -f job.yaml 416 vim job.yaml 417 kubectl create -f job.yaml 418 vim job.yaml 419 kubectl create -f job.yaml 420 kubectl get job.batch 421 kubectl get pods 422 kubectl create -f job.yaml 423 kubectl get pods 424 kubectl delete jobs.batch sleepy 425 vim job.yaml 426 kubectl create -f job.yaml 427 kubectl get pods 428 vim job.yaml 429 kubectl delete jobs.batch sleepy 430 kubectl create -f job.yaml 431 kubectl get jobs 432 kubectl get pods 433 kubectl get jobs 434 kubectl get pods 435 kubectl get jobs 436 kubectl get pods 437 kubectl get jobs 438 kubectl get pods 439 kubectl get job sleepy -o yaml 440 kubectl get deployments 441 kubectl get deployments --all-namespaces 442* kubectl -n low-usage-limit delete deployments. 443 source <(kubectl completion bash) 444 kubectl delete jobs.batch sleepy 445 cp jobs.yaml cronjob.yaml 446 cp job.yaml cronjob.yaml 447 vim cronjob.yaml 448 rm cronjob.yaml 449 vim cronjob.yaml 450 kubectl create -f cronjob.yaml 451 vim cronjob.yaml 452 kubectl create -f cronjob.yaml 453 vim cronjob.yaml 454 kubectl create -f cronjob.yaml 455 kubectl get cronjobs.batch 456 kubectl create -f cronjob.yaml 457 vim cronjob.yaml 458 kubectl get cronjobs.batch 459 kubectl get jobs.batch 460 kubectl delete cronjobs.batch date 461 history 462 history > commandsdag1.txt 463 less commandsdag1.txt 464 ftp home.deds.nl/~kkp 465 ftp kkp@ftp.deds.nl 466 ping google.nl 467 ping deds.nl 468 ping ftp.deds.nl 469 ftp /? 470 ftp 471 ftp ftp.deds.nl 472 sudo -io 473 sudo -i 474 vim commandsdag1.txt 475 ftp 476 ftp ftp.deds.nl 477 kubectl get po 478 kubectl delete pod busybox 479 kubectl get po 480 kubectl get rs 481 vim rs.yaml 482 kubectl describe rs rs-one 483 kubectl create -f rs.yaml 484 kubectl describe rs rs-one 485 kubectl get rs 486 curl 127.0.0.1 487 kubectl get pods 488 kubectl delete rs rs-one --cascade=false 489 kubectl get pods 490 kubectl get rs 491 kubectl create -f rs.yaml 492 kubectl get rs 493 kubectl get pods 494 kubectl edit po rs-one-6gfzm 495 kubectl get pods 496 kubectl get rs 497 kubectl delete rs rs-one 498 kubectl get rs 499 kubectl get pods 500 kubectl delete pod -l system=IsolatedPod 501 cp rs.yaml ds.yaml 502 vi ds.yaml 503 kubectl create -f ds.yaml 504 kubectl get pod 505 kubectl get ds 506 kubectl describe po ds-one-ts5jd | grep Imag 507 kubectl describe po ds-one-ts5jd 508 kubectl get ds ds-one -o yaml | grep -A 1 Strategy 509 kubectl set image ds ds-one nginx=nginx:1.12.1-alpine 510 kubectl describe po ds-one-ts5jd 511 kubectl rollout history ds ds-one 512 kubectl rollout history ds ds-one --revision=1 513 kubectl rollout history ds ds-one --revision=2 514 kubectl rollout history ds ds-one 515 kubectl describe po ds-one-ts5jd | grep Image: 516* kubectl rollout undo ds ds-one --to-revision=2 517 kubectl describe po ds-one-ts5jd | grep Image: 518 kubectl get pods 519 kubectl get node 520 kubectl get po 521 kubectl get ds 522 kubectl get po 523 kubectl describe po ds-one-w6gwh | grep Image: 524 kubectl rollout history ds ds-one --revision=2 525 kubectl get po 526 kubectl describe po ds-one-w6gwh | grep Image: 527 kubectl describe po ds-one-ts5jd | grep Image: 528 kubectl describe po ds-one-w6gwh | grep Image: 529 kubectl delete po ds-one-ts5jd 530 kubectl get po 531 kubectl describe po ds-one-crql6 | grep Image: 532 kubectl describe po ds-one- | grep Image: 533 kubectl set image ds ds-one nginx=nginx:1.12.1-alpine 534 kubectl delete po ds-one-crql6 535 kubectl set image ds ds-one nginx=nginx:1.12.1-alpine 536 kubectl describe po ds-one- | grep Image: 537 kubectl describe po ds-one-gl2pw 538 kubectl rollout history ds ds-one 539 kubectl set image ds ds-one nginx=nginx:1.12.1-alpine 540 kubectl rollout history ds ds-one 541 kubectl rollout history ds ds-one --revision=1 542 kubectl rollout history ds ds-one --revision=3 543 kubectl rollout history ds ds-one --revision=4 544 kubectl rollout undo ds ds-one --to-revision=3 545 kubectl describe po ds-one- | grep Image: 546 kubectl get pod 547 kubectl delete pod ds-one-gl2pw 548 kubectl get pod 549 kubectl describe po ds-one- | grep Image: 550 kubectl get ds ds-one -o yaml 551 kubectl get ds ds-one -o yaml --export > ds2.yaml 552 vim ds2.yaml 553 kubectl create -f ds2 554 kubectl create -f ds2.yaml 555 kubectl create -f ds2 556 vim ds2.yaml 557 kubectl create -f ds2.yaml 558 vim ds2.yaml 559 kubectl create -f ds2.yaml 560 kubectl get pod 561 kubectl describe po ds-one- | grep Image: 562 kubectl describe po ds-two- | grep Image: 563 kubectl describe po ds- | grep Image: 564 kubectl get ds ds-two 565 kubectl edit ds ds-two 566 kubectl get ds ds-two 567 kubectl describe po ds- | grep Image: 568 kubectl get ds ds-two 569 kubectl describe po ds- | grep Image: 570 kubectl rollout status ds 571 kubectl rollout status ds ds- 572 kubectl rollout status ds ds-two 573 kubectl rollout history ds ds-two 574 kubectl delete ds ds-two 575 vim nginx-one.yaml 576 kubectl get nodes 577 kubectl create -f nginx-one.yaml 578 kubectl create ns accounting 579 kubectl create -f nginx-one.yaml 580 kubectl -n accounting get pods 581 kubectl -n accounting describe pod nginx-one-54479f7c5c- 582 kubectl label node lfs458-node-02 system=secondOne 583 kubectl -n accounting describe pod nginx-one-54479f7c5c- 584 kubectl get nodes --show-labels 585 kubectl -n accounting het pods 586 kubectl -n accounting get pods 587 kubectl get pods -l app=nginx --all-namespaces 588 kubectl get pods 589 kubectl get pods --all-namespaces 590 kubectl -n accounting expose deployment nginx-one 591 kubectl -n accounting get ep nginx-one 592 curl 172.20.1.52:8080 593 curl 172.20.1.52:80 594 kubectl -n accounting get ep nginx-one 595 kubectl get svc 596 kubectl get svc nginx-one.yaml 597 kubectl get svc nginx-one 598 kubectl get pods --all-namespaces 599 kubectl get svc 600 vim nginx-one.yaml 601 kubectl -n accounting delete deploy nginx-one 602 kubectl create -f nginx-one.yaml 603 kubectl -n accounting expose deployment nginx-one --type=NodePort --name=service-lab 604 kubectl -n accounting describe services 605 kubectl cluster-info 606 kubectl delete pods -l app=nginx --all-namespaces 607 kubectl delete pods -l app=nginx 608 kubectl -n accounting delete pods -l app=nginx 609 kubectl -n accounting get pods 610 kubectl -n accounting get deployments --show-labes 611 kubectl -n accounting get deployments --show-labe 612 kubectl -n accounting get deployments --show-labels 613 kubectl -n accounting delete deploy -l system=secondary 614 kubectl label nodes lfs458-node-02 system- 615 kubectl get nodes lfs458-node-0 616 kubectl get nodes lfs458-node-01 617 kubectl get nodes lfs458-node-02 618 kubectl get nodes 619 kubectl get nodes --show-labels 620 mkdir primary 621 cd primary/ 622 echo c > cyan 623 echo m > mangenta 624 echo y > yellow 625 echo k > black 626 ls 627 cat black 628 echo "know as key >> bl 629 echo "know as key" >> black 630 ex 631 cd .. 632 echo blue > favorite 633 kubectl create configmap colors --from-literal=text=black --from-file=./favorite --from-file=./primary/ 634 kubectl get configmaps 635 kubectl get configmaps -o yaml 636 vim simpleshell.yaml 637 kubectl create -f simpleshell.yaml 638 kubectl exec -it shell-demo -- /bin/bash -c 'echo $like' 639 kubectl exec -it shell-demo -- /bin/bash -c 'echo $ilike' 640 kubectl delete pod shell-demo 641 vim simpleshell.yaml 642 kubectl create -f simpleshell.yaml 643 vim simpleshell.yaml 644 kubectl create -f simpleshell.yaml 645 kubectl exec -it shell-demo -- /bin/bash -c 'env' 646 vim simpleshell.yaml 647 kubectl delete pod shell-demo 648 vim car-map.yaml 649 kubectl create -f car-map.yaml 650 kubectl get configmaps fast-car -o yaml 651 vim simpleshell.yaml 652 kubectl create -f simpleshell.yaml 653 kubectl exec -it shell-demo -- /bin/bash -c 'df -h | grep car' 654 kubectl exec -it shell-demo -- /bin/bash -c 'cat /etc/cars/car.trim' 655 kubectl exec -it shell-demo -- /bin/bash -c 'echo auto2 > /etc/cars/car2.trim' 656 sudo kubectl exec -it shell-demo -- /bin/bash -c 'echo auto2 > /etc/cars/car2.trim' 657 kubectl delete pods shell-demo 658 kubectl delete configmaps fast-car colors 659 sudo apt-get update 660 sudo apt-get install -y nfs-kernel-server 661 chmod /? 662 chmod --help 663 sudo mkdir /opt/sfw 664 sudo chmod 1777 /opt/sfw/ 665 sudo bash -c 'echo software > /opt/sfw/hello.txt' 666 sudo vim /etc/exports 667 sudo exportfs -ra 668 ip a 669 service nfs-server restart 670 sudo vim /etc/exports 671 sudo service nfs-server restart 672 sudo service nfs restart 673 sudo service nfs* restart 674 sudo exportfs 675 sudo vim /etc/exports 676 sudo exportfs 677 sudo exportfs -ra 678 sudo exportfs 679 vim PVol.yaml 680 kubectl create -f PVol.yaml 681 vim PVol.yaml 682 kubectl create -f PVol.yaml 683 kubectl get pv 684 kubectl get pvc 685 vim pvc.yaml 686 kubectl create -f pvc.yaml 687 vim pvc.yaml 688 kubectl get pvc 689 kubectl get pv 690 cp first.yaml nfs-pod.yaml 691 vim nfs-pod.yaml 692 kubectl create -f nfs-pod.yaml 693 kubectl get pods 694 kubectl describe pod nginx-798d5bc94c-w2dcz 695 kubectl get pvc.yaml 696 kubectl get pvc 697 vim nfs-pod.yaml 698 kubectl delete deploy nginx -nfs 699 kubectl delete deploy nginx-nfs 700 kubectl delete deploy nginx 701 vim nfs-pod.yaml 702 mv nfs-pod.yaml nfs-pod.yaml1 703 vim nfs-pod.yaml 704 dif nfs-pod.yaml nfs-pod.yaml.1 705 dif nfs-pod.yaml nfs-pod.yaml1 706 diff nfs-pod.yaml nfs-pod.yaml1 707 kubectl create -f nfs-pod.yaml 708 kubectl get pvc 709 kubectl describe pod nginx-798d5bc94c-w2dcz 710 kubectl describe pod nginx-nfs-c96d64f49-fg6j6 711 kubectl get pvc 712 vim nfs-pod.yaml.1 713 vim nfs-pod.yaml1 714 vim nfs-pod.yaml 715 vim nfs-pod.yaml1 716 vim nfs-pod.yaml 717 diff nfs-pod.yaml nfs-pod.yaml1 718 kubectl delete deploy nginx-nfs 719 kubectl delete pvc pvc-one 720 kubectl get pv 721 kubectl get pvc 722 kubectl delete pv pvvol-1 723 kubectl get pv 724 vim storage-quota.yaml 725 kubectl create namespace small 726 kubectl describe ns small 727 kubectl -n small create -f PVol.yaml 728 kubectl -n small create -f pvc.yaml 729 kubectl -n small create -f storage-quota.yaml 730 kubectl describe ns small 731 vim storage-quota.yaml 732 wim nfs-pod.yaml 733 vim nfs-pod.yaml 734 kubectl -n small create -f nfs-pod.yaml 735 kubectl get deploy --namespace=small 736 kubectl -n small describe deploy nginx-nfs 737 kubectl -n small get pod 738 kubectl -n small describe pod nginx-nfs-c96d64f49-r86cp 739 kubectl describe ns small 740 sudo dd if=/dev/zero of=/opt/sfw/bigchungas bs=1M count=300 741 kubectl describe ns small 742 du -f /opt 743 du -h /opt/ 744 kubectl create deploy secondapp --image=nginx 745 kubectl create deploy secondapp -o yaml | grep label -A2 746 kubectl get deploy secondapp -o yaml | grep label -A2 747 kubectl expose deployment secondapp --type=NodePort --port=80 748 vim ingress.rbac.yaml 749 kubectl create -l ingress.rbac.yaml 750 kubectl create -f ingress.rbac.yaml 751 wget https://tinyurl.com/yawpexdt -O traefik-ds.yaml 752 vim traefik-ds.yaml 753 kubectl create -f traefik-ds.yaml 754* vim ingress.rule.yam 755 kubectl create -f ingress.rule.yaml 756 curl -H "Host: www.example.com" http://10.128.0.7 757 ip a 758 curl -H "Host: www.example.com" http://192.168.122.244 759 kubectl create deployment thirdpage --image=ngin 760 kubectl create deployment thirdpage --image=nginx 761 kubectl get pod 762 kubectl delete pod thirdpage-9fbb5bcfc-trd4b 763 kubectl create deployment thirdpage --image=nginx 764 kubectl delete pod thirdpage-9fbb5bcfc-rbwzl 765 kubectl get pod 766 kubectl create deployment thirdpage1 --image=nginx 767 kubectl delete deployments thirdpage 768 kubectl get pod 769 kubectl delete deployments thirdpage1 770 kubectl create deployment thirdpage --image=nginx 771 kubectl get deployment thirdpage -o yaml | grep -A2 Label 772 kubectl get deployment thirdpage -o yaml | grep -A2 abel 773 kubectl expose deployment thirdpage --type=NodePort --port=80 774 kubectl get expose 775 kubectl get deployments 776 kubectl exec -it thirdpage-7bd8d45875-qnmwz -- /bin/bash 777 kubectl edit ingres ingress-test 778 kubectl edit ingress ingress-test 779 curl -H "Host: www.example.com" http://192.168.122.244 780 curl -H "Host: www.derde.nl" http://192.168.122.244 781 kubectl get pods 782 kubectl get deployments. 783 kubectl get deployments --export 784 kubectl get deployments --export -o yaml 785 kubectl get deployments --export -o yaml > testeetst.yaml 786 nano testeetst.yaml 787 kubectl delete namespaces -all 788 kubectl delete namespaces --all 789 kubectl create -f testeetst.yaml 790 kubectl delete deployments. --all 791 kubectl create -f testeetst.yaml 792 kubectl get nodes 793 kubectl describe nodes | grep -i label 794 kubectl describe nodes | grep -i train 795 kubectl describe nodes | grep -i tain 796 kubectl get deployments --all-namespaces 797 sudo docker ps | wc -l 798 kubectl label nodes lfs458-node-01 status=vip 799 kubectl label nodes lfs458-node-02 status=other 800 kubectl get node --show-labels 801 vim vip.yaml; 802 vim vip.yaml 803 kubectl create -f vip.yaml 804 sudo docker ps | wc -l 805 kubectl delete pod vip 806 vim vip.yaml 807 kubectl get pods 808 kubectl create -f vip.yaml 809 kubectl get pods 810 kubectl create -f vip.yaml 811 kubectl get pods 812 sudo docker ps | wc -l 813 cp vip.yaml other.yaml 814 vim other.yaml 815 kubectl create -f other.yaml 816 kubectl get pods 817 sudo docker ps | wc -l 818 kubectl delete pod vip other 819 kubectl get pods 820 kubectl delete deployments secondapp thirdpage 821 vim taint.yaml 822 sudo dockerps | grep nginx-one.yaml 823 sudo docker ps | grep nginx 824 sudo docker ps | wc -l 825 kubectl delete deployments taint-deployment 826 sudo docker ps | wc -l 827 kubectl taint node lfs458-node-02 bubba=value:PreferNoSchedule 828 kubectl describe nodes | grep taint 829 kubectl describe nodes | grep Taint 830 kubectl create -f taint.yaml 831 kubectl apply -f taint.yaml 832 sudo docker ps | wc -l 833 kubectl get nodes lfs458-node-0 834 kubectl get nodes lfs458-node-01 835 kubectl get nodes lfs458-node-02 836 kubectl get nodes 837 kubectl get pod 838 kubectl delete deployments taint-deployment 839 kubectl get pod 840 kubectl taint node lfs458-node-02 841 kubectl taint node lfs458-node-02 bubba- 842 kubectl get pod 843 kubectl describe pod 844 kubectl describe pod | grep -A5 Node: 845 kubectl apply -f taint.yaml 846 kubectl describe pod | grep -A5 Node: 847 kubectl describe pod | grep -B5 Node: 848 kubectl describe pod | grep -B5 -A3 Node: 849 kubectl describe pod | 850 kubectl describe pod 851 kubectl describe pod | grep -B5 -A3 Node: 852 kubectl describe pod | grep -B5 -A2 Node: 853 kubectl describe pod | grep -B5 -A5 Node: 854 kubectl describe pod | grep -B5 -A6 Node: 855 kubectl describe pod | grep -B5 -A5 Node: 856 kubectl describe pod | grep -B5 -A6 Node: 857 kubectl describe pod | grep -B5 -A8 Node: 858 kubectl describe pod | grep -B6 -A8 Node: 859 kubectl describe pod | grep -B6 -A10 Node: 860 kubectl describe pod | grep -B6 -A13 Node: 861 kubectl describe pod | grep -B6 -A8 Node: 862 apt 863 apt-get 864 cowsay 865* m 866 moo hallo 867 apt-get moo 868 aptitude -v moo 869 aptitude -vvvvv moo 870 apt -v moo 871 apt -vvvvv moo 872 ip moo 873 clear 874 kubectl get cs 875 kubectl get cs --all 876 kubectl get cs 877 kubectl -n kube-system get pod 878 kubectl get nodes lfs458-node-01 879 kubectl get events 880 kubectl get cs 881 sudo nano /etc/kubernetes/manifests/etcd.yaml 882 sudo nano /etc/kubernetes/manifests/joru 883 journalctl -u kubelet.service | less 884 sudo find / -name "*apiserver*.log" 885 sudo diff /var/log/containers/kube-apiserver-lfs458-node-01_kube-system_kube-apiserver-2df71a47e4d473749a51f905aecaa597ba36a8af71048fff802f602f43bc04f3.log /var/log/containers/kube-apiserver-lfs458-node-01_kube-system_kube-apiserver-f0f1840b7d9cd8a3e80f05837289b4d4638aa7e3d77c123a220bd8ce0a00610b.log 886 kubectl get pod --all-namespaces 887 kubectl -n kube-system logs calico-node-qtbnh 888 git clone https://github.com/kubernetes-incubator/metrics-server.git 889 kubectl create -f metrics-server/deploy/1.8+/ 890 kubectl -n kube-system get pods 891 kubectl -n kube-system edit deployments metrics-server 892 kubectl -n kube-system logs metrics-server-9668968bd-d64xh 893 kubectl top pod --all-namespaces 894 kubectl top pods --all-namespaces 895 kubectl -n kube-system edit deployments metrics-server 896 kubectl top pod --all-namespaces 897 kubectl top nodes 898 kubectl -n kube-system logs metrics-server-9668968bd-d64xh 899 curl --cert ./client.pem --key ./client-key.pem --cacert ./ca.pem http://192.168.122.244/ 900 curl --cert ./client.pem --key ./client-key.pem --cacert ./ca.pem https://192.168.122.244:6443/apis/metrics.k8s.io/v1beta1/nodes 901 kubectl create -f https://bit.ly/2QA92lC 902 kubectl get svc --all-namespaces 903 kubectl -n kube-system edit deployments metrics-server 904 kubectl -n kube-system logs metrics-server-9668968bd-d64xh 905 kubectl -n kube-system logs metrics-server-68d85f76bb-b7p2j 906 kubectl get svc --all-namespaces 907 kubectl -n kube-system edit svc kubernetes-dashboard 908 kubectl -n kube-system logs metrics-server-9668968bd-d64xh 909 kubectl -n kube-system get svc kubernetes-dashboard 910 kubectl -n kube-system describe secrets kubernetes-dashboard-token-vndhd 911 kubectl create clusterrolebinding kubernetes-dashboard --closterrole=cluster-admin --serviceaccount=kube-system:kubernetes-dashboard 912 kubectl create clusterrolebinding kubernetes-dashboard --clusterrole=cluster-admin --serviceaccount=kube-system:kubernetes-dashboard 913 kubectl -n kube-system describe secrets kubernetes-dashboard-token-vndhd 914 kubectl create deployment --image=nginx 915 kubectl create deployment --image=nginx test 916 kubectl create deployment --image=busybox bussybox 917 kubectl exec -ti bussybox-5bd6bfd994-9nfhq -- nslookup nginx 918 kubectl create deployment --image=busybox busybox 919 kubectl exec -ti busybox-7676789f95-vvqx6 -- nslookup nginx 920 kubectl get pods 921 history > commandsdag1en2.txt