Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- student@student-virtual-machine:~/ckad/devopsinfourweeks/my-ghost-app$ history
- 1 sudo apt install -y vim git
- 2 git clone https://github.com/sandervanvugt/ckad
- 3 cd ckad
- 4 ./kube-setup.sh
- 5 sudo reboot
- 6 cd ckad
- 7 cat kube-setup.sh
- 8 minikube start --memory 4096 --vm-driver=kvm2
- 9 minikube status
- 10 sudo reboot
- 11 minikube start --memory 4096 --vm-driver=kvm2
- 12 minikube status
- 13 history
- 14 cd ckad
- 15 vim kube-setup.sh
- 16 minikube status
- 17 minikube --help
- 18 minikube ssh
- 19 kubectl get all
- 20 minikube dashboard
- 21 kubectl get all
- 22 kubectl create deployment firstnginx --image=nginx
- 23 kubectl get all
- 24 ls
- 25 ./countdown 12
- 26 kubectl get all
- 27 history
- 28 kubectl get all
- 29 kubectl delete mynginx-7bf8c6db65-x5qwc
- 30 kubectl delete pod mynginx-7bf8c6db65-x5qwc
- 31 kubectl get all
- 32 kubectl -h | less
- 33 kubectl completion -h | less
- 34 source <(kubectl completion bash)
- 35 kubectl scale deployment mynginx --replicas=3
- 36 kubectl get all
- 37 kubectl get pods -o wide
- 38 ./countdown 12
- 39 kubectl api-versions
- 40 kubectl api-resources | less
- 41 history
- 42 kubectl proxy --port=8001 &
- 43 curl http://localhost:8001/version
- 44 kubectl get pods
- 45 curl http://localhost:8001/api/v1/namespaces/default/pods | less
- 46 history -10
- 47 history | tail -10
- 48 kubectl get pods
- 49 curl http://localhost:8001/api/v1/namespaces/default/pods/firstnginx-8cdb8cd74-kbtr2
- 50 curl -XDELETE http://localhost:8001/api/v1/namespaces/default/pods/firstnginx-8cdb8cd74-kbtr2
- 51 kubectl get pods
- 52 kubectl api-resources | less
- 53 kubectl -h | less
- 54 kubectl run -h | less
- 55 kubectl config
- 56 kubectl config -h
- 57 kubectl config view
- 58 cd
- 59 ls -a
- 60 cd .kube/
- 61 ls
- 62 cat config
- 63 kubectl config view
- 64 cd
- 65 kubectl config view
- 66 kubectl run -h | less
- 67 kubectl run nginx --image=nginx
- 68 kubectl get pods
- 69 kubectl delete pod nginx
- 70 kubectl get pods
- 71 kubectl run nginx --image=nginx
- 72 kubectl describe pod nginx | less
- 73 kubectl run buysybox --image=busybox
- 74 kubectl get pods
- 75 kubectl describe pod buysybox | less
- 76 kubectl get pod buysybox -o yaml | less
- 77 ckad/countdown 12
- 78 cd ckad/
- 79 ls
- 80 vim busybox.yaml
- 81 kubectl api-resources | less
- 82 vim busybox.yaml
- 83 kubectl get ns
- 84 kubectl get pods
- 85 kubectl get pods -A
- 86 kubectl get pods -n kube-system
- 87 vim busybox.yaml
- 88 kubectl apply -f busybox.yaml
- 89 kubectl get pods
- 90 kubectl run busyblah --image=busybox --dry-run -o yaml > busyblah.yaml
- 91 vim busyblah.yaml
- 92 kubectl creaste
- 93 kubectl create -f busyblah.yaml
- 94 vim busyblah.yaml
- 95 kubectl create -f busyblah.yaml
- 96 kubectl get pods
- 97 kubectl explain pods
- 98 kubectl explain pods.spec | less
- 99 kubectl explain pods.spec.containers | less
- 100 kubectl explain --recursive pod | less
- 101 kubectl -h
- 102 kubectl label -h
- 103 kubectl explain pods
- 104 kubectl get pods
- 105 kubectl get pods buysybox -o yaml > buysybox.yaml
- 106 vim buysybox.yaml
- 107 history
- 108 minikube status
- 109 sudo reboot
- 110 minikube start --memory 4096 --vm-driver=kvm2
- 111 sudo apt update
- 112 sudo apt upgrade
- 113 sudo poweroff
- 114 ip a
- 115 minikube start --memory 4096 --vm-driver=kvm2
- 116 minikube statys
- 117 minikube status
- 118 kubectl get all
- 119 cd ckad/
- 120 ls
- 121 history | grep git
- 122 vim sidecar.yaml
- 123 kubectl create -f sidecar.yaml
- 124 kubectl get pods
- 125 kubectl exec -it sidecar-pod -c sidecar /bin/bash
- 126 kubectl exec -it sidecar-pod -c sidecar -- /bin/bash
- 127 kubectl completion -h
- 128 source <(kubectl completion bash)
- 129 kubectl describe pod sidecar-pod | less
- 130 vim initpod.yaml
- 131 history
- 132 kubectl exec -it sidecar-pod -- /bin/bash
- 133 kubectl create -f initpod.yaml
- 134 kubectl get pods
- 135 kubectl describe pod init-demo | less
- 136 kubectl logs init-demo install
- 137 kubectl delete pod init-demo
- 138 vim initpod.yaml
- 139 kubectl create -f initpod.yaml \
- 140 kubectl create -f initpod.yaml
- 141 kubectl get pods
- 142 kubectl create -f initpod.yaml
- 143 vim initpod.yaml
- 144 kubectl create -f initpod.yaml
- 145 kubectl get pods
- 146 kubectl get events
- 147 kubectl get pods
- 148 kubectl describe pods buysybox
- 149 kubectl run -h | less
- 150 kubectl get pods
- 151 kubectl exec mynginx-7bf8c6db65-24bqv -- bash
- 152 kubectl exec -it mynginx-7bf8c6db65-24bqv -- bash
- 153 vim securitycontextdemo2.yaml
- 154 kubectl create -f securitycontextdemo2.yaml
- 155 kubectl get pods
- 156 kubectl exec -it security-context-demo -- sh
- 157 kubectl explain pods.spec.securitycontext
- 158 kubectl explain pods.spec.securityContext
- 159 kubectl explain --recursive pods.spec.securityContext | less
- 160 vim securitycontextdemo.yaml
- 161 kubectl create -f securitycontextdemo
- 162 kubectl create -f securitycontextdemo.yaml
- 163 kubectl get pods
- 164 kubectl describe pods nginxsecure
- 165 kubectl get pods
- 166 kubectl delete pod nginxsecure
- 167 kubectl delete pod busybox
- 168 kubectl delete pod buysybox
- 169 kubectl delete pod busyblah
- 170 kubectl delete pod init-dep
- 171 kubectl delete pod init-demo
- 172 kubectl delete pod sidecar-pod
- 173 kubectl explain jobs.spec | less
- 174 kubectl explain jobs.spec.template | less
- 175 kubectl explain jobs.spec.template.spec | less
- 176 vim simplejob.yaml
- 177 kubectl create -f simplejob.yaml
- 178 kubectl get all
- 179 kubectl delete jobs simple-job
- 180 vim simplejob.yaml
- 181 kubectl create -f simplejob.yaml
- 182 vim simplejob.yaml
- 183 kubectl create -f simplejob.yaml
- 184 kubectl get all
- 185 kubectl explain jobs.spec | less
- 186 ./countdown 12
- 187 kubectl explain cronjob.spec
- 188 vim cron-example.yaml
- 189 kubectl create -f cron-example.yaml
- 190 kubectl get all
- 191 kubectl delete cronjobs.batch hello
- 192 kubectl get all
- 193 kubectl get ns
- 194 kubectl get pods
- 195 kubectl get pods -n kube-system
- 196 kubectl config set-context --current --namespace=kube-system
- 197 kubectl get all
- 198 kubectl config set-context --current --namespace=default
- 199 kubectl get pods
- 200 kubectl get all --all-namespaces
- 201 kubectl get all -A
- 202 kubectl get ns
- 203 kubectl create ns secret
- 204 vim busybox-ns.yaml
- 205 kubectl create -f busybox-ns.yaml
- 206 vim busybox-ns.yaml
- 207 kubectl create -f busybox-ns.yaml
- 208 kubectl get pods -A
- 209 kubectl config view
- 210 kubectl explain pod.spec.containers.resources
- 211 kubectl explain pod.spec.containers.resources.limits
- 212 kubectl explain pod.spec.containers.resources
- 213 kubectl explain pod.spec.containers.resources.requests
- 214 kubectl api-resources | grep quota
- 215 kubectl create -h | less
- 216 kubectl create quota -h | less
- 217 kubectl create quota my-quota --hard=cpu=1,memory=1G,pods=2,services=3,replicationcontrollers=2,resourcequotas=1,secrets=5,persistentvolumeclaims=10 -n secret
- 218 kubectl describe ns secret
- 219 kubectl create deploy -h
- 220 kubectl create deploy mynginx --image=nginx -n secret
- 221 kubectl get all -n secret
- 222 kubectl describe deployments.apps mynginx -n secret
- 223 kubectl get all -n secret
- 224 kubectl describe rs mynginx-5b686ccd46 -n secret
- 225 kubectl get all -n secret
- 226 kubectl delete deploy mynginx -n secret
- 227 vim frontend-resources.yaml
- 228 kubectl create -f frontend-resources.yaml
- 229 kubectl get all -n secret
- 230 kubectl delete -f frontend-resources.yaml
- 231 vim frontend-resources.yaml
- 232 kubectl delete -f frontend-resources.yaml
- 233 kubectl create -f frontend-resources.yaml
- 234 kubectl get all -n secret
- 235 kubectl run newginx --image=nginx
- 236 kubectl get pods
- 237 kubectl run newginx --image=nginx -n secret
- 238 kubectl describe ns secret
- 239 history
- 240 kubectl delete all --all -A
- 241 kubectl get all -A
- 242 kubectl create deploy nginxblah --image=nginx
- 243 kubectl get deploy nginxblah -o yaml | less
- 244 kubectl get deploy
- 245 kubectl get all
- 246 kubectl scale deployment --replicas=3 nginxblah
- 247 kubectl get all
- 248 kubectl edit deployments.apps nginxblah
- 249 kubectl get all
- 250 kubectl delete pods nginxblah-7dc7fb8c85-p8g9w
- 251 kubectl get all
- 252 kubectl create -f redis-deploy.yaml
- 253 vim redis-deploy.yaml
- 254 kubectl api-resources | less
- 255 vim redis-deploy.yaml
- 256 kubectl create -f redis-deploy.yaml
- 257 kubectl get events
- 258 kubectl get events -h
- 259 ./countdown 12
- 260 vim rolling.yaml
- 261 kubectl create -f rolling.yaml
- 262 kubectl get pods
- 263 kubectl get all
- 264 kubectl edit deployments.apps rolling-nginx
- 265 kubectl get all
- 266 kubectl rollout -h | less
- 267 kubectl rollout history deployment rolling-nginx
- 268 kubectl rollout history deployment rolling-nginx --revision=1
- 269 kubectl rollout history deployment rolling-nginx --revision=2
- 270 kubectl rollout undo deployment rolling-nginx ; kubectl get all
- 271 kubectl get all
- 272 kubectl get all --show-labels
- 273 kubectl get all --selector app=nginx
- 274 kubectl get all --selector app=nginxblah
- 275 kubectl label pod nginxblah-7dc7fb8c85-mlvpk app-
- 276 kubectl get all --selector app=nginxblah
- 277 kubectl get all
- 278 kubectl delete pod nginxblah-7dc7fb8c85-mlvpk
- 279 kubectl get all
- 280 kubectl get pods --show-labels
- 281 kubectl run nakedginx --image=nginx
- 282 kubectl get pods --show-labels
- 283 kubectl get pods --selector=run
- 284 kubectl get pods --selector=app
- 285 sudo reboot
- 286 minikube status
- 287 minikube start --memory 4096 --vm-driver=kvm2
- 288 minikube status
- 289 kubectl get all -A
- 290 ckad/countdown 12
- 291 kubectl create deployment nginxsvc --image=nginx
- 292 kubectl scale deployment nginxsvc --replicas=3
- 293 kubectl completion -h
- 294 source <(kubectl completion bash)
- 295 kubectl expose deployment nginxsvc
- 296 kubectl expose deployment nginxsvc --port=80
- 297 kubectl get all --selector app=nginxsvc
- 298 kubectl describe svc nginxsvc
- 299 kubectl scale deployment nginxsvc --replicas=6
- 300 kubectl describe svc nginxsvc
- 301 kubectl get endpoints
- 302 kubectl describe svc nginxsvc
- 303 kubectl edit svc nginxsvc
- 304 kubectl describe svc nginxsvc
- 305 kubectl edit svc nginxsvc
- 306 kubectl describe svc nginxsvc
- 307 kubectl edit svc nginxsvc
- 308 curl 10.100.138.231
- 309 minikube ssh
- 310 kubectl edit svc nginxsvc
- 311 kubectl get svc
- 312 minikube ip
- 313 curl 192.168.39.56:32000
- 314 history
- 315 kubectl get pods
- 316 cd ckad
- 317 vim busybox.yaml
- 318 kubectl create -f busybox.yaml
- 319 kubectl get svc
- 320 kubectl exec -it busybox2 -- bash
- 321 kubectl exec -it busybox2 -- sh
- 322 minikube addons list
- 323 minikube addons enable ingress
- 324 minikube addons enable ingress-dns
- 325 kubectl get ns
- 326 kubectl get all -n ingress-nginx
- 327 kubectl get deploy
- 328 kubectl get svc nginxsvc
- 329 curl http://$(minikube ip):32000
- 330 vim nginxsvc-ingress.yaml
- 331 kubectl apply -f nginxsvc-ingress.yaml
- 332 kubectl get ingress
- 333 minikube ip
- 334 sudo vim /etc/hosts
- 335 curl nginxsvc.info
- 336 kubectl create deploy newdep --image=gcr.io/google-samples/hello-app:2.0
- 337 kubectl expose deployment newdep --port=8080
- 338 vim nginxsvc-ingress.yaml
- 339 curl nginxsvc.info/hello
- 340 history
- 341 sudo poweroff
- 342 minikube start --memory 4096 --vm-driver=kvm2
- 343 sudo poweroff
- 344 ip a
- 345 minikube start --memory 4096 --vm-driver=kvm2
- 346 source <(kubectl completion bash)
- 347 cd ckad/
- 348 vim nwpolicy-complete-example.yaml
- 349 kubectl apply -f nwpolicy-complete-example.yaml
- 350 kubectl get all
- 351 kubectl expose pod nginx --port=80
- 352 kubectl get svc
- 353 kubectl exec -it busybox -- wget --spider --timeout=1
- 354 kubectl exec -it busybox -- wget --spider --timeout=1 nginx
- 355 vim nwpolicy-complete-example.yaml
- 356 kubectl label pod busybox access=true
- 357 kubectl explain pod.spec.volumes | less
- 358 ls
- 359 vim morevolumes.yaml
- 360 kubectl create -f morevolumes.yaml
- 361 kubectl describe pod morevol2
- 362 kubectl exec -it morevol2 -c centos1 -- touch /centos1/hello
- 363 kubectl exec -it morevol2 -c centos2 -- ls /centos2/
- 364 kubectl get storageclass -A
- 365 kubectl explain persistenvolume
- 366 kubectl explain persistentvolume
- 367 kubectl explain persistentvolume.spec
- 368 kubectl explain persistentvolume.spec | less
- 369 ls
- 370 vim pv.yaml
- 371 kubectl create -f pv.yaml
- 372 kubectl get pv
- 373 kubectl api-resources | less
- 374 vim pvc.yaml
- 375 kubectl create -f pvc.yaml
- 376 kubectl get pvc
- 377 kubectl get pv
- 378 kubectl describe pv pvc-2a440be2-7904-41b3-be6f-cccf31676f38
- 379 vim pv-pod.yaml
- 380 kubectl create -f pv-pod.yaml
- 381 kubectl describe pod pv-pod
- 382 kubectl exec -it pv-pod -- touch /usr/share/nginx/html/whatever.html
- 383 kubectl describe pv pvc-2a440be2-7904-41b3-be6f-cccf31676f38
- 384 minikube ssh
- 385 vim pv-pvc-pod.yaml
- 386 kubectl create -f pv-pvc-pod.yaml
- 387 kubectl delete -f pv-pvc-pod.yaml
- 388 kubectl create ns myvol
- 389 kubectl create -f pv-pvc-pod.yaml
- 390 kubectl get all -n myvol
- 391 kubectl get pvc -n myvol
- 392 kubectl get pv
- 393 history
- 394 kubectl get pv
- 395 kubectl describe pv pv-volume
- 396 kubectl describe pv local-pv-volume
- 397 vim pv-pvc-pod.yaml
- 398 kubectl get storageclass -A
- 399 vim pv-pvc-pod.yaml
- 400 ./countdown 12
- 401 vim variables
- 402 kubectl create cm -h | less
- 403 kubectl create cm variables --from-env-file=variables
- 404 kubectl create cm novariables --from-file=variables
- 405 kubectl describe cm variables
- 406 kubectl describe cm novariables
- 407 vim cm-test-pod.yaml
- 408 kubectl create -f cm-test-pod.yaml
- 409 kubectl logs po/test1
- 410 vim cm-test-pod.yaml
- 411 kubectl create deploy -h | less
- 412 kubectl create deploy newsql --image=mysql
- 413 kubectl get all --selector app=newsql
- 414 kubectl describe pod newsql-7454bf699d-h24gn
- 415 kubectl logs newsql-7454bf699d-h24gn
- 416 kubectl create cm newsqlvars --from-literal=MYSQL_ROOT_PASSWORD=password
- 417 kubectl describe cm newsqlvars
- 418 kubectl set -h | less
- 419 kubectl set env -h | less
- 420 #kubectl set env --from=configmap/myconfigmap --prefix=MYSQL_ deployment/myapp
- 421 kubectl get cm
- 422 kubectl get deploy
- 423 kubectl set env --from=configmap/newsqlvars deployment/newsql
- 424 kubectl get all --selector app=newsql
- 425 history
- 426 cat nginx-custom-config.conf
- 427 kubectl create cm nginx-cm --from-file nginx-custom-config.conf
- 428 kubectl describe cm nginx-cm
- 429 vim nginx-cm.yml
- 430 kubectl create -f nginx-cm.yml
- 431 kubectl exec -it nginx-cm /bin/bash
- 432 kubectl set volume -h | less
- 433 kubectl describe pods test1
- 434 kubectl create secret -h | less
- 435 kubectl create secret generic -h | less
- 436 #kubectl create secret generic my-secret --from-file=ssh-private-key=/home/student/.ssh/id_rsa --from-literal=passphrase=password
- 437 ssh-keygen
- 438 kubectl create secret generic my-secret --from-file=ssh-private-key=/home/student/.ssh/id_rsa --from-literal=passphrase=password
- 439 kubectl describe secrets my-secret
- 440 kubectl get secret my-secret -o yaml
- 441 echo cGFzc3dvcmQ= | base64 -d
- 442 kubectl create secret generic secretstuff --from-literal=password=password --from-literal=user=linda
- 443 less pod-secret.yaml
- 444 kubectl create -f pod-secret.yaml
- 445 kubectl describe pod secretbox2
- 446 kubectl exec -it secretbox2 -- /bin/sh
- 447 kubectl create secret generic mysql --from-literal=password=root
- 448 kubectl get secrets mysql -o yaml
- 449 vim pod-secret-as-var.yaml
- 450 kubectl create -f pod-secret-as-var.yaml
- 451 kubectl get pods
- 452 kubectl exec -it mymysql -- env
- 453 ./countdown 13
- 454 vim mypod.yaml
- 455 kubectl create -f mypod.yaml
- 456 kubectl get pods mypod -o yaml | less
- 457 kubectl exec -it mypod -- sh
- 458 vim mysa.yaml
- 459 kubectl create -f mysa.yaml
- 460 vim list-pods.yaml
- 461 kubectl create -f list-pods.yaml
- 462 vim list-pods-mysa-binding.yaml
- 463 kubectl create -f list-pods-mysa-binding.yaml
- 464 kubectl set -h | less
- 465 vim mysapod.yaml
- 466 kubectl create -f mysapod.yaml
- 467 kubectl exec -it mysapod -- sh
- 468 kubectl delete -f cm-test-pod.yaml
- 469 kubectl get cm
- 470 vim cm-test-pod.yaml
- 471 kubectl delete cm variables
- 472 vim cm-test-pod.yaml
- 473 kubectl create cm variables --from-file=variables
- 474 kubectl create -f cm-test-pod.yaml
- 475 kubectl get pods
- 476 kubectl describe pods test1
- 477 kubectl logs test1
- 478 kubectl edit pods test1
- 479 kubectl delete -f cm-test-pod.yaml
- 480 vim cm-test-pod.yaml
- 481 kubectl create -f cm-test-pod.yaml
- 482 kubectl get pods
- 483 kubectl get endpoints
- 484 ./countdown 12
- 485 vim busybox-ready.yaml
- 486 kubectl create -f busybox-ready.yaml
- 487 kubectl get pods
- 488 kubectl describe pods busybox-ready
- 489 kubectl exec -it busybox-ready -- /bin/sh
- 490 kubectl get pods
- 491 vim nginx-probes.yaml
- 492 kubectl create -f nginx-probes.yaml
- 493 kubectl get pods nginx-probes
- 494 wget https://get.helm.sh/helm-v3.0.0-linux-amd64.tar.gz
- 495 ls
- 496 tar xvf helm-v3.0.0-linux-amd64.tar.gz
- 497 sudo cp linux-amd64/helm /usr/local/bin/
- 498 helm search hub database
- 499 helm repo add myrepo https://kubernetes-charts.storage.googleapis.com
- 500 helm repo update
- 501 helm repo add myrepo https://kubernetes-charts.storage.googleapis.io
- 502 helm repo add stable https://charts.helm.sh/stable
- 503 helm repo update
- 504 helm list
- 505 helm install example-mysql stable/mysql
- 506 helm list
- 507 ls
- 508 kubectl get all | grep mysql
- 509 git clone https://github.com/sandervanvugt/devopsinfourweeks
- 510 cd devopsinfourweeks/
- 511 ls
- 512 cd my-ghost-app/
- 513 ls
- 514 cat Chart.yaml
- 515 cat templates/deployment.yaml
- 516 cat values.yaml
- 517 helm templates --debug .
- 518 helm template --debug .
- 519 helm install -f ./values.yaml my-ghost-app ./
- 520 kubectl get all | grep ghost
- 521 kubectl api-resources | grep templa
- 522 history
Add Comment
Please, Sign In to add comment