Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- student@control:~/kube3weeks$ history
- 1 exit
- 2 free -m
- 3 lscpu | less
- 4 df -h
- 5 git clone https://github.com/sandervanvugt/kube3weeks
- 6 cd kube3weeks/
- 7 ./countdown 15
- 8 ls -l *sh
- 9 cd ..
- 10 cd kube3weeks/
- 11 git pull
- 12 history
- 13 vim setup-container.sh
- 14 ./setup-container.sh
- 15 sudo systemctl status containerd
- 16 history
- 17 ./setup-kubetools.sh
- 18 sudo ./setup-kubetools.sh
- 19 sudo kubeadm init
- 20 mkdir -p $HOME/.kube
- 21 kubectl get all
- 22 ls cal*
- 23 kubectl apply -f calico.yaml
- 24 history
- 25 sudo systemctl status containerd
- 26 free -m
- 27 history
- 28 kubectl get all
- 29 source <(kubectl completion bash)
- 30 kubectl create deploy myfirstapp --image=nginx --replicas=3
- 31 kubectl get all
- 32 history
- 33 kubectl get all
- 34 kubectl delete pod myfirstapp-ff8c4b4d4-fkg4h
- 35 kubectl get all
- 36 history
- 37 kubectl run lonelypod --image=nginx
- 38 kubectl get all
- 39 kubectl delete pod lonelypod
- 40 kubectl get all
- 41 history
- 42 sudo systemctl status containerd
- 43 sudo systemctl status kubelet
- 44 kubectl get pods -n kube-system
- 45 kubectl get all
- 46 kubectl config view
- 47 kubectl get nodes
- 48 kubectl edit nodes control
- 49 kubectl get all
- 50 history | grep create depl
- 51 history | grep 'create depl'
- 52 kubectl api-resources | less
- 53 kubectl explain pod.spec
- 54 kubectl explain pod.spec | less
- 55 history
- 56 kubectl run mynginx --image=nginx --dry-run=client -o yaml
- 57 kubectl run mynginx --image=nginx --dry-run=client -o yaml > mynginx.yaml
- 58 kubectl explain pods.spec
- 59 kubectl explain pods.spec.volumes
- 60 kubectl apply -f mynginx.yaml
- 61 kubectl create -f mynginx.yaml
- 62 kubectl get pods
- 63 kubectl delete -f mynginx.yaml
- 64 ./countdown 13
- 65 vim multicontainer.yaml
- 66 kubectl apply -f multicontainer.yaml
- 67 kubectl get pods
- 68 vim initcontainer.yaml
- 69 kubectl create -f initcontainer.yaml
- 70 kubectl get pods
- 71 kubectl get ns
- 72 kubectl get pods
- 73 kubectl get pods -n kube-system
- 74 kubectl create ns myns
- 75 kubectl get ns
- 76 kubectl run mypod --image=nginx -n myns
- 77 kubectl get pods
- 78 kubectl get pods -n myns
- 79 kubectl get pods -A
- 80 history
- 81 kubectl config set-context --current namespace=myns
- 82 kubectl config set-context --current --namespace=myns
- 83 kubectl get pods
- 84 kubectl config set-context --current --namespace=default
- 85 kubectl get pdos
- 86 kubectl get pods
- 87 kubectl config view
- 88 history
- 89 kubectl run mydb --image=mariadb
- 90 kubectl get pods
- 91 kubectl describe pods mydb
- 92 kubectl get pods
- 93 kubectl describe pod mydb | less
- 94 history
- 95 kubectl logs mydb
- 96 kubectl delete pod mydb
- 97 kubectl run -h | less
- 98 kubectl run dbsdb --image=mariadb --env MARIADB_ROOT_PASSWORD=password
- 99 kubectl get pods
- 100 ls
- 101 cd ..
- 102 cd kube3weeks/
- 103 git pull
- 104 vim frontend-resources.yaml
- 105 kubectl apply -f frontend-resources.yaml
- 106 kubectl get pods
- 107 kubectl describe pod frontend
- 108 vim frontend-resources.yaml
- 109 kubectl delete pod frontend
- 110 kubectl apply -f frontend-resources.yaml
- 111 kubectl get pods
- 112 kubectl describe pod frontend
- 113 kubectl delete pod frontend
- 114 kubectl run busy --image=busybox
- 115 kubectl get pods
- 116 kubectl describe pod busy | less
- 117 kubectl logs busy
- 118 history
- 119 kubectl get pods -o wide
- 120 history
- 121 sudo poweroff
- 122 cd kube3weeks/
- 123 ./countdown 15
- 124 kubectl get all
- 125 source <(kubectl completion bash)
- 126 kubectl get deploy
- 127 kubectl delete deploy myfirstapp
- 128 kubectl create deploy mynginx --image=nginx --replicas=3
- 129 kubectl get all
- 130 kubectl delete pod mynginx-56766fcf49-88vjj
- 131 kubectl get all
- 132 kubectl scale deploy mynginx --replicas=4
- 133 kubectl get all
- 134 kubectl scale deploy mynginx --replicas=0
- 135 history
- 136 kubectl get all
- 137 kubectl edit deploy mynginx
- 138 kubectl create deploy oldnginx --image=nginx:1.14 --replicas=3
- 139 kubectl get all --selector app=oldnginx
- 140 kubectl set image deploy oldnginx nginx=nginx:latest
- 141 kubectl get all --selector app=oldnginx
- 142 kubectl rollout status
- 143 kubectl rollout status deployment oldnginx
- 144 kubectl rollout history deployment oldnginx
- 145 kubectl get all --selector app=oldnginx -o wide
- 146 kubectl edit deployments.apps oldnginx
- 147 kubectl get deploy oldnginx -o yaml
- 148 kubectl create deploy lnginx --image=nginx --replicas=3
- 149 kubectl get all --show-labels
- 150 kubectl get all --selector app=lnginx
- 151 kubectl label pod lnginx-54d4579875-2jwjt app-
- 152 kubectl get all
- 153 kubectl delete pod lnginx-54d4579875-2jwjt
- 154 kubectl get all
- 155 history
- 156 kubectl get deploy
- 157 kubectl delete deploy lnginx mynginx oldnginx
- 158 kubectl create deploy daemondemo --image=nginx --dry-run=client -o yaml > daemondemo.yaml
- 159 vim daemondemo.yaml
- 160 kubectl apply -f daemondemo.yaml
- 161 kubectl get daemonset
- 162 kubectl get all --selector app=daemondemo
- 163 kubectl get all --selector app=daemondemo -o wide
- 164 history
- 165 vim daemondemo.yaml
- 166 kubectl edit nodes control
- 167 kubectl create deploy nginxsvc --image=nginx
- 168 kubectl scale deploy nginxsvc --replicas 3
- 169 kubectl get all --selector app=nginxsvc
- 170 kubectl expose deploy nginxsvc --port=80
- 171 kubectl get all --selector app=nginxsvc
- 172 kubectl describe svc nginxsvc
- 173 kubectl get svc
- 174 kubectl get enpoints
- 175 kubectl get endpoints
- 176 curl 10.109.60.162
- 177 kubectl edit svc nginxsvc
- 178 kubectl get svc
- 179 ip a
- 180 history
- 181 kubectl edit svc nginxsvc
- 182 kubectl get svc
- 183 kubectl edit svc nginxsvc
- 184 kubectl get svc
- 185 kubectl edit svc nginxsvc
- 186 kubectl get svc
- 187 kubectl edit svc nginxsvc
- 188 kubectl get svc
- 189 kubectl edit svc nginxsvc
- 190 cat daemondemo.yaml
- 191 kubectl get svc
- 192 kubectl run testpod --image=busybox -- sh
- 193 kubectl exec -it testpod -- sh
- 194 kubectl delete pod testpod
- 195 kubectl run -it testpod --image=busybox -- sh
- 196 kubectl run -it testpod --image=sandervanvugt/gittools -- sh
- 197 kubectl run -it testpod2 --image=sandervanvugt/gittools -- sh
- 198 reset
- 199 kubectl get pods
- 200 kubectl delete pod testpod
- 201 kubectl delete pod testpod2
- 202 kubectl run -it testpod --image=busybox -- sh
- 203 kubectl get svc
- 204 kubectl get svc -A
- 205 history
- 206 ls
- 207 tar xvf helm-v3.11.2-linux-amd64.tar.gz
- 208 ls -l linux-amd64/helm
- 209 sudo cp linux-amd64/helm /usr/local/bin
- 210 helm version
- 211 helm upgrade --install ingress-nginx ingress-nginx --repo https://kubernetes.github.io/ingress-nginx --namespace ingress-nginx --create-namespace
- 212 kubectl get all -n ingress-nginx
- 213 kubectl get all --selector app=nginxsvc
- 214 kubectl create ingress nginxsvc --class=nginx --rule=nginxsvc.info/*=nginxsvc:80
- 215 kubectl port-forward -n ingress-nginx svc/ingress-nginx-controller 8080:80
- 216 bg
- 217 history
- 218 sudo vim /etc/hosts
- 219 curl nginxsvc.info:8080
- 220 history
- 221 kubectl get ing,svc,pods --selector app=nginxsvc
- 222 kubectl get ing,svc,pods
- 223 kubectl describe ing nginxsvc
- 224 history
- 225 helm version
- 226 kubectl explain pods.spec.volumes | less
- 227 cd kube3weeks/
- 228 ls
- 229 vim morevolumes.yaml
- 230 kubectl apply -f morevolumes.yaml
- 231 kubectl get pods
- 232 kubectl get pods -o wide
- 233 kubectl describe pod morevol2
- 234 kubectl exec -it morevol2 -c centos1 -- touch /centos1/testfile
- 235 kubectl exec -it morevol2 -c centos2 -- ls /centos2
- 236 history
- 237 vim pv.yaml
- 238 kubectl apply -f pv.yaml
- 239 kubectl get pv
- 240 vim pvc.yaml
- 241 kubectl apply -f pvc.yaml
- 242 kubectl get pvc,pv
- 243 kubectl describe pv
- 244 vim pv-pod.yaml
- 245 kubectl apply -f pv-pod.yaml
- 246 kubectl get pods
- 247 kubectl exec -it pv-pod -- touch /usr/share/nginx/html/hello.txt
- 248 kubectl get pods -o wide
- 249 ssh student@192.168.29.41
- 250 ls
- 251 vim pv-pvc-pod.yaml
- 252 history
- 253 kubectl get pods -o wide
- 254 kubectl describe pod pv-pod
- 255 kubectl get pvc,pv
- 256 kubectl describe pv pv-volume
- 257 kubectl get pods -o wide
- 258 ssh 192.168.29.41
- 259 sudo apt install nfs-server -y
- 260 sudo mkdir /nfsexport
- 261 sudo vim /etc/exports
- 262 sudo systemctl restart nfs-server
- 263 showmount -e localhost
- 264 sudo vim /etc/hosts
- 265 helm repo add nfs-subdir-external-provisioner https://kubernetes-sigs.github.io/nfs-subdir-external-provisioner/
- 266 helm install nfs-subdir-external-provisioner nfs-subdir-external-provisioner/nfs-subdir-external-provisioner --set nfs.server=192.168.29.40 --set nfs.path=/nfsexport
- 267 kubectl get all
- 268 kubectl get pods -n kube-system
- 269 kubectl get pv
- 270 vim nfs-provisioner-pvc-test.yaml
- 271 kubectl get storageclass
- 272 kubectl describe storageclass nfs-client
- 273 kubectl edit storageclasses.storage.k8s.io nfs-client
- 274 kubectl apply -f nfs-provisioner-pvc-test.yaml
- 275 kubectl get pvc,pv
- 276 vim nfs-provisioner-pvc-test.yaml
- 277 kubectl apply -f nfs-provisioner-pvc-test.yaml
- 278 kubectl get pvc,pv
- 279 ls /nfsexport/
- 280 history
- 281 ./countdown 1
- 282 cat /etc/exports
- 283 history
- 284 tail -n /etc/exports
- 285 tail -1 /etc/exports
- 286 cat /etc/hosts
- 287 helm repo add kubernetes-dashboard https://kubernetes.github.io/dashboard/
- 288 helm install kubernetes-dashboard kubernetes-dashboard/kubernetes-dashboard
- 289 kubectl get all
- 290 kubectl edit deploy kubernetes-dashboard
- 291 kubectl get all
- 292 kubectl get pods
- 293 kubectl get svc
- 294 kubectl edit svc kubernetes-dashboard
- 295 kubectl get svc
- 296 echo RBAC PROBLEM ON DASHBOARDkubectl get svc!
- 297 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement