Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- student@student-virtual-machine:~$ history
- 1 minikube start --vm-driver=docker
- 2 ./countdown 15
- 3 minikube status
- 4 kubectl get all
- 5 kubectl -h | less
- 6 kubectl completion -h | less
- 7 source <(kubectl completion bash)
- 8 kubectl create -h | less
- 9 kubectl create deploy -h | less
- 10 kubectl create deployment myfirstapp --image=quay.io/bitnami/nginx --replicas=3
- 11 kubectl get all
- 12 ./countdown 12
- 13 history
- 14 kubectl get all
- 15 kubectl describe pod myfirstapp-868c68b945-2zd45
- 16 kubectl describe pod myfirstapp-868c68b945-2zd45 | less
- 17 kubectl get all
- 18 kubectl delete pod myfirstapp-868c68b945-2zd45
- 19 kubectl get all
- 20 kubectl run lonelypod --image=nginx
- 21 kubectl get all
- 22 kubectl delete pod lonelypod
- 23 kubectl get all
- 24 kubectl -h | less
- 25 kubectl delete -h | less
- 26 kubectl get all
- 27 kubectl delete deploy myfirstapp
- 28 kubectl get all
- 29 kubectl api-resources | less
- 30 kubectl explain deployment
- 31 kubectl explain deployment.spec
- 32 kubectl explain deployment.spec.template
- 33 kubectl explain deployment.spec.template.spec | less
- 34 cd
- 35 cd kube3weeks/
- 36 ls
- 37 vim multicontainer.yaml
- 38 kubectl explain pod
- 39 vim multicontainer.yaml
- 40 kubectl explain deployment.spec.template.spec.containers | less
- 41 kubectl create deployment myfirstapp --image=quay.io/bitnami/nginx --replicas=3 --dry-run=client -o yaml
- 42 kubectl create deployment myfirstapp --image=quay.io/bitnami/nginx --replicas=3 --dry-run=client -o yaml > myfirstapp.yaml
- 43 vim myfirstapp.yaml
- 44 kubectl create -f myfirstapp.yaml
- 45 kubectl get all
- 46 history
- 47 exit
- 48 ls
- 49 sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
- 50 curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
- 51 sudo apt-key fingerprint 0EBFCD88
- 52 sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
- 53 sudo apt-get update
- 54 sudo apt-get docker-ce docker-ce-cli containerd.io
- 55 sudo apt-get install docker-ce docker-ce-cli containerd.io
- 56 history
- 57 sudo docker run hello-world
- 58 git clone https://github.com/sandervanvugt/kube3weeks
- 59 cd kube3weeks/
- 60 ls
- 61 ./countdown 15
- 62 docker run nginx
- 63 sudo usermod -aG docker student
- 64 newgrp docker
- 65 docker run nginx
- 66 docker run -d nginx
- 67 docker run nginx -d
- 68 docker run busybox
- 69 docker ps
- 70 docker ps -a
- 71 docker run -it busybox
- 72 docker ps
- 73 docker ps -a
- 74 docker run -it nginx sh
- 75 docker ps
- 76 docker stop adoring_banzai
- 77 docker ps
- 78 docker images
- 79 docker run ubi8/ubi
- 80 docker run fedora
- 81 docker images
- 82 docker rmi hello-world:latest
- 83 docker ps -a
- 84 docker rm hungry_gauss
- 85 docker rmi hello-world:latest
- 86 ls
- 87 cd dockerfile/
- 88 vim Dockerfile
- 89 sudo apt install vim
- 90 vim Dockerfile
- 91 docker build -t mymap .
- 92 vim Dockerfile
- 93 docker build -t mymap .
- 94 docker images
- 95 docker run mymap
- 96 docker run -it map bash
- 97 vim Dockerfile
- 98 docker build -t yourmap .
- 99 docker images
- 100 docker inspect yourmap | less
- 101 docker inspect mymap | less
- 102 docker run yourmap
- 103 docker run -it yourmap bash
- 104 cd ..
- 105 ls
- 106 ./minikube-docker-setup.sh
- 107 history
- 108 minikube staus
- 109 minikube status
- 110 kubectl create deploy busybox --dry-run=client -o yaml -- sleep 3600
- 111 kubectl create deploy busybox --image=busybox --dry-run=client -o yaml -- sleep 3600
- 112 sudo poweroff
- 113 history
- 114 kubectl api-resources | less
- 115 minikube start
- 116 kubectl api-resources | less
- 117 kubectl explain ippools
- 118 kubectl explain ippools.spec
- 119 kubectl explain pods.spec
- 120 kubectl explain pods.spec | less
- 121 kubectl explain pods.spec.containers
- 122 kubectl explain pods.spec.containers.volumeDevices
- 123 kubectl explain pods.spec.containers.volumeDevices.devicePath
- 124 kubectl explain -h | less
- 125 kubectl explain --recursive pods
- 126 kubectl explain --recursive pods | less
- 127 history | grep dry-run
- 128 ls
- 129 cd kube3weeks/
- 130 vim myfirstapp.yaml
- 131 kubectl api-resources
- 132 source <(kubectl completion bash)
- 133 vim multicontainer.yaml
- 134 kubectl create -f multicontainer.yaml
- 135 kubectl get pods
- 136 ls
- 137 vim initcontainer.yaml
- 138 kubectl create -f initcontainer.yaml
- 139 kubectl get pods
- 140 kubectl describe pod init-demo
- 141 kubectl get pods
- 142 vim initcontainer.yaml
- 143 kubectl create -f initcontainer.yaml
- 144 vim initcontainer.yaml
- 145 kubectl create -f initcontainer.yaml
- 146 kubectl get pods
- 147 kubectl describe pod init-demo2
- 148 vim initcontainer.yaml
- 149 kubectl create -f initcontainer.yaml
- 150 kubectl get pods
- 151 kubectl delete pod init-demo2
- 152 kubectl delete pod init-demo3
- 153 kubectl run mynginx --image=nginx --dry-run=client -o yaml > mynginxx.yaml
- 154 vim mynginxx.yaml
- 155 kubectl explain pods.spec
- 156 vim mynginxx.yaml
- 157 kubectl create -f mynginxx.yaml
- 158 vim mynginxx.yaml
- 159 kubectl apply -f mynginxx.yaml
- 160 kubectl get pods
- 161 kubectl delete -f mynginxx.yaml
- 162 kubectl get ns
- 163 kubectl get pods -n kube-system
- 164 minikube addons --list
- 165 minikube addons --help
- 166 minikube addons list
- 167 minikube dashboard
- 168 kubectl get ns
- 169 kubectl get all -n kubernetes-dashboard
- 170 kubectl create ns mynamespace
- 171 kubectl get ns
- 172 kubectl run mywhatever --image=nginx -n mynamespace
- 173 kubectl get pods
- 174 kubectl get pods -A
- 175 minikube ssh
- 176 ./countdown 12
- 177 kubectl api-resources | less
- 178 kubectl create deploy friginx --image=nginx --replicas=3
- 179 kubectl get all
- 180 kubectl get deployments.apps friginx -o yaml | less
- 181 kubectl get replicasets.apps friginx-f76f68bfc -o yaml | less
- 182 kubectl delete rs friginx-f76f68bfc
- 183 kubectl get all
- 184 kubectl delete pod friginx-f76f68bfc-6wl8w
- 185 kubectl get all
- 186 kubectl scale deployment friginx --replicas=0
- 187 kubectl get all
- 188 kubectl scale deployment friginx --replicas=3
- 189 kubectl get all
- 190 vim ds.yaml
- 191 kubectl create -h | less
- 192 vim ds.yaml
- 193 kubectl create -f ds.yaml
- 194 kubectl get all
- 195 kubectl get ds
- 196 vim ds.yaml
- 197 kubectl get all -n kube-system
- 198 cd ..
- 199 git clone https://github.com/sandervanvugt/cka
- 200 ls
- 201 cd cka
- 202 ls
- 203 kubectl get all -n kube-system
- 204 kubectl explain deployment.spec
- 205 kubectl explain deployment.spec.strategy
- 206 kubectl explain deployment.spec.strategy.type
- 207 kubectl explain deployment.spec.strategy.rollingUpdate
- 208 kubectl set -h | less
- 209 kubectl set env -h
- 210 kubectl create deploy oldnginx --image=nginx:1.7 --replicas=3
- 211 kubectl get all
- 212 kubectl get all --selector app=oldnginx
- 213 kubectl set image deploy nginx=nginx:latest; kubectl get all --selector app=oldnginx
- 214 kubectl set image deploy oldnginx nginx:latest; kubectl get all --selector app=oldnginx
- 215 kubectl set image --help | less
- 216 kubectl set image deploy oldnginx nginx=nginx:latest; kubectl get all --selector app=oldnginx
- 217 kubectl get all --selector app=oldnginx
- 218 kubectl edit deploy oldnginx
- 219 kubectl get pods
- 220 kubectl get pods oldnginx-696c559d96-92r4p -o yaml
- 221 kubectl create deploy astest --image=nginx --replicas=3 --dry-run=client -o yaml > astest.yaml
- 222 vim astest.yaml
- 223 kubectl apply -f astest.yaml
- 224 kubectl get all
- 225 vim astest.yaml
- 226 kubectl set image -h | less
- 227 kubectl delete -f astest.yaml
- 228 vim astest.yaml
- 229 kubectl set image -h | less
- 230 #kubectl set image deployment/nginx busybox=busybox nginx=nginx:1.9.1
- 231 kubectl set image deployment/astest sleepy=busybox webby=nginx:1.9.1
- 232 kubectl apply -f astest.yaml
- 233 kubectl set image deployment/astest sleepy=busybox webby=nginx:1.9.1
- 234 kubectl rollout -h
- 235 kubectl rollout history deployment astest
- 236 kubectl rollout status deployment astest 2
- 237 kubectl rollout status deployment astest
- 238 kubectl rollout undo deployment astest
- 239 kubectl rollout status -h
- 240 kubectl rollout status deployment astest --revision=2
- 241 kubectl rollout status deployment astest --revision=3
- 242 kubectl get pods
- 243 kubectl set env -h | less
- 244 kubectl set env pod multicontainer cow=yes
- 245 kubectl set env -h | less
- 246 kubectl get deploy
- 247 kubectl rollout status deploy astest
- 248 kubectl rollout history deployment astest
- 249 kubectl rollout history deployment astest --revision=3
- 250 kubectl rollout history deployment astest --revision=2
- 251 kubectl rollout undo deployment astest --to-revision=2
- 252 history
- 253 kubectl get deploy
- 254 kubectl get deployments.apps friginx -o yaml | less
- 255 kubectl get all --show-labels
- 256 kubectl get all --show-labels --selector app=frigninx
- 257 kubectl get all --show-labels --selector app=frignix
- 258 kubectl get all --show-labels
- 259 kubectl get all --show-labels --selector app=friginx
- 260 kubectl label pod friginx-f76f68bfc-ff4cf app-
- 261 kubectl get all
- 262 kubectl get all --show-labels
- 263 ./counter.sh 13
- 264 kubectl get deploy
- 265 kubectl get pods -o wide
- 266 kubectl expose deployment friginx --port=80
- 267 kubectl describe deployments.apps friginx
- 268 kubectl describe service friginx
- 269 kubectl get endpoints
- 270 curl 10.102.28.29
- 271 minikube ssh
- 272 kubectl edit svc friginx
- 273 kubectl get svc
- 274 minikube ip
- 275 curl http://192.168.49.2:32175
- 276 kubectl describe svc friginx
- 277 minikube addon list
- 278 minikube addons list
- 279 minikube addons enable ingress
- 280 kubectl get ns
- 281 kubectl get all -n ingress-nginx
- 282 kubectl get svc fringinx
- 283 kubectl get svc friginx
- 284 kubectl create ingress friginx-ingress --rule="/=friginx:80" --rule="/hello=newdep:8080"
- 285 kubectl get ingress
- 286 sudo vim /etc/hosts
- 287 kubectl get ingress
- 288 curl friginx.info
- 289 ip a
- 290 minikube ip
- 291 sudo vim /etc/hosts
- 292 curl friginx.info
- 293 kubectl describe ingress friginx-ingress
- 294 kubectl create deploy newdep --image=gcr.io/google-sampels/hello-app:2.0
- 295 kubectl expose deploy newdep --port=8080
- 296 kubectl describe ingress friginx-ingress
- 297 kubectl delete deploy newdep
- 298 kubectl create deploy newdep --image=gcr.io/google-samples/hello-app:2.0
- 299 kubectl describe ingress friginx-ingress
- 300 curl nginxsvc.info/hello
- 301 kubectl get svc
- 302 curl friginx.info/hello
- 303 minikube ip
- 304 curl 10.107.229.254:8080
- 305 minikube ssh
- 306 ./counter.sh 13
- 307 kubectl describe ingress friginx-ingress
- 308 ssh 192.168.29.2
- 309 kubectl port-forward -h | less
- 310 kubectl explain pod.spec.volumes | less
- 311 kubectl explain pvc.spec
- 312 kubectl explain pvc.spec | less
- 313 cd ../kube3weeks/
- 314 ls
- 315 vim pv.yaml
- 316 kubectl create -f pv.yaml
- 317 kubectl get pv
- 318 vim pvc.yaml
- 319 kubectl create -f pvc.yaml
- 320 kubectl get pv,pvc
- 321 kubectl get storageclass
- 322 kubectl describe pv pvc-de9bd38c-38ac-407d-9338-caadc591650b
- 323 vim pv-pod.yaml
- 324 kubectl create -f pv-pod.yaml
- 325 vim pv-pod.yaml
- 326 kubectl get pods
- 327 kubectl exec -it pv-pod -- touch /usr/share/nginx/html/FRIDAY
- 328 minikube ssh
- 329 vim pv-pvc-pod.yaml
- 330 kubectl create -f pv-pvc-pod.yaml
- 331 kubectl create ns myvol
- 332 kubectl delete -f pv-pvc-pod.yaml
- 333 kubectl create -f pv-pvc-pod.yaml
- 334 kubectl get pvc,pv -n myvol
- 335 vim pv-pvc-pod.yaml
- 336 minikube node add
- 337 minikube node list
- 338 kubectl get all -n kube-system
- 339 kubectl get all -n kube-system -o wide
- 340 history
- 341 sudo poweroff
- 342 minikube start
- 343 minikube status
- 344 minikube addons list
- 345 minikube addons enable storage-provisioner-gluster
- 346 minikube addons list
- 347 kubectl get ns
- 348 kubectl get all -n storage-gluster
- 349 kubectl logs -n storage-gluster glusterfs-c9thl
- 350 kubectl -n storage-gluster describe daemonset glusterfs
- 351 kubectl get all -n storage-gluster
- 352 git clone https://github.com/sandervanvugt/ckad
- 353 cd ckad
- 354 ls
- 355 ip a
- 356 minikube status
- 357 cd ..
- 358 vim glusterfs-endpoints.yaml
- 359 kubectl create -f glusterfs-endpoints.yaml
- 360 kubectl get endpoints
- 361 vim glusterfs-service.yaml
- 362 kubectl cretae -f glusterfs-service.yaml
- 363 kubectl create -f glusterfs-service.yaml
- 364 vim glusterfs-pod.yaml
- 365 kubectl create -f glusterfs-pod.yaml
- 366 kubectl get pods
- 367 kubectl exec glusterfs -- mount
- 368 kubectl exec glusterpod -- mount
- 369 kubectl get pods
- 370 kubectl describe pod glusterpod
- 371 apt cache search glusterfs
- 372 apt-cache search glusterfs
- 373 apt install glusterfs-client
- 374 sudo apt install glusterfs-client
- 375 history
- 376 ip a
- 377 sudo apt-get download glusterfs-client
- 378 minikube addons list
- 379 ls -lrt
- 380 ip a
- 381 sudo apt install openssh-server
- 382 apt list --installed
- 383 apt list --installed | grep gluster
- 384 sudo find / -name "glusterfs*"
- 385 ip a | grep 29
- 386 kubectl get pods
- 387 kubectl delete pod glusterpod
- 388 ls
- 389 kubectl create -f glusterfs-pod.yaml
- 390 kubectl get pods
- 391 ls
- 392 vim glusterfs-endpoints.yaml
- 393 kubectl get endpoints
- 394 vim glusterfs-service.yaml
- 395 kubectl get svc
- 396 kubectl describe glusterfs-cluster
- 397 kubectl describe svc glusterfs-cluster
- 398 vim glusterfs-pod.yaml
- 399 source <(kubectl completion bash)
- 400 kubectl describe pod glusterpod
- 401 ls
- 402 cd kube3weeks/
- 403 ls
- 404 vim varsfile
- 405 kubectl create cm mydbvars --from-env-file=varsfile
- 406 kubectl describe cm mydbvars
- 407 kubectl create deploy mydb --image=mariadb --replicas=3
- 408 kubectl get pods
- 409 kubectl describe pods mydb-fb7ff4d78-7vx8b
- 410 kubectl logs mydb-fb7ff4d78-glgxc
- 411 kubectl set env deploy mydb --from=configmap/mydbvars
- 412 kubectl get all
- 413 kubectl get deployments.apps mydb -o yaml | less
- 414 echo "hello world" > index.html
- 415 kubectl create cm myindex --from-file=index.html
- 416 kubectl describe cm myindex
- 417 kubectl create deployment myweb --image=nginx
- 418 kubectl edit deploy myweb
- 419 kubectl get all
- 420 kubectl exec -it myweb-ff8bf9988-9td42 -- ls -l /usr/share/nginx/html/
- 421 kubectl get pods glusterpod -o yaml | less
- 422 kubectl create secret -h | less
- 423 kubectl create secret generic -h | less
- 424 kubectl create secret tls -h | less
- 425 kubectl create secret docker-registry -h | less
- 426 vim kube3w-fri-lab-1.txt
- 427 sudo apt-get download glusterfs-common
- 428 ls
- 429 mv glusterfs-common_7.2-2build1_amd64.deb ..
- 430 cd
- 431 kubectl create deploy anotherdb --image=mariadb
- 432 kubectl create secret generic mysqlroto --from-literal=MYSQL_ROOT_PASSWORD=password
- 433 kubectl get all
- 434 kubectl set env deploy anotherdb --from=secret/mysqlroto
- 435 kubectl get all
- 436 kubectl get secret
- 437 kubectl describe secret mysqlroto
- 438 kubectl get secret mysqlroto -o yaml
- 439 echo cGFzc3dvcmQ= | base64 -d
- 440 kubectl exec -it anotherdb-55bdc4f7b-l729f -- env
- 441 lvs
- 442 mount
- 443 mount | grep '^/'
- 444 df -h
- 445 history
- ######
- 212 minikube start --vm-driver=docker
- 213 minikube addons list
- 214 minikube addons enable storage-provisioner-gluster
- 215 kubectl api-resources | grep storage
- 216 sudo -i
- 217 minikube ssh
- 218 minikube addons enable storage-provisioner-gluster
- 219 minikube ssh
- 220 minikube addons enable storage-provisioner-gluster
- 221 minikube statu
- 222 minikube status
- 223 history
- 224 kubectl get all
- 225 cd ../Downloads/
- 226 ls
- 227 tar xvf helm-v3.8.0-linux-amd64.tar.gz
- 228 sudo mv linux-amd64/helm /usr/local/bin/
- 229 helm version
- 230 cd
- 231 helm repo add k8s-dashboard https://kubernetes.github.io/dashboard
- 232 helm install my-kubernetes-dashboard k8s-dashboard/kubernetes-dashboard --version 5.2.0
- 233 helm repo add bitnami https://charts.bitnami.com/bitnami
- 234 helm repo list
- 235 helm search repo bitnami
- 236 helm repo update
- 237 helm list
- 238 kubectl get all
- 239 helm install bitnami/mysql --generate-name
- 240 kubectl get all
- 241 source <(kubectl completion bash)
- 242 kubectl describe pod mysql-1645196021-0
- 243 kubectl get pv
- 244 kubectl get storageclass
- 245 kubectl describe pvc data-mysql-1645196021-0
- 246 helm show chart bitnami/mysql
- 247 helm show all bitnami/mysql
- 248 helm show all bitnami/mysql | less
- 249 helm list
- 250 kubectl get all
- 251 helm status mysql-1645196021
- 252 helm show values bitnami/nginx
- 253 helm pull bitnami/nginx
- 254 ls
- 255 tar xvf nginx-9.7.6.tgz
- 256 vim nginx/values.yaml
- 257 helm template --debug nginx
- 258 helm install -f nginx/values.yaml mynginx nginx/
- 259 ls
- 260 kube3weeks/countdown 12
- 261 cd kube3weeks/
- 262 vim crd-object.yaml
- 263 kubectl api-resources | grep backup
- 264 kubectl create -f crd-object.yaml
- 265 kubectl api-resources | grep backup
- 266 vim crd-backup.yaml
- 267 kubectl create -f crd-backup.yaml
- 268 kubectl get backups
- 269 kubectl describe backups.stable.example.com mybackup
- 270 curl -sL https://github.com/operator-framework/operator-lifecycle-manager/releases/download/v0.20.0/install.sh | bash -s v0.20.0
- 271 kubectl api-resources | wc
- 272 kubectl create -f https://operatorhub.io/install/redis-operator.yaml
- 273 kubectl api-resources | wc
- 274 kubectl get csv -n operators
- 275 kubectl api-resources | grep scv
- 276 kubectl api-resources | grep csv
- 277 vim crd-object.yaml
- 278 minikube stop; minikube delete
- 279 minikube start --network-plugin=cni --extra-config=kubeadm.pod-network-cidr=10.10.0.0/16
- 280 kubectl create -f https://docs.projectcalico.org/manifests/tigera-operator.yaml
- 281 kubectl api-resources | wc
- 282 kubectl api-resources | grep tigera
- 283 kubectl get pods -n tigera-operator
- 284 wget https://docs.projectcalico.org/manifests/custom-resources.yaml
- 285 vim custom-resources.yaml
- 286 kubectl get installations.operator.tigera.io -o yaml
- 287 kubectl create -f custom-resources.yaml
- 288 kubectl get installations.operator.tigera.io -o yaml
- 289 kubectl get pods -n calico-system
- 290 kubectl create deploy old-nginx --image=nginx:1.14 --replicas=3 --dry-run=client -o yaml > ~/oldnginx.yaml
- 291 ls
- 292 cd ..
- 293 vim oldnginx.yaml
- 294 kubectl create -f oldnginx.yaml
- 295 kubectl get all
- 296 kubectl get all --show-labels
- 297 kubectl expose deploy old-nginx --name=oldnginx --port=80 --selector type=canary
- 298 kubectl describe svc oldnginx
- 299 kubectl edit svc oldnginx
- 300 kubectl get svc
- 301 kubectl get endpoints
- 302 curl $(minikube ip):32134
- 303 kubectl cp old-nginx-66bd7bb796-szv6q:/usr/share/nginx/html/index.html index.html
- 304 vim index.html
- 305 kubectl create cm canary --from-file=index.html
- 306 kubectl describe cm canary
- 307 cd kube3weeks/
- 308 vim canary.yaml
- 309 kubectl create -f canary.yaml
- 310 kubectl get all
- 311 kubectl describe svc
- 312 kubectl get endpoints
- 313 curl $(minikube ip):32134
- 314 kubectl get all
- 315 kubectl scale deploy new-nginx --replicas=3
- 316 kubectl get all
- 317 kubectl scale deployment old-nginx --replicas=0
- 318 kubectl get all
- 319 ./countdown 12
- 320 kubectl create deploy blue-nginx --image=nginx:1.14 --replicas=3
- 321 kubectl expose deploy blue-nginx --port=80 --name=bgnginx
- 322 kubectl get all
- 323 kubetl get deploy blue-nginx -o yaml > green-nginx.yaml
- 324 kubectl get deploy blue-nginx -o yaml > green-nginx.yaml
- 325 vim green-nginx.yaml
- 326 kubectl create -f green-nginx.yaml
- 327 kubectl get all
- 328 kubectl delete svc bgnginx; kubectl expose deploy green-nginx --port=80 --name=bgnginx
- 329 kubectl scale deployment blue-nginx --replicas=0
- 330 history
Add Comment
Please, Sign In to add comment