Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- student@student-virtual-machine:~/ckad$ history
- 1 minikube start --vm-driver=docker --cni=calico
- 2 kubectl get all
- 3 minikube status
- 4 minikube ssh
- 5 minikube dashboard
- 6 bg
- 7 kubectl get all
- 8 source <(kubectl completion bash)
- 9 kubectl get all
- 10 kubectl create deployment firstginx --image=nginx --replicas=3
- 11 kubectl get all
- 12 history
- 13 kubectl completion -h | less
- 14 kubectl scale deployment --replicas=1
- 15 kubectl scale deployment firstginx --replicas 1
- 16 kubectl get all
- 17 kubectl scale deployment firstginx --replicas 3
- 18 history
- 19 kubectl get pods
- 20 kubectl get pods -o wide
- 21 history
- 22 kubectl -h | less
- 23 kubectl create -h | less
- 24 kubectl create deploy -h | less
- 25 ls
- 26 history
- 27 cd
- 28 git clone https://github.com/sandervanvugt/ckad
- 29 cd ckad
- 30 cd dockerfile/
- 31 ls
- 32 vim Dockerfile
- 33 docker build . -t centmap
- 34 docker images
- 35 docker save --help
- 36 cd ..
- 37 ./countdown 12
- 38 history
- 39 kubectl run -h | less
- 40 kubectl run hazelcast --image=hazelcast/hazelcast --env="DNS_DOMAIN=cluster" --env="POD_NAMESPACE=default"
- 41 kubectl get pods
- 42 kubectl get pods hazelcast -o json | less
- 43 kubectl get pods hazelcast -o yaml | less
- 44 kubectl describe pod hazelcast | less
- 45 kubectl get pods
- 46 kubectl delete pod firstginx-7c4fcf6b55-w6pd2
- 47 kubectl get pods
- 48 kubectl get all
- 49 kubectl delete pod hazelcast
- 50 kubectl get all
- 51 kubectl scale deployment firstginx --replicas 2
- 52 kubectl get all
- 53 kubectl delete replicasets.apps firstapp-568f648dc5
- 54 kubectl get all
- 55 kubectl delete deploy firstapp
- 56 kubectl get all
- 57 history
- 58 kubectl get deployments.apps -o yaml | less
- 59 kubectl get deployments.apps firstginx -o yaml | less
- 60 kubectl explain pod
- 61 kubectl explain pod.spec | less
- 62 kubectl explain pod.spec.volumes | less
- 63 kubectl run yournginx --image=nginx --dry-run=client -o yaml
- 64 kubectl run yournginx --image=nginx --dry-run=client -o yaml > yournginx.yaml
- 65 kubectl explain pod.spec
- 66 kubectl explain pod.spec | less
- 67 vim yournginx.yaml
- 68 kubectl create -f yournginx.yaml
- 69 kubectl apply -f yournginx.yaml
- 70 kubectl run -h | less
- 71 kubectl create -h | less
- 72 history
- 73 vim sidecar.yaml
- 74 kubectl create -f sidecar.yaml
- 75 kubectl get pods
- 76 kubectl describe pod sidecar-pod
- 77 kubectl exec -it sidecar-pod -c sidecar -- /bin/bash
- 78 ./countdown 12
- 79 cat sidecar.yaml
- 80 vim initone.yaml
- 81 kubectl apply -f initone.yaml
- 82 kubectl get pods
- 83 cat initone.yaml
- 84 kubectl get pods
- 85 kubectl describe pod initone
- 86 kubectl get pods
- 87 vim initone.yaml inittwo.yaml
- 88 vim inittwo.yaml
- 89 cp initone.yaml inittwo.yaml
- 90 vim inittwo.yaml
- 91 kubectl apply -f inittwo.yaml
- 92 kubectl get pods
- 93 kubectl delete pod initone
- 94 history
- 95 kubectl get all
- 96 kubectl get ns
- 97 kubectl create ns secret
- 98 kubectl get ns
- 99 kubectl run secretpod --image=nginx -n secret
- 100 kubectl get pods
- 101 kubectl get pods -n secret
- 102 kubectl get pods -A
- 103 kubectl config view
- 104 kubectl config set-context --current secret
- 105 kubectl config set --current secret
- 106 kubectl config --help
- 107 kubectl config set-context --current ns=secret
- 108 kubectl config set-context --current --ns=secret
- 109 kubectl config set-context --current --namespace=secret
- 110 kubectl config set-context -h | less
- 111 kubectl get pods
- 112 kubectl config set-context --current --namespace=default
- 113 kubectl get pods
- 114 history
- 115 kubectl explain pod
- 116 kubectl explain pod.spec
- 117 kubectl describe pod yournginx
- 118 kubectl get pods
- 119 kubectl exec -it firstginx-7c4fcf6b55-6r9zl -- sh
- 120 kubectl logs yournginx
- 121 kubectl describe pods yournginx | less
- 122 history
- 123 kubectl describe pods yournginx | grep volume
- 124 kubectl run faildb --image=mariadb
- 125 kubectl get pods
- 126 kubectl describe pod faildb
- 127 kubectl logs faildb
- 128 kubectl get pods
- 129 history
- 130 kubectl explain pod.spec.securityContext
- 131 kubectl explain pod.spec.securityContext | less
- 132 kubectl explain pod.spec.containers.spec.securityContext | less
- 133 kubectl explain pod.spec.containers.securityContext | less
- 134 vim securitycontextdemo2.yaml
- 135 kubectl apply -f securitycontextdemo2.yaml
- 136 kubectl exec -it security-context-demo sh
- 137 kubectl apply -f securitycontextdemo.yaml
- 138 kubectl get pods
- 139 kubectl describe pod nginxsecure
- 140 history
- 141 kubectl api-resources | less
- 142 kubectl create job onejob --image=busybox -- date
- 143 kubectl get jobs,pods
- 144 kubectl get jobs onejob -o yaml | less
- 145 kubectl delete job onejob
- 146 kubectl get pods
- 147 kubectl create job mynewjob --image=busybox --dry-run=client -o yaml -- sleep 5 > mynewjob.yaml
- 148 vim mynewjob.yaml
- 149 kubectl create -f mynewjob.yaml
- 150 kubectl get pods,jobs
- 151 sleep 60; kubectl get pods,jobs
- 152 history
- 153 kubectl create cronjob -h | less
- 154 kubectl create cronjob runme --image=busybox --schedule="42 * * * *" -- echo greetings from the cluster
- 155 kubectl get cronjobs,jobs,pods
- 156 date
- 157 kubectl get cronjobs,jobs,pods
- 158 kubectl logs runme-27838902-tjshv
- 159 kubectl get cronjob runme -o yaml | less
- 160 kubectl delete cronjobs.batch runme
- 161 history
- 162 kubectl create cj -h | less
- 163 kubectl create cronjob my-job --image=busybox --schedule="*/5 * * * *" -- logger hello world
- 164 history
- 165 vim frontend-resources.yaml
- 166 kubectl apply -f frontend-resources.yaml
- 167 kubectl describe pod frontend | less
- 168 kubectl get pods
- 169 kubectl describe pod frontend
- 170 kubectl delete -f frontend-resources.yaml
- 171 vim frontend-resources.yaml
- 172 kubectl apply -f frontend-resources.yaml
- 173 kubectl get pods
- 174 kubectl delete -f frontend-resources.yaml
- 175 vim frontend-resources.yaml
- 176 kubectl apply -f frontend-resources.yaml
- 177 kubectl get pods
- 178 vim frontend-resources.yaml
- 179 minikube ssh
- 180 kubectl delete -f frontend-resources.yaml
- 181 vim frontend-resources.yaml
- 182 kubectl apply -f frontend-resources.yaml
- 183 kubectl get pods
- 184 kubectl describe pod frontend
- 185 vim frontend-resources.yaml
- 186 kubectl apply -f frontend-resources.yaml
- 187 history
- 188 vim lab6.yaml
- 189 kubectl apply -f lab6.yaml
- 190 kubectl get pods
- 191 kubectl describe pod httpd
- 192 vim busybox-ready.yaml
- 193 kubectl create -f busybox-ready.yaml
- 194 kubectl get pods
- 195 kubectl describe pod busybox-ready
- 196 kubectl edit pods busybox-ready
- 197 kubectl exec -it busybox-ready -- /bin/sh
- 198 kubectl get pods
- 199 vim nginx-probes.yaml
- 200 kubectl get all
- 201 curl -k kubernetes:6443/healthz
- 202 minikube ssh
- 203 vim au.yaml
- 204 kubectl create -f au.yaml
- 205 kubectl get pods
- 206 vim au.yaml
- 207 kubectl delete -f au.yaml
- 208 kubectl create -f au.yaml
- 209 kubectl get pods
- 210 vim au.yaml
- 211 kubectl delete pod readiness-exec
- 212 kubectl create -f au.yaml
- 213 kubectl get pods
- 214 vim au.yaml
- 215 minikube ssh
- 216 vim au.yaml
- 217 kubectl explain pod.spec.readinessProbe
- 218 vim au.yaml
- 219 kubectl explain pod.spec.containers.readinessProbe
- 220 kubectl explain pod.spec.containers.readinessProbe.httpGet
- 221 vim au.yaml
- 222 kubectl explain pod.spec.containers.readinessProbe.tcpSocket
- 223 vim au.yaml
- 224 kubectl delete -f au.yaml
- 225 kubectl create -f au.yaml
- 226 kubectl get pods
- 227 curl -k $(minikube ip):8443/healthz
- 228 curl -k https://$(minikube ip):8443/healthz
- 229 minikube ssh
- 230 minikube ip
- 231 kubectl delete -f au.yaml
- 232 vim au.yaml
- 233 kubectl delete pod readiness-exec
- 234 kubectl create -f au.yaml
- 235 kubectl get pods
- 236 kubectl describe pod readiness-exec
- 237 kubectl delete pod readiness-exec
- 238 vim au.yaml
- 239 kubectl create -f au.yaml
- 240 kubectl get pods
- 241 kubectl describe pod readiness-exec
- 242 kubectl delete pod readiness-exec
- 243 vim au.yaml
- 244 cp au.yaml au2.yaml
- 245 vim au2.yaml
- 246 kubectl create -f au2.yaml
- 247 kubectl get pods
- 248 kubectl describe pod readiness-exec
- 249 kubectl get pods
- 250 kubectl exec -it busybox-ready -- sh
- 251 vim au2.yaml
- 252 kubectl delete pod readiness-exec
- 253 kubectl create -f au2.yaml
- 254 kubectl get pods
- 255 kubectl delete pod readiness-exec
- 256 vim au2.yaml
- 257 kubectl create -f au2.yaml
- 258 kubectl get pods
- 259 history
- 260 curl -k https://$(minikube ip):8443/healthz
- 261 vim au.yaml
- 262 vim au2.yaml
- 263 cat au2.yaml
- 264 kubectl create deploy myweb --image=nginx --replicas=3
- 265 kubectl describe deploy myweb | less
- 266 kubectl get all --selector app=myweb
- 267 kubectl delete pod myweb-d5b9458bc-n6ggw
- 268 kubectl get all --selector app=myweb
- 269 vim redis-deploy.yaml
- 270 kubectl apply -f redis-deploy.yaml
- 271 vim redis-deploy.yaml
- 272 kubectl api-resources | less
- 273 vim redis-deploy.yaml
- 274 kubectl apply -f redis-deploy.yaml
- 275 kubectl get all
- 276 kubectl edit deployments.apps redis
- 277 kubectl get deploy
- 278 kubectl delete rs redis-6467896d84
- 279 kubectl get all | grep redis
- 280 history
- 281 kubectl create deploy nginxup --image=nginx:1.14
- 282 kubectl get all --selector app=nginxup
- 283 kubectl scale deployment nginxup --replicas=3
- 284 kubectl set image deploy nginxup nginx=nginx:1.17
- 285 kubectl get all --selector app=nginxup
- 286 kubectl get deploy
- 287 kubectl get deploy redis -o yaml | less
- 288 kubectl create deploy bluelabel --image=nginx
- 289 kubectl label deployment bluelabel state=demo
- 290 kubectl get deploy --show-labels
- 291 kubectl get all --selector state=demo
- 292 kubectl get all --selector app=bluelabel
- 293 kubectl describe deploy bluelabel
- 294 kubectl get all | grep blue
- 295 kubectl label pod bluelabel-d7894847c-wwsl9 app-
- 296 kubectl get all | grep blue
- 297 kubectl get all --selector=run
- 298 kubectl get all --selector=run --show-labels
- 299 history
- 300 kubectl scale deploy bluelabel --replicas 4
- 301 kubectl get all --selector app=bluelabel
- 302 kubectl set env deploy bluelabel type=blended
- 303 kubectl get all --selector app=bluelabel
- 304 vim rolling.yaml
- 305 kubectl apply -f rolling.yaml
- 306 kubectl rollout history deployment
- 307 kubectl edit deployments.apps rolling-nginx
- 308 kubectl rollout history deployment rolling-nginx
- 309 kubectl rollout history deployment rolling-nginx --revision=2
- 310 kubectl rollout history deployment rolling-nginx --revision=1
- 311 kubectl rollout undo deployment rolling-nginx --to-revision 1
- 312 kubectl get all --selector app=rolling-nginx
- 313 kubectl get all | grep rolling
- 314 kubectl delete all --all
- 315 history
- 316 vim rolling.yaml
- 317 kubect get all
- 318 kubectl get all
- 319 kubectl create deployment nginxsvc --image=nginx --replicas=3
- 320 kubectl get all
- 321 kubectl expose deploy nginxsvc --port=80
- 322 kubectl get all
- 323 kubectl get svc nginxsvc -o yaml | less
- 324 kubectl get svc
- 325 kubectl describe svc nginxsvc
- 326 kubectl get pods -o wide
- 327 kubectl get endpoints
- 328 kubectl edit svc nginxsvc
- 329 kubectl get endpoints
- 330 kubectl edit svc nginxsvc
- 331 kubectl get endpoints
- 332 curl 10.109.243.181
- 333 kubectl get svc
- 334 minikube ssh
- 335 kubectl edit svc nginxsvc
- 336 kubectl get svc
- 337 minikube ip
- 338 curl 192.168.49.2:32000
- 339 history
- 340 kubectl run testbox --image=busybox --sleep=36000
- 341 kubectl run testbox --image=busybox -- sleep=36000
- 342 kubectl exec -it testbox -- cat /etc/resolv.conf
- 343 kubectl get all
- 344 kubectl delete testbox
- 345 kubectl delete pod testbox
- 346 kubectl run testbox --image=busybox -- sleep 36000
- 347 kubectl exec -it testbox -- cat /etc/resolv.conf
- 348 kubectl get svc -A
- 349 kubectl exec -it testbox -- nslookup nginxsvc
- 350 kubectl create ns testspace; kubectl run testx --image=nginx -n testspace
- 351 kubectl get pods -A
- 352 kubectl expose -n testspace pod testx --port=80 --type=NodePort
- 353 kubectl get svc -A
- 354 kubectl exec -it testbox -- nslookup testspace
- 355 kubectl exec -it testbox -- nslookup testx
- 356 kubectl exec -it testbox -- nslookup testx.testspace.svc.cluster.local
- 357 kubectl get svc -A
- 358 kubectl exec -it testbox -- nslookup testx.testspace.svc.cluster.local
- 359 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement