Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- student@student-virtual-machine:~/ckad$ history
- 1 sudo apt install git vim -y
- 2 git clone https://github.com/sandervanvugt/ckad
- 3 cd ckad
- 4 ls
- 5 ./minikube-docker-setup.sh
- 6 minikube start --vm-driver=docker
- 7 history
- 8 ls
- 9 minikube status
- 10 minikube dashboard
- 11 kubectl get all
- 12 curl 10.99.11.196
- 13 minikube ssh
- 14 ls
- 15 kubectl version
- 16 ls
- 17 ./countdown 13
- 18 kubectl api-resources | less
- 19 kubectl get all
- 20 kubectl get pods -o wide
- 21 kubectl delete pod removemeginx-b4b69d8d7-qkmmp
- 22 kubectl get all
- 23 kubectl api-versions
- 24 minikube ssh
- 25 kubectl --v=10 get pods
- 26 kubectl proxy --port=8001 &
- 27 curl http://localhost:8001/version
- 28 curl http://localhost:8001/api/v1/namespaces/default/pods
- 29 curl http://localhost:8001/api/v1/namespaces/default/pods/removemeginx-b4b69d8d7-4mds4
- 30 curl -XDELETE http://localhost:8001/api/v1/namespaces/default/pods/removemeginx-b4b69d8d7-4mds4
- 31 kubectl get pods
- 32 kubectl -h
- 33 kubectl -h | less
- 34 kubectl create -h | less
- 35 kubectl create serviceaccount -h | less
- 36 kubectl completion -h
- 37 source <(kubectl completion bash)
- 38 kubectl config view
- 39 cd ~/.kube/c
- 40 cd ~/.kube/
- 41 vim config
- 42 cd -
- 43 history; sleep 2; ./countdown 12
- 44 history; sleep 120; ./countdown 10
- 45 kubectl get pods
- 46 kubectl run -h | less
- 47 kubectl run ghost --image=ghost:0.9
- 48 kubectl get pods
- 49 kubectl describe pod ghost
- 50 kubectl get pods ghost
- 51 kubectl get pods ghost -o yaml | less
- 52 kubectl get pods
- 53 kubectl delete pod ghost
- 54 kubectl get pods
- 55 kubectl explain pods
- 56 kubectl explain pods.spec
- 57 kubectl explain pods.spec.containers
- 58 kubectl explain --recursive pods.spec | less
- 59 history
- 60 kubectl run ghost --image=ghost:0.9 --dry-run=client -o yaml > myghost.yaml
- 61 vim myghost.yaml
- 62 kubectl api-resources | less
- 63 vim myghost.yaml
- 64 kubectl create -f myghost.yaml
- 65 vim myghost.yaml
- 66 kubectl apply -f myghost.yaml
- 67 kubectl replace -f myghost.yaml
- 68 kubectl get pods
- 69 history
- 70 kubectl delete -f myghost.yaml
- 71 vim myghost.yaml
- 72 kubectl apply -f myghost.yaml
- 73 vim myghost.yaml
- 74 kubectl apply -f myghost.yaml
- 75 ./countdown 10
- 76 vim sidecar.yaml
- 77 kubectl create -f sidecar.yaml
- 78 kubectl exec -it sidecar-pod -c sidecar /bin/bash
- 79 vim morevolumes.yaml
- 80 vim initpod.yaml
- 81 kubectl create -f initpod.yaml
- 82 kubectl get pods
- 83 kubectl delete -f initpod.yaml
- 84 vim initpod.yaml
- 85 kubectl create -f initpod.yaml
- 86 kubectl get pods
- 87 vim sidecar.yaml
- 88 kubectl run mydb --image=mariadb
- 89 kubectl get all
- 90 kubectl describe pod mydb
- 91 kubectl logs mydb
- 92 kubectl delete pod mydb
- 93 kubectl run -h | less
- 94 kubectl run mydb --image=mariadb --env=MARIADB_ROOT_PASSWORD=password
- 95 kubectl get pods
- 96 kubectl exec -it mydb -- sh
- 97 history
- 98 sudo poweroff
- 99 minikube start
- 100 history
- 101 kubectl explain pod.spec.securityContext
- 102 kubectl explain pod.spec.containers.spec.securityContext
- 103 kubectl explain pod.spec.containers.securityContext
- 104 history
- 105 kubectl explain --recursive pod.spec | less
- 106 cd ckad/
- 107 vim securitycontextdemo2.yaml
- 108 kubectl apply -f securitycontextdemo2.yaml
- 109 kubectl get pods
- 110 source <(kubectl completion bash)
- 111 kubectl exec -it securitycontextdemo -- sh
- 112 kubectl get pods
- 113 kubectl exec -it security-context-demo -- sh
- 114 kubectl apply -f securitycontextdemo2.yaml
- 115 vim securitycontextdemo2.yaml
- 116 vim securitycontextdemo.yaml
- 117 kubectl create -f securitycontextdemo.yaml
- 118 kubectl get pods
- 119 kubectl describe nginxsecure
- 120 kubectl describe pod nginxsecure
- 121 kubectl get all
- 122 kubectl delete all --all
- 123 kubectl create -h | less
- 124 kubectl create job -h | less
- 125 kubectl create job my-job --image=busybox -- date --dry-run=client -o yaml
- 126 kubectl create job my-job --image=busybox --dry-run=client -o yaml -- date
- 127 vim simplejob.yaml
- 128 kubectl create -f simplejob.yaml
- 129 kubectl get all
- 130 kubectl delete job/my-job
- 131 kubectl get all
- 132 kubectl get jobs simple-job -o yaml
- 133 kubectl delete jobs.batch simple-job
- 134 vim simplejob.yaml
- 135 kubectl create -f simplejob.yaml
- 136 kubectl get all
- 137*
- 138 kubectl delete jobs.batch simple-job
- 139 vim simplejob.yaml
- 140 kubectl create -f simplejob.yaml
- 141 kubectl get all
- 142 vim simplejob.yaml
- 143 kubectl get all
- 144 kubectl explain CronJob.spec | less
- 145 kubectl create -h | less
- 146 kubectl create cronjob -h | less
- 147 vim cron-example.yaml
- 148 kubectl create -f cron-example.yaml
- 149 kubectl get cronjobs.batch hello
- 150 kubectl get cronjobs
- 151 kubectl get jobs --watch
- 152 kubectl get all
- 153 kubectl logs hello-27236922--1-g9f57
- 154 kubectl delete cronjob hello
- 155 kubectl create cronjob -h | less
- 156 # kubectl create cronjob my-job --image=busybox --schedule="*/1 * * * *" -- date
- 157 kubectl create cronjob my-job --image=busybox --schedule="*/5 * * * *" -- logger hello world
- 158 kubectl get all
- 159 kubectl get ns
- 160 kubectl get all
- 161 kubectl get all -A
- 162 kubectl get all -n kube-system
- 163 kubectl get all -A
- 164 kubectl create ns secret
- 165 vim busybox-ns.yaml
- 166 kubectl run -h | less
- 167 kubectl run busybox -n secret -- sleep 1800
- 168 kubectl run sleepubox --image=busybox -n secret -- sleep 1800
- 169 kubectl get all
- 170 kubectl get pods -n secret
- 171 kubectl config set-context --current -n secret
- 172 kubectl config set-context --current --namespace=secret
- 173 kubectl get pods
- 174 kubectl config set-context --current --namespace=default
- 175 ./countdown 12
- 176 kubectl delete --help | less
- 177 kubectl get pods -A
- 178 kubectl delete all --all
- 179 kubectl get pods -A
- 180 vim frontend-resources.yaml
- 181 kubectl create -f frontend-resources.yaml
- 182 kubectl get all
- 183 kubectl describe pod frontend
- 184 kubectl edit pod frontend
- 185 kubectl delete pod frontend --grace-period=0 --force
- 186 kubectl get all
- 187 vim frontend-resources.yaml
- 188 kubectl create -f frontend-resources.yaml
- 189 kubectl get pods
- 190 kubectl run --help | less
- 191 kubectl run myserver --image=nginx --limits="memory=512M"
- 192 kubectl explain deployment.spec
- 193 kubectl explain deployment.spec.strategy
- 194 kubectl explain deployment.spec.strategy.rollingUpdate
- 195 kubectl create deployment nginxblah --image=nginx
- 196 kubectl get all
- 197 kubectl scale deployment nginxblah --replicas=3
- 198 kubectl get all
- 199 kubectl delete pod nginxblah-7dc7fb8c85-2hhj6
- 200 kubectl get pods
- 201 kubectl get deployments.apps nginxblah -o yaml | less
- 202 kubectl get all --show-labels
- 203 kubectl get all --selector app=nginxblah
- 204 kubectl get all --show-labels
- 205 kubectl label pod nginxblah-7dc7fb8c85-zqgbk app-
- 206 kubectl get all --show-labels
- 207 kubectl get deployments.apps nginxblah -o yaml | less
- 208 kubectl edit deployments.apps nginxblah
- 209 kubectl get all
- 210 vim redis-deploy.yaml
- 211 kubectl create -f redis-deploy.yaml
- 212 kubectl api-versions | less
- 213 vim redis-deploy.yaml
- 214 kubectl create -f redis-deploy.yaml
- 215 kubectl scale deployment redis --replicas=2
- 216 kubectl get all
- 217 kubectl delete rs redis-6fb5b985bc
- 218 history
- 219 kubectl get all
- 220 kubectl delete deployments.apps redis
- 221 kubectl explain replicaset.spec
- 222 kubectl explain deployment.spec
- 223 ./countdown 60
- 224 kubectl create deployment nginx-lab7 --image=nginx --replicas=3
- 225 ./countdown 13
- 226 cd ..
- 227 https://github.com/cncf/curriculum
- 228 git clone https://github.com/cncf/curriculum
- 229 cd ckad/
- 230 vim rolling.yaml
- 231 kubectl create -f rolling.yaml
- 232 kubectl rollout history deployment
- 233 kubectl edit deployments.apps rolling-nginx
- 234 kubectl get all
- 235 kubectl rollout history deployment
- 236 kubectl describe deployments.apps rolling-nginx
- 237 kubectl rollout history deployment rolling-nginx --revision=2
- 238 kubectl rollout history deployment rolling-nginx --revision=1
- 239 kubectl rollout undo deployment rolling-nginx --to-revision=1
- 240 kubectl get all
- 241 kubectl get deploy --show-labels
- 242 kubectl create deploy nginxsvc --image=nginx --replicas=3
- 243 kubectl get all --selector app=nginxsvc
- 244 kubectl expose deployment nginxsvc
- 245 kubectl expose deployment nginxsvc --port=80
- 246 kubectl get all --selector app=nginxsvc
- 247 kubectl get endpoint
- 248 kubectl get endpoints
- 249 curl 10.107.210.223
- 250 minikube ssh
- 251 kubectl edit svc nginxsvc
- 252 kubectl get svc
- 253 minikube ip
- 254 curl http://$(minikube ip):32000
- 255 ./countdown 12
- 256 kubectl get svc
- 257 kubectl get svc nginxsvc
- 258 kubectl get svc nginxsvc -o yaml
- 259 kubectl get pods -n kube-system
- 260 vim busybox.yaml
- 261 kubectl create -f busybox.yaml
- 262 kubectl get svc
- 263 kubectl exec -it busybox2 -- nslookup nginxsvc
- 264 minikube addons list
- 265 minikube addons enable ingress
- 266 kubect get all --selector app=nginxsvc
- 267 kubectl get all --selector app=nginxsvc
- 268 curl http://$(minikube ip):32000
- 269 vim nginxsvc-ingress.yaml
- 270 kubectl apply -f nginxsvc-ingress.yaml
- 271 kubectl get ingress
- 272 sudo vim /etc/hosts
- 273 minikube ip
- 274 cat /etc/hosts
- 275 kubectl get ingress
- 276 curl nginxsvc.info
- 277 kubectl get ingress
- 278 kubectl get ingress -o yaml
- 279 kubectl describe ingress nginxsvc-ingress
- 280 kubectl create deployment newdep --image=gcr.io/google-samples/hello-app:2.0
- 281 kubectl get deploy
- 282 kubectl expose deployment newdep --port=8080
- 283 kubectl describe ingress nginxsvc-ingress
- 284 curl nginxsvc.info/hello
- 285 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement