Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- student@student-virtual-machine:~/ckad$ history
- 1 sudo apt install vim git
- 2 git clone https://github.com/sandervanvugt/ckad
- 3 cd ckad
- 4 sudo ls -l /root
- 5 ls
- 6 ./kube-setup.sh
- 7 sudo reboot
- 8 cd ckad/
- 9 cat kube-setup.sh
- 10 minikube start --memory 4096 --vm-driver=kvm2
- 11 kubectl get all
- 12 history
- 13 free -m
- 14 sudo grep vmx /proc/cpuinfo
- 15 free -m
- 16 df -h
- 17 ls
- 18 vim kube-setup.sh
- 19 vim other-options.txt
- 20 minikube -h
- 21 minikube status
- 22 minikube ssh
- 23 kubectl get all
- 24 minikube dashboard
- 25 bg
- 26 ./countdown 12
- 27 kubectl get all
- 28 kubectl delete pod myfirstnginx-bc9b6d4d7-g9fz2
- 29 kubectl get all
- 30 kubectl -h
- 31 kubectl completion -h
- 32 source <(kubectl completion bash)
- 33 kubectl create deployment newnginx --image=nginx -h
- 34 kubectl create deployment newnginx --image=nginx --replicase=3
- 35 kubectl create deployment newnginx --image=nginx --replicas=3
- 36 kubectl get all
- 37 kubectl version
- 38 history
- 39 kubectl api-resources | less
- 40 kubectl explain priorityclasses
- 41 kubectl explain priorityclasses | less
- 42 kubectl -h | less
- 43 kubectl -h |less
- 44 kubectl api-resources | less
- 45 kubectl api-versions | less
- 46 kubectl explain pod | less
- 47 history
- 48 ./countdown 12
- 49 kubectl proxy --port=8001 &
- 50 curl http://localhost:8001/version
- 51 kubectl get pods
- 52 curl http://localhost:8001/api/v1/namespaces/default/pods
- 53 curl http://localhost:8001/api/v1/namespaces/default/pods/newnginx-757c575454-8x76n/
- 54 curl -XDELETE http://localhost:8001/api/v1/namespaces/default/pods/newnginx-757c575454-8x76n/
- 55 kubectl get pods
- 56 kubectl -h | less
- 57 kubectl completion -h | less
- 58 kubectl explain pod
- 59 kubectl explain pod.spec
- 60 kubectl explain pod.spec | less
- 61 kubectl run -h | less
- 62 kubectl run nginx --image=nginx
- 63 kubectl get all
- 64 kubectl delete pod newnginx-757c575454-zft7m
- 65 kubectl get all
- 66 kubectl delete pod nginx
- 67 kubectl get all
- 68 kubectl scale deployment --replicas=4 newnginx
- 69 kubectl get all
- 70 kubectl delete deployments.apps myfirstnginx
- 71 kubectl run --image=mariadb
- 72 kubectl run mydb --image=mariadb
- 73 kubectl get pods
- 74 kubectl describe pod mydb
- 75 kubectl logs mydb
- 76 kubectl run -h | less
- 77 kubectl run mydb --image=mariadb --env=MYSQL_ROOT_PASSWORD=password
- 78 kubectl delete pod mydb
- 79 kubectl run mydb --image=mariadb --env=MYSQL_ROOT_PASSWORD=password
- 80 kubectl get pod
- 81 history
- 82 ls
- 83 vim busybox.yaml
- 84 kubectl create -f busybox.yaml
- 85 kubectl get pods
- 86 vim busybox.yaml
- 87 kubectl api-resources | less
- 88 kubectl explain pods
- 89 kubectl explain pods.spec
- 90 kubectl explain pods.spec | less
- 91 kubectl explain pods.spec.containers
- 92 kubectl explain --recursive pods.spec.containers
- 93 ./countdown 12
- 94 vim busybox.yaml
- 95 kubectl create -f busybox.yaml
- 96 vim busybox.yaml
- 97 kubectl create -f busybox.yaml
- 98 vim busybox.yaml
- 99 kubectl create -f busybox.yaml
- 100 kubectl run mywhatever --image=nginx --dry-run=client -o yaml > whatever.yaml
- 101 vim whatever.yaml
- 102 kubectl run busypod --image=busybox --restart=Never --command -- /bin/sh
- 103 kubectl get pods
- 104 kubectl get pods busypod -o yaml > busypod.yaml
- 105 vim busypod.yaml
- 106 kubectl run busypod --image=busybox --restart=Never --dry-run=client -o yaml --command -- /bin/sh
- 107 vim ~/.vimrc
- 108 vim sidecar.yaml
- 109 kubectl create -f sidecar.yaml
- 110 kubectl get pods
- 111 history
- 112 https://pastebin.com/u/sandervanvugt
- 113 top
- 114 kubectl get all
- 115 vim sidecar.yaml
- 116 kubectl get pods
- 117 kubectl exec -it sidecar-pod -c sidecar /bin/bash
- 118 vim new-init.yaml
- 119 kubectl create -f new-init.yaml
- 120 kubectl get pods
- 121 vim initpod.yaml
- 122 kubectl create -f initpod.yaml
- 123 kubectl get pods
- 124 kubectl describe pod init-demo
- 125 kubectl get events
- 126 ./countdown
- 127 kubectl run -h | less
- 128 kubectl explain pods.spec.securityContext
- 129 kubectl explain pods.spec.containers.securityContext
- 130 kubectl explain --recursive pods
- 131 kubectl explain --recursive pods | less
- 132 vim securitycontextdemo2.yaml
- 133 kubectl apply -f securitycontextdemo2.yaml
- 134 kubectl exec -it security-context-demo -- sh
- 135 kubectl create -f securitycontextdemo.yaml
- 136 kubectl get pods
- 137 kubectl describe pods nginxsecure
- 138 kubectl explain pods.spec.containers.securityContext
- 139 vim simplejob.yaml
- 140 kubectl create -f simplejob.yaml
- 141 kubectl get all
- 142 kubectl explain jobs.spec
- 143 vim simplejob.yaml
- 144 kubectl create -f simplejob.yaml
- 145 kubectl delete jobs simple-job
- 146 kubectl get pods
- 147 kubectl create -f simplejob.yaml
- 148 kubectl get all
- 149 vim simplejob.yaml
- 150 kubectl apply -f simplejob.yaml
- 151 kubectl delete -f simplejob.yaml
- 152 vim simplejob.yaml
- 153 kubectl apply -f simplejob.yaml
- 154 kubectl get all
- 155 vim simplejob.yaml
- 156 kubectl apply -f simplejob.yaml
- 157 kubectl edit jobs simple-job
- 158 ./countdown 12
- 159 vim cron-example.yaml
- 160 kubectl create -f cron-example.yaml
- 161 kubectl get all
- 162 date
- 163 kubectl get all
- 164 kubectl describe cronjobs.batch hello
- 165 kubectl get all
- 166 kubectl create cronjob -h | less
- 167 kubectl create cronjob my-job --image=busybox --schedule="*/5 * * * *" -- logger "hello world" --dry-run=client -o yaml > lab6.yaml
- 168*
- 169 kubectl create cronjob my-job --image=busybox --schedule="*/5 * * * *" --dry-run=client -o yaml -- logger "hello world"
- 170 kubectl get pods
- 171 minikube ssh
- 172 kubectl get all -A
- 173 kubectl get pods -A
- 174 kubectl get ns
- 175 kubectl create ns secret
- 176 vim busybox-ns.yaml
- 177 kubectl create -f busybox-ns.yaml
- 178 vim busybox-ns.yaml
- 179 kubectl create -f busybox-ns.yaml
- 180 kubectl get pods
- 181 kubectl get pods -n secret
- 182 kubectl config set-context --current --namespace=secret
- 183 kubectl config view
- 184 kubectl config set-context --current --namespace=default
- 185 kubectl config view
- 186 kubectl config view | grep namespace
- 187 kubectl config get-contexts
- 188 kubectl config set-context --current --namespace=kube-systemn
- 189 kubectl config set-context --current --namespace=kube-system
- 190 kubectl get pods
- 191 kubectl config set-context --current --namespace=default
- 192 kubectl edit pod busypod
- 193 kubectl edit pod busypod -n secret
- 194 kubectl create quota -h
- 195 ubectl create quota my-quota
- 196 kubectl create quota my-quota --hard=cpu=1,memory=1G,pods=2,services=3,replicationcontrollers=2,resourcequotas=1,secrets=5,persistentvolumeclaims=10 -n secret
- 197 kubectl describe ns secret
- 198 kubectl create failginx --image=nginx --replicas=3 -n secret
- 199 kubectl create deployment failginx --image=nginx --replicas=3 -n secret
- 200 kubectl describe deployments.apps failginx -n secret
- 201 kubectl get all -n secret
- 202 kubectl describe rs -n secret failginx-6d74bcdc5d
- 203 kubectl delete -n secret deployments.apps failginx
- 204 vim frontend-resources.yaml
- 205 kubectl create -f frontend-resources.yaml
- 206 kubectl get all -n secret
- 207 kubectl get all -n secret\
- 208 kubectl get all -n secret
- 209 kubectl describe -n secret pod frontend
- 210 kubectl get all -n secret
- 211 vim frontend-resources.yaml
- 212 kubectl create -f frontend-resources.yaml
- 213 kubectl get pods
- 214 kubectl describe pods frontend
- 215 kubectl create quota -h
- 216 vim frontend-resources.yaml
- 217 kubectl explain deploy.spec
- 218 kubectl explain deploy.spec.template
- 219 kubectl explain deploy.spec.template.spec
- 220 kubectl explain deploy.spec.template.spec.containers
- 221 kubectl create deployment nginxvlah --image=nginx
- 222 kubectl get deployments.apps nginxvlah -o yaml
- 223 vim redis-deploy.yaml
- 224 kubectl create -f redis-deploy.yaml
- 225 vim redis-deploy.yaml
- 226 kubectl explain deploy
- 227 kubectl create -f redis-deploy.yaml
- 228 kubectl get all
- 229 kubectl edit deployments.apps redis
- 230 kubectl get all
- 231 kubectl delete pod redis-6fb5b985bc-vfgj7
- 232 kubectl get all
- 233 ./countdown 12
- 234 vim rolling.yaml
- 235 kubectl create -f rolling.yaml
- 236 kubectl rollout history deployment rolling-nginx
- 237 kubectl rollout history deployment rolling-nginx --revision=1
- 238 kubectl edit deployments.apps rolling-nginx
- 239 kubectl get all
- 240 kubectl rollout history deployment
- 241 kubectl describe deployments.apps rolling-nginx
- 242 kubectl rollout history deployment rolling-nginx --revision=1
- 243 kubectl rollout history deployment rolling-nginx --revision=2
- 244 kubectl rollout undo deployment rolling-nginx --to-revision=1
- 245 kubectl get all
- 246 kubectl get all --show-labels
- 247 kubectl get all --selector app=newnginx
- 248 kubectl create deployment ghost --image=ghost
- 249 kubectl get all --selector app=ghost
- 250 kubectl get all --selector app=ghost --show-labels
- 251 kubectl label deployments.apps ghost state=demo
- 252 kubectl get all --selector app=ghost --show-labels
- 253 kubectl create deployment nginx --image=nginx
- 254 kubectl describe deployments.apps nginx
- 255 kubectl describe pod nginx-6799fc88d8-qsn74
- 256 kubectl scale deployment nginx --replicas=3
- 257 kubectl get all --selector app=nginx
- 258 kubectl label pod nginx-6799fc88d8-4h6q6 app-
- 259 kubectl get all --selector app=nginx
- 260 kubectl get pods
- 261 ./countdown 5
- 262 kubectl get cron.spec
- 263 kubectl explain cron.spec
- 264 kubectl explain cronjob.spec
- 265 kubectl explain cronjob.spec.jobTemplate
- 266 kubectl explain cronjob.spec.jobTemplate.spec
- 267 kubectl get pods -o wide
- 268 ./countdown 12
- 269 kubectl create cronjob -h | less
- 270 kubectl get deployments.apps
- 271 kubectl delete deploy newnginx,nginxvlah
- 272 kubectl delete deploy newnginx
- 273 kubectl delete deploy nginxvlah
- 274 kubectl delete deploy rolling-nginx
- 275 kubectl delete deploy redis
- 276 kubectl delete deploy ghost
- 277 kubectl get deployments.apps
- 278 kubectl expose -h
- 279 kubectl expose -h | less
- 280 kubectl expose deployment nginx --port=80 --type=NodePort
- 281 kubectl get svc
- 282 kubectl get svc nginx -o yaml
- 283 kubectl describe service nginx
- 284 kubectl create deployment nginxsvc --image=nginx --replicas=3
- 285 kubectl expose deployment nginxsvc
- 286 kubectl expose deployment nginxsvc --port 80
- 287 kubectl describe svc nginxsvc
- 288 kubectl get endpoints
- 289 curl http://10.98.138.32
- 290 minikube ssh
- 291 kubectl edit svc nginxsvc
- 292 kubectl get svc
- 293 curl http://$(minikube ip):32000
- 294 minikube ip
- 295 curl http://192.168.39.192:32000
- 296 kubectl get pods
- 297 kubectl get svc
- 298 kubectl exec -it busybox2 -- cat /etc/resolv.conf
- 299 kubectl exec -it busybox2 -- nslookup nginxsvc
- 300 kubectl exec -it busybox2 -- nslookup myfirstnginx
- 301 minikube addons list
- 302 minikube addons enable ingress
- 303 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement