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
- 2 kubectl get all
- 3 free -m
- 4 df -h
- 5 lscpu
- 6 history
- 7 ls
- 8 minikube ssh
- 9 kubectl get all
- 10 minikube dashboard
- 11 kubectl get all
- 12 kubectl create deploy firstginx --image=nginx --replicas=3
- 13 kubectl create deploy cmdginx --image=nginx --replicas=3
- 14 kubectl get all
- 15 kubectl delete deploy cmdginx
- 16 kubectl get all
- 17 history
- 18 minikube --help | less
- 19 ./countdown 13
- 20 kubectl explain pod
- 21 kubectl explain pod.spec | less
- 22 kubectl explain pod.spec.container | less
- 23 kubectl explain pod.spec.containers | less
- 24 kubectl --help | less
- 25 kubectl completion --help | less
- 26 source <(kubectl completion bash)
- 27 kubectl completion --help | less
- 28 less ~/.kube/config
- 29 kubectl config view
- 30 kubectl get all
- 31 kubectl delete pod firstginx-58f758f4d9-9hnd4
- 32 kubectl get all
- 33 kubectl run --help | less
- 34 kubectl run hazelcast --image=hazelcast/hazelcast --env="DNS_DOMAIN=cluster" --env="POD_NAMESPACE=default"
- 35 kubectl get all
- 36 kubectl run --help
- 37 kubectl run --help | less
- 38 kubectl get all
- 39 kubectl delete pod hazelcast
- 40 kubectl get all
- 41 kubectl get pods
- 42 kubectl get pods firstginx-58f758f4d9-6zm4d -o yaml
- 43 kubectl describe pods firstginx-58f758f4d9-6zm4d
- 44 kubectl describe pods firstginx-58f758f4d9-6zm4d | less
- 45 history
- 46 kubectl get all
- 47 ./countdown 12
- 48 history
- 49 ls
- 50 vim mypod.yaml
- 51 sudo apt install vim
- 52 vim mypod.yaml
- 53 kubectl api-resources | less
- 54 vim mypod.yaml
- 55 kubectl api-resources | less
- 56 vim mypod.yaml
- 57 kubectl explain pod.spec | less
- 58 vim mypod.yaml
- 59 kubectl get pods firstginx-58f758f4d9-6zm4d -o yaml | less
- 60 kubectl run mynginx --image=nginx --dry-run=client -o yaml
- 61 kubectl run mynginx --image=nginx --dry-run=client -o yaml > mynginx.yaml
- 62 vim mynginx.yaml
- 63 kubectl create -f mynginx.yaml
- 64 kubectl get pods
- 65 kubectl delete -f mynginx.yaml
- 66 kubectl apply -f mynginx.yaml
- 67 kubectl get pods mynginx -o yaml
- 68 kubectl get pods mynginx -o yaml | less
- 69 vim mynginx.yaml
- 70 kubectl apply -f mynginx.yaml
- 71 kubectl get pods
- 72 vim sidecar.yaml
- 73 kubectl create -f sidecar.yaml
- 74 kubectl get pods
- 75 kubectl describe pod sidecar-pod | less
- 76 kubectl exec -it sidecar-pod -c sidecar -- /bin/bash
- 77 vim sidecar.yaml
- 78 ls
- 79 history
- 80 vim init-example1.yaml
- 81 kubectl create -f init-example1.yaml ; kubectl get pods
- 82 kubectl get pods
- 83 vim init-example2.yaml
- 84 kubectl create -f init-example2.yaml
- 85 kubectl get pods
- 86 cp init-example2.yaml multicontainer.yaml
- 87 vim multicontainer.yaml
- 88 ./countdown 12
- 89 history
- 90 kubectl exec -it sidecar-pod -c sidecar -- /bin/bash
- 91 kubectl exec -it sidecar-pod -c sidecar /bin/bash
- 92 kubectl get pods
- 93 kubectl get pods -A
- 94 kubectl get ns
- 95 kubectl get pods -A
- 96 kubectl get all -A
- 97 kubectl create ns secret
- 98 kubectl get ns
- 99 vim busybox-ns.yaml
- 100 kubectl create -f busybox-ns.yaml
- 101 kubectl get pods
- 102 vim busybox-ns.yaml
- 103 kubectl explain pod.metadata
- 104 kubectl create -f busybox-ns.yaml
- 105 kubectl get pods
- 106 kubectl get pods -A
- 107 kubectl get pods -n secret
- 108 kubectl run secretginx --image=nginx -n secret
- 109 kubectl run nginxlab --image=nginx
- 110 k
- 111 kubectl run mydb --image=mariadb
- 112 kubectl get pods
- 113 kubectl describe pod mydb | less
- 114 kubectl logs mydb
- 115 kubectl run mydb --image=mariadb --env MARIADB_ROOT_PASSWORD
- 116 kubectl run --help | less
- 117 kubectl run mydb --image=mariadb --env="MARIADB_ROOT_PASSWORD=password"
- 118 kubectl delete pod mydb
- 119 kubectl run mydb --image=mariadb --env="MARIADB_ROOT_PASSWORD=password"
- 120 kubectl get pods
- 121 history
- 122 kubectl get all
- 123 kubectl exec -it firstginx-58f758f4d9-6zm4d -- /bin/bash
- 124 kubectl exec -it busybox3 -- sh
- 125 kubectl describe pod nginxlab | less
- 126 history
- 127 kubectl apply --filename https://storage.googleapis.com/tekton-releases/pipeline/latest/release.yaml
- 128 vim hello-world.yaml
- 129 kubectl apply -f hello-world.yaml
- 130 vim hello-world-run.yaml
- 131 kubectl apply -f hello-world-run.yaml
- 132 kubectl get taskrun
- 133 kubectl get pods
- 134 kubectl explain --recursive pod.spec
- 135 kubectl explain --recursive pod.spec | wc
- 136 kubectl explain --recursive pod.spec | grep -i -A 10 securitycontext | less
- 137 kubectl explain --recursive pod.spec.securityContext
- 138 kubectl explain --recursive pod.spec.securityContext.runAsUser
- 139 vim securitycontextdemo2.yaml
- 140 kubectl apply -f securitycontextdemo2.yaml
- 141 kubectl get pods
- 142 kubectl delete sidecar-pod
- 143 kubectl delete pod sidecar-pod
- 144 kubectl get pods
- 145 kubectl exec -it security-context-demo -- sh
- 146 vim securitycontextdemo2.yaml
- 147 vim securitycontextdemo.yaml
- 148 kubectl create -f securitycontextdemo.yaml
- 149 kubectl get pods
- 150 kubectl get pods nginxsecure -o yaml | less
- 151 kubectl describe pods nginxsecure
- 152 kubectl get pods
- 153 for i in busybox3 mydb mynginx mynginx2 nginxlab nginxsecure; do kubectl delete pod $i; done
- 154 kubectl create -h
- 155 kubectl create -h | less
- 156 kubectl create job -h | less
- 157 kubectl create job onejob --image=busybox -- date
- 158 kubectl get jobs,pod
- 159 kubectl create job falsejob --image=busybox -- false
- 160 kubectl get jobs,pod
- 161 kubectl get jobs onejob -o yaml | grep restartPolicy
- 162 kubectl get jobs,pod
- 163 kubectl delete job falsejob
- 164 kubectl create job falsejob --image=busybox -- false
- 165 kubectl logs falsejob-55qhh
- 166 kubectl get jobs
- 167 kubectl delete job falsejob
- 168 kubectl create job mynewjob --image=busybox --dry-run=client -o yaml -- sleep 5 > mynewjob.yaml
- 169 kubectl create job --help | less
- 170 vim mynewjob.yaml
- 171 kubectl explain job.spec | less
- 172 vim mynewjob.yaml
- 173 kubectl create -f mynewjob.yaml
- 174 kubectl get jobs,pod
- 175 kubectl create cronjob --schedule="*/3 * * * 1-5" --image=busybox -- echo greetings from your cluster
- 176 kubectl create cronjob runme --schedule="*/3 * * * 1-5" --image=busybox -- echo greetings from your cluster
- 177 kubectl get cronjob,job,pod
- 178 date
- 179 kubectl get cronjob,job,pod
- 180 kubectl logs onejob-ddxfb
- 181 kubectl delete cronjobs.batch runme
- 182 vim frontend-resources.yaml
- 183 kubectl create -f frontend-resources.yaml
- 184 vim frontend-resources.yaml
- 185 kubectl create -f frontend-resources.yaml
- 186 kubectl get pods
- 187 kubectl delete pod security-context-demo
- 188 kubectl get pods
- 189 kubectl describe pod frontend
- 190 kubectl get pods
- 191 minikube ssh
- 192 kubectl delete pod frontend
- 193 vim frontend-resources.yaml
- 194 kubectl create -f frontend-resources.yaml
- 195 kubectl get pods
- 196 kubectl describe pod frontend
- 197 kubectl delete pod frontend
- 198 vim frontend-resources.yaml
- 199 kubectl create -f frontend-resources.yaml
- 200 kubectl get all
- 201 kubectl describe pod frontend
- 202 kubectl delete -f frontend-resources.yaml
- 203 vim frontend-resources.yaml
- 204 kubectl explain pod.spec | less
- 205 ./countdown 13
- 206 kubectl create deploy -h | less
- 207 kubectl create deployment myweb --image=nginx --replicas=3
- 208 kubectl get all
- 209 kubectl describe deployments.apps myweb | less
- 210 kubectl get all --selector app=myweb
- 211 kubectl delete pod myweb-8764bf4c8-jn4xf
- 212 kubectl get pods
- 213 vim redis-deploy.yaml
- 214 kubectl create -f redis-deploy.yaml
- 215 kubectl api-versions
- 216 kubectl api-resources | less
- 217 vim redis-deploy.yaml
- 218 kubectl create -f redis-deploy.yaml
- 219 kubectl get all
- 220 kubectl edit deployments.apps redis
- 221 kubectl get all
- 222 kubectl delete rs redis-696dfdfbfc
- 223 kubectl get all
- 224 kubectl create deploy nginx-lab7 --image=nginx --replicsa=3
- 225 kubectl create deploy nginx-lab7 --image=nginx --replicas=3
- 226 kubectl get all --selector app=nginx-lab7
- 227 kubectl delete deploy nginx-lab7
- 228 kubectl delete deployments.apps redis
- 229 history | grep source
- 230 kubectl create deploy nginxup --image=nginx:1.14
- 231 kubectl get deploy -o yaml | less
- 232 kubectl get deploy nginxup -o yaml | less
- 233 kubectl scale deployment nginxup --replicas=5
- 234 kubectl get all --selector app=nginxup
- 235 kubectl set image deploy nginxup nginx=nginx:1.17
- 236 kubectl get all --selector app=nginxup
- 237 kubectl set -h | less
- 238 kubectl create deploy bluelabel --image=nginx
- 239 kubectl get all --show-labels --selector app=bluelabel
- 240 kubectl label deployments.apps bluelabel state=demo
- 241 kubectl get all --show-labels --selector app=bluelabel
- 242 kubectl get all --show-labels --selector state=demo
- 243 kubectl describe deployments.apps bluelabel
- 244 kubectl describe pod bluelabel-5996d849cb-5mjgc
- 245 kubectl get all --show-labels --selector app=bluelabel
- 246 kubectl scale deployment bluelabel --replicas=3
- 247 kubectl label pod bluelabel-5996d849cb-l5dgc app-
- 248 kubectl get pods --show-label | grep blue
- 249 kubectl get pods --show-labels | grep blue
- 250 kubectl delete deploy bluelabel
- 251 kubectl get pods --show-labels | grep blue
- 252 ./countdown 13
- 253 vim sleepy.yaml
- 254 kubectl create job --help
- 255 kubectl create job --help | less
- 256 kubectl create job my-job --image=busybox -- sleep 30 --dry-run=client -o yaml > lab9.yaml
- 257 vim lab9.yaml
- 258 kubectl create job my-job --image=busybox --dry-run=client -o yaml -- sleep 30 > lab9.yaml
- 259 vim lab9.yaml
- 260 kubectl explain job.spec | less
- 261 vim lab9.yaml
- 262 kubectl create -f lab9.yaml
- 263 kubectl delete job my-job
- 264 kubectl create -f lab9.yaml
- 265 kubectl get jobs,pod
- 266 vim lab9.yaml
- 267 history | grep bluela
- 268 kubectl create deploy bluelabel --image=nginx
- 269 kubectl get deploy bluelabel -o yaml
- 270 kubectl scale deployment bluelabel --replicas=4
- 271 kubectl get all --selector app=bluelabel
- 272 kubectl set env deploy bluelabel type=blended
- 273 kubectl get all --selector app=bluelabel
- 274 vim rolling.yaml
- 275 kubectl create -f rolling.yaml
- 276 kubectl rollout history deployment
- 277 kubectl edit deployments.apps rolling-nginx
- 278 kubectl rollout history deployment
- 279 kubectl describe deployments.apps rolling-nginx
- 280 kubectl rollout history deployment rolling-nginx --revision=2
- 281 kubectl rollout history deployment rolling-nginx --revision=1
- 282 kubectl rollout undo deployment rolling-nginx --to-revision=1
- 283 kubectl get all --selector app=rolling-nginx
- 284 kubectl get all
- 285 kubectl get deployments.apps rolling-nginx -o yaml | less
- 286 ./countdown 14
- 287 kubectl create deployment nginxsvc --image=nginx
- 288 kubectl scale deployment nginxsvc --replicas=3
- 289 kubectl expose deployment nginxsvc
- 290 kubectl expose deployment nginxsvc --port=80
- 291 kubectl get svc
- 292 kubectl describe svc nginxsvc
- 293 kubectl edit svc nginxsvc
- 294 kubectl get pods -o wide --selector app=nginxsvc
- 295 kubectl get endpoints
- 296 kubectl get svc
- 297 curl 10.102.80.104
- 298 minikube ssh
- 299 kubectl edit svc nginxsvc
- 300 kubectl get svc
- 301 minikube ip
- 302 curl 192.168.49.2
- 303 curl 192.168.49.2:32131
- 304 kubectl edit svc nginxsvc
- 305 kubectl get svc
- 306 curl 192.168.49.2:32000
- 307 kubectl run testpod --image=busybox -- sleep 3600
- 308 kubectl get svc
- 309 kubectl get svc,pods -n kube-system
- 310 kubectl exec -it testpod -- cat /etc/resolv.conf
- 311 kubectl exec -it testpod -- nslookup nginxsvc
- 312 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement