Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### CONTROL HOST
- student@control:~/rook/deploy/examples$ history
- 1 sudo vim /etc/hosts
- 2 cat /etc/hosts
- 3 cat /etc/os-release
- 4 free -m
- 5 lscpu
- 6 lsblk
- 7 sudo nano /etc/fstab
- 8 sudo swapoff -a
- 9 free
- 10 git clone https://github.com/sandervanvugt/cka
- 11 cd cka
- 12 history
- 13 ls
- 14 vim setup-container.sh
- 15 ./setup-container.sh
- 16 ls
- 17 ./setup-kubetools.sh
- 18 vim setup-kubetools
- 19 vim setup-kubetools.sh
- 20 sudo setup-kubetools.sh
- 21 sudo ./setup-kubetools.sh
- 22 history
- 23 sudo -i
- 24 mkdir -p $HOME/.kube
- 25 sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
- 26 sudo chown $(id -u):$(id -g) $HOME/.kube/config
- 27 kubectl get all
- 28 kubectl apply -f https://docs.calico.org/manifests/calico.yaml
- 29 kubectl apply -f https://docs.projectcalico.org/manifests/calico.yaml
- 30 kubectl get nodes
- 31 history
- 32 ./counter.sh 15
- 33 kubectl get all
- 34 source <(kubectl completion bash)
- 35 kubectl completion -h | less
- 36 kubectl create deployment myfirstapp --image=nginx --replicas=3
- 37 kubectl get all
- 38 history
- 39 kubectl get all
- 40 kubectl delete pod myfirstapp-ff65c646c-xshns
- 41 kubectl get all
- 42 kubectl run lonelypod --image=nginx
- 43 kubectl get all
- 44 kubectl delete pod lonelypod
- 45 kubectl get all
- 46 history
- 47 less ~/.kube/config
- 48 ip a
- 49 history
- 50 sudo poweroff
- 51 kubectl get all
- 52 kubectl get nodes
- 53 kubectl get pods -o wide
- 54 kubectl create deploy mynginx --image=nginx --replicas=3
- 55 kubectl get all
- 56 kubectl get all --show-labels
- 57 kubectl get all --selector app=mynginx
- 58 source <(kubectl completion bash)
- 59 kubectl delete pod mynginx-6b78685d4d-p2tml
- 60 kubectl get all --selector app=mynginx
- 61 kubectl scale deployment mynginx --replicas=5
- 62 kubectl get all --selector app=mynginx
- 63 kubectl scale deployment mynginx --replicas=0
- 64 kubectl get all --selector app=mynginx
- 65 history
- 66 kubectl set -h | less
- 67 kubectl create deploy oldnginx --image=nginx:1.14 --replicas=3
- 68 kubectl get all --selector app=oldnginx
- 69 kubectl set image deploy oldnginx nginx=nginx:1.17
- 70 kubectl get all --selector app=oldnginx
- 71 kubectl edit deployments.apps oldnginx
- 72 kubectl get all --selector app=oldnginx
- 73 kubectl rollout history
- 74 kubectl rollout history deployment oldnginx
- 75 kubectl create deploy lnginx --image=nginx --replicas=3
- 76 kubectl get all --show-labels
- 77 kubectl get all --selector app=lnginx
- 78 kubectl label pod lnginx-5dbd4745fd-bm9nr app-
- 79 kubectl get all
- 80 kubectl get daemonset
- 81 kubectl get daemonset -A
- 82 kubectl get pods -n kube-system -o wide
- 83 kubectl create deploy daemondemo --image=nginx --dry-run=client -o yaml > daemondemo.yaml
- 84 vim daemondemo.yaml
- 85 kubectl create -f daemondemo.yaml
- 86 kubectl get all --show-labels
- 87 kubectl get all --selector app=daemondemo
- 88 kubectl get all --selector app=daemondemo -o wide
- 89 kubectl describe nodes control | less
- 90 kubectl get ds -A
- 91 kubectl get ds -n kube-system calico-node -o yaml | less
- 92 ls
- 93 cka/counter.sh 13
- 94 kubectl create deploy nginxsvc --image=nginx --replicas=3
- 95 kubectl get all --selector app=nginxsvc
- 96 kubectl expose deployment nginxsvc --port=80
- 97 kubectl get all --selector app=nginxsvc
- 98 kubectl describe svc nginxsvc
- 99 kubectl get pods -o wide
- 100 curl 10.110.153.199
- 101 ip a
- 102 lsblk
- 103 cat /etc/hosts
- 104 ip a
- 105 git clone https://github.com/rook/rook
- 106 cd rook/deploy/examples/
- 107 vim common.yaml
- 108 kubectl api-resources | wc
- 109 vim operator.yaml
- 110 ls
- 111 vim cluster.yaml
- 112 kubectl create -f crds.yaml -f common.yaml -f operator.yaml
- 113 kubectl get ns
- 114 kubectl -n rook-ceph get pods
- 115 kubectl create -f cluster.yaml
- 116 kubectl api-resources | wc
- 117 kubectl -n rook-ceph get pods
- 118 ls
- 119 cd
- 120 git clone https://github.com/sandervanvugt/kube3weeks
- 121 cd kube3weeks/
- 122 ls
- 123 cd -
- 124 cd ~/rook/deploy/examples/
- 125 ls
- 126 kubectl -n rook-ceph get pods
- 127 kubectl create -f storageclass-bucket-retain.yaml
- 128 kubectl create -f toolbox.yaml
- 129 kubectl -n rook-ceph get pods
- 130 kubectl -n rook-ceph exec -it rook-ceph-tools-d6d7c985c-94n5t -- bash
- 131 kubectl -n rook-ceph exec -it rook-ceph-tools-d6d7c985c-94n5t -- ceph status
- 132 kubectl -n rook-ceph get pods
- 133 kubectl get pv,pvc
- 134 ls
- 135 vim wordpress.yaml
- 136 vim mysql.yaml
- 137 kubectl get storageclass
- 138 kubectl -n rook-ceph exec -it rook-ceph-tools-d6d7c985c-94n5t -- ceph status
- 139 kubectl -n rook-ceph get pods
- 140 top
- 141 kubectl -n rook-ceph get pods
- 142 kubectl create -f wordpress.yaml
- 143 kubectl get pvc
- 144 kubectl -n rook-ceph get pods
- 145 kubectl describe storageclass
- 146 kubectl get pvc
- 147 vim wordpress.yaml
- 148 kubectl -n rook-ceph get pods
- 149 kubectl -n rook-ceph exec -it rook-ceph-tools-d6d7c985c-94n5t -- ceph status
- 150 kubectl get svc -n rook-ceph
- 151 vim cluster.yaml
- 152 kubectl explain cephCluster.spec.storage.config
- 153 kubectl get svc -n rook-ceph
- 154 kubectl -n rook-ceph exec -it rook-ceph-tools-d6d7c985c-94n5t -- ceph status
- 155 kubectl -n rook-ceph get pods
- 156 history
- ##### WORKSTATION
- student@student-virtual-machine:~/kube3weeks$ history
- 1 cd cka
- 2 git clone https://github.com/sandervanvugt/cka
- 3 sudo apt install git
- 4 cd cka
- 5 git clone https://github.com/sandervanvugt/cka
- 6 cka/counter.sh 15
- 7 ssh [email protected]
- 8 ssh [email protected]
- 9 ssh [email protected]
- 10 ssh [email protected]
- 11 ssh [email protected]
- 12 ssh [email protected]
- 13 ssh [email protected]
- 14 ssh [email protected]
- 15 ssh [email protected]
- 16 kubectl get all
- 17 ssh [email protected]
- 18 ssh [email protected]
- 19 sudo poweroff
- 20 ssh [email protected]
- 21 ssh [email protected]
- 22 cka/counter.sh 12
- 23 git clone https://github.com/sandervanvugt/cka
- 24 cd cka
- 25 ls
- 26 sudo ./setup-kubetools.sh
- 27 kubectl get all
- 28 cd
- 29 mkdir .kube
- 30 scp 192.168.29.153:~.kube/config .kube
- 31 scp 192.168.29.153:~/.kube/config .kube
- 32 ls -l .kube/
- 33 kubectl get all
- 34 history
- 35 kubectl api-resources | less
- 36 kubectl explain pods.spec | less
- 37 kubectl explain deployment.spec | less
- 38 kubectl api-resources
- 39 kubectl explain ippools.spec
- 40 history
- 41 kubectl get pods
- 42 source <(kubectl completion bash)
- 43 kubectl get pods myfirstapp-ff65c646c-2pmkn -o yaml | less
- 44 kubectl run mynginx --image=nginx --dry-run=client -o yaml > mynginx.yaml
- 45 vim mynginx.yaml
- 46 sudo apt install vim
- 47 vim mynginx.yaml
- 48 kubectl explain pods.spec | less
- 49 vim mynginx.yaml
- 50 kubectl create -f mynginx.yaml
- 51 kubectl get pods
- 52 kubectl exec -it mynginx bash
- 53 kubectl exec -it mynginx -- sh
- 54 kubectl get pods
- 55 kubectl delete pod mynginx
- 56 kubectl exec -it myfirstapp-ff65c646c-2pmkn -- sh
- 57 kubectl get pods
- 58 kubectl get pods -A
- 59 git clone https://github.com/sandervanvugt/kube3weeks
- 60 cd kube3weeks/
- 61 vim multicontainer.yaml
- 62 kubectl create -f multicontainer.yaml
- 63 kubectl get pods
- 64 vim initcontainer.yaml
- 65 kubectl create -f initcontainer.yaml
- 66 kubectl get pods
- 67 kubectl create ns secret
- 68 kubectl run secret --image=nginx -n secret
- 69 kubectl get pods
- 70 kubectl get pods -n secret
- 71 kubectl get pods -n kube-system
- 72 history
- 73 ssh [email protected]
- 74 ssh [email protected]
- 75 sudo poweroff
- 76 ssh [email protected]
- 77 ssh [email protected]
- 78 ssh [email protected]
- 79 ssh [email protected]
- 80 ping 192.168.29.141
- 81 sudo apt install nmap
- 82 sudo poweroff
- 83 kubectl get all
- 84 curl 10.110.153.199
- 85 kubectl edit svc nginxsvc
- 86 curl 10.110.153.199:32000
- 87 cat /etc/hosts
- 88 curl 192.168.29.153:32000
- 89 kubectl get svc
- 90 ls
- 91 cd cka
- 92 ./counter.sh 12
- 93 kubectl get pods,svc -n kube-system
- 94 kubectl get pods
- 95 source <(kubectl completion bash)
- 96 kubectl exec -it oldnginx-696c559d96-jlwmx -- cat /etc/resolv.conf
- 97 kubectl get svc
- 98 kubectl exec -it oldnginx-696c559d96-jlwmx -- nslookup nginxsvc
- 99 ls *rbac*
- 100 kubectl explain pod.spec.volumes | less
- 101 ls
- 102 cd ..
- 103 ls
- 104 cd kube3weeks/
- 105 ls
- 106 vim morevolumes.yaml
- 107 kubectl create -f morevolumes.yaml
- 108 kubectl get pods
- 109 kubectl exec -it morevol2 -c centos1 -- touch /centos1/centfile
- 110 kubectl exec -it morevol2 -c centos2 -- ls /centos2/
- 111 vim morevolumes.yaml
- 112 lsblk
- 113 history
Advertisement
Add Comment
Please, Sign In to add comment