sandervanvugt

CKAD day3 oct21

Oct 15th, 2021
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.22 KB | None | 0 0
  1. student@student-virtual-machine:~$ history
  2. 1 sudo apt install git vim -y
  3. 2 git clone https://github.com/sandervanvugt/ckad
  4. 3 cd ckad
  5. 4 ls
  6. 5 ./minikube-docker-setup.sh
  7. 6 minikube start --vm-driver=docker
  8. 7 history
  9. 8 ls
  10. 9 minikube status
  11. 10 minikube dashboard
  12. 11 kubectl get all
  13. 12 curl 10.99.11.196
  14. 13 minikube ssh
  15. 14 ls
  16. 15 kubectl version
  17. 16 ls
  18. 17 ./countdown 13
  19. 18 kubectl api-resources | less
  20. 19 kubectl get all
  21. 20 kubectl get pods -o wide
  22. 21 kubectl delete pod removemeginx-b4b69d8d7-qkmmp
  23. 22 kubectl get all
  24. 23 kubectl api-versions
  25. 24 minikube ssh
  26. 25 kubectl --v=10 get pods
  27. 26 kubectl proxy --port=8001 &
  28. 27 curl http://localhost:8001/version
  29. 28 curl http://localhost:8001/api/v1/namespaces/default/pods
  30. 29 curl http://localhost:8001/api/v1/namespaces/default/pods/removemeginx-b4b69d8d7-4mds4
  31. 30 curl -XDELETE http://localhost:8001/api/v1/namespaces/default/pods/removemeginx-b4b69d8d7-4mds4
  32. 31 kubectl get pods
  33. 32 kubectl -h
  34. 33 kubectl -h | less
  35. 34 kubectl create -h | less
  36. 35 kubectl create serviceaccount -h | less
  37. 36 kubectl completion -h
  38. 37 source <(kubectl completion bash)
  39. 38 kubectl config view
  40. 39 cd ~/.kube/c
  41. 40 cd ~/.kube/
  42. 41 vim config
  43. 42 cd -
  44. 43 history; sleep 2; ./countdown 12
  45. 44 history; sleep 120; ./countdown 10
  46. 45 kubectl get pods
  47. 46 kubectl run -h | less
  48. 47 kubectl run ghost --image=ghost:0.9
  49. 48 kubectl get pods
  50. 49 kubectl describe pod ghost
  51. 50 kubectl get pods ghost
  52. 51 kubectl get pods ghost -o yaml | less
  53. 52 kubectl get pods
  54. 53 kubectl delete pod ghost
  55. 54 kubectl get pods
  56. 55 kubectl explain pods
  57. 56 kubectl explain pods.spec
  58. 57 kubectl explain pods.spec.containers
  59. 58 kubectl explain --recursive pods.spec | less
  60. 59 history
  61. 60 kubectl run ghost --image=ghost:0.9 --dry-run=client -o yaml > myghost.yaml
  62. 61 vim myghost.yaml
  63. 62 kubectl api-resources | less
  64. 63 vim myghost.yaml
  65. 64 kubectl create -f myghost.yaml
  66. 65 vim myghost.yaml
  67. 66 kubectl apply -f myghost.yaml
  68. 67 kubectl replace -f myghost.yaml
  69. 68 kubectl get pods
  70. 69 history
  71. 70 kubectl delete -f myghost.yaml
  72. 71 vim myghost.yaml
  73. 72 kubectl apply -f myghost.yaml
  74. 73 vim myghost.yaml
  75. 74 kubectl apply -f myghost.yaml
  76. 75 ./countdown 10
  77. 76 vim sidecar.yaml
  78. 77 kubectl create -f sidecar.yaml
  79. 78 kubectl exec -it sidecar-pod -c sidecar /bin/bash
  80. 79 vim morevolumes.yaml
  81. 80 vim initpod.yaml
  82. 81 kubectl create -f initpod.yaml
  83. 82 kubectl get pods
  84. 83 kubectl delete -f initpod.yaml
  85. 84 vim initpod.yaml
  86. 85 kubectl create -f initpod.yaml
  87. 86 kubectl get pods
  88. 87 vim sidecar.yaml
  89. 88 kubectl run mydb --image=mariadb
  90. 89 kubectl get all
  91. 90 kubectl describe pod mydb
  92. 91 kubectl logs mydb
  93. 92 kubectl delete pod mydb
  94. 93 kubectl run -h | less
  95. 94 kubectl run mydb --image=mariadb --env=MARIADB_ROOT_PASSWORD=password
  96. 95 kubectl get pods
  97. 96 kubectl exec -it mydb -- sh
  98. 97 history
  99. 98 sudo poweroff
  100. 99 ip a
  101. 100 minikube start
  102. 101 history
  103. 102 kubectl explain pod.spec.securityContext
  104. 103 kubectl explain pod.spec.containers.spec.securityContext
  105. 104 kubectl explain pod.spec.containers.securityContext
  106. 105 history
  107. 106 kubectl explain --recursive pod.spec | less
  108. 107 cd ckad/
  109. 108 vim securitycontextdemo2.yaml
  110. 109 kubectl apply -f securitycontextdemo2.yaml
  111. 110 kubectl get pods
  112. 111 source <(kubectl completion bash)
  113. 112 kubectl exec -it securitycontextdemo -- sh
  114. 113 kubectl get pods
  115. 114 kubectl exec -it security-context-demo -- sh
  116. 115 kubectl apply -f securitycontextdemo2.yaml
  117. 116 vim securitycontextdemo2.yaml
  118. 117 vim securitycontextdemo.yaml
  119. 118 kubectl create -f securitycontextdemo.yaml
  120. 119 kubectl get pods
  121. 120 kubectl describe nginxsecure
  122. 121 kubectl describe pod nginxsecure
  123. 122 kubectl get all
  124. 123 kubectl delete all --all
  125. 124 kubectl create -h | less
  126. 125 kubectl create job -h | less
  127. 126 kubectl create job my-job --image=busybox -- date --dry-run=client -o yaml
  128. 127 kubectl create job my-job --image=busybox --dry-run=client -o yaml -- date
  129. 128 vim simplejob.yaml
  130. 129 kubectl create -f simplejob.yaml
  131. 130 kubectl get all
  132. 131 kubectl delete job/my-job
  133. 132 kubectl get all
  134. 133 kubectl get jobs simple-job -o yaml
  135. 134 kubectl delete jobs.batch simple-job
  136. 135 vim simplejob.yaml
  137. 136 kubectl create -f simplejob.yaml
  138. 137 kubectl get all
  139. 138 kubectl delete jobs.batch simple-job
  140. 139 vim simplejob.yaml
  141. 140 kubectl create -f simplejob.yaml
  142. 141 kubectl get all
  143. 142 vim simplejob.yaml
  144. 143 kubectl get all
  145. 144 kubectl explain CronJob.spec | less
  146. 145 kubectl create -h | less
  147. 146 kubectl create cronjob -h | less
  148. 147 vim cron-example.yaml
  149. 148 kubectl create -f cron-example.yaml
  150. 149 kubectl get cronjobs.batch hello
  151. 150 kubectl get cronjobs
  152. 151 kubectl get jobs --watch
  153. 152 kubectl get all
  154. 153 kubectl logs hello-27236922--1-g9f57
  155. 154 kubectl delete cronjob hello
  156. 155 kubectl create cronjob -h | less
  157. 156 # kubectl create cronjob my-job --image=busybox --schedule="*/1 * * * *" -- date
  158. 157 kubectl create cronjob my-job --image=busybox --schedule="*/5 * * * *" -- logger hello world
  159. 158 kubectl get all
  160. 159 kubectl get ns
  161. 160 kubectl get all
  162. 161 kubectl get all -A
  163. 162 kubectl get all -n kube-system
  164. 163 kubectl get all -A
  165. 164 kubectl create ns secret
  166. 165 vim busybox-ns.yaml
  167. 166 kubectl run -h | less
  168. 167 kubectl run busybox -n secret -- sleep 1800
  169. 168 kubectl run sleepubox --image=busybox -n secret -- sleep 1800
  170. 169 kubectl get all
  171. 170 kubectl get pods -n secret
  172. 171 kubectl config set-context --current -n secret
  173. 172 kubectl config set-context --current --namespace=secret
  174. 173 kubectl get pods
  175. 174 kubectl config set-context --current --namespace=default
  176. 175 ./countdown 12
  177. 176 kubectl delete --help | less
  178. 177 kubectl get pods -A
  179. 178 kubectl delete all --all
  180. 179 kubectl get pods -A
  181. 180 vim frontend-resources.yaml
  182. 181 kubectl create -f frontend-resources.yaml
  183. 182 kubectl get all
  184. 183 kubectl describe pod frontend
  185. 184 kubectl edit pod frontend
  186. 185 kubectl delete pod frontend --grace-period=0 --force
  187. 186 kubectl get all
  188. 187 vim frontend-resources.yaml
  189. 188 kubectl create -f frontend-resources.yaml
  190. 189 kubectl get pods
  191. 190 kubectl run --help | less
  192. 191 kubectl run myserver --image=nginx --limits="memory=512M"
  193. 192 kubectl explain deployment.spec
  194. 193 kubectl explain deployment.spec.strategy
  195. 194 kubectl explain deployment.spec.strategy.rollingUpdate
  196. 195 kubectl create deployment nginxblah --image=nginx
  197. 196 kubectl get all
  198. 197 kubectl scale deployment nginxblah --replicas=3
  199. 198 kubectl get all
  200. 199 kubectl delete pod nginxblah-7dc7fb8c85-2hhj6
  201. 200 kubectl get pods
  202. 201 kubectl get deployments.apps nginxblah -o yaml | less
  203. 202 kubectl get all --show-labels
  204. 203 kubectl get all --selector app=nginxblah
  205. 204 kubectl get all --show-labels
  206. 205 kubectl label pod nginxblah-7dc7fb8c85-zqgbk app-
  207. 206 kubectl get all --show-labels
  208. 207 kubectl get deployments.apps nginxblah -o yaml | less
  209. 208 kubectl edit deployments.apps nginxblah
  210. 209 kubectl get all
  211. 210 vim redis-deploy.yaml
  212. 211 kubectl create -f redis-deploy.yaml
  213. 212 kubectl api-versions | less
  214. 213 vim redis-deploy.yaml
  215. 214 kubectl create -f redis-deploy.yaml
  216. 215 kubectl scale deployment redis --replicas=2
  217. 216 kubectl get all
  218. 217 kubectl delete rs redis-6fb5b985bc
  219. 218 history
  220. 219 kubectl get all
  221. 220 kubectl delete deployments.apps redis
  222. 221 kubectl explain replicaset.spec
  223. 222 kubectl explain deployment.spec
  224. 223 ./countdown 60
  225. 224 kubectl create deployment nginx-lab7 --image=nginx --replicas=3
  226. 225 ./countdown 13
  227. 226 cd ..
  228. 227 https://github.com/cncf/curriculum
  229. 228 git clone https://github.com/cncf/curriculum
  230. 229 cd ckad/
  231. 230 vim rolling.yaml
  232. 231 kubectl create -f rolling.yaml
  233. 232 kubectl rollout history deployment
  234. 233 kubectl edit deployments.apps rolling-nginx
  235. 234 kubectl get all
  236. 235 kubectl rollout history deployment
  237. 236 kubectl describe deployments.apps rolling-nginx
  238. 237 kubectl rollout history deployment rolling-nginx --revision=2
  239. 238 kubectl rollout history deployment rolling-nginx --revision=1
  240. 239 kubectl rollout undo deployment rolling-nginx --to-revision=1
  241. 240 kubectl get all
  242. 241 kubectl get deploy --show-labels
  243. 242 kubectl create deploy nginxsvc --image=nginx --replicas=3
  244. 243 kubectl get all --selector app=nginxsvc
  245. 244 kubectl expose deployment nginxsvc
  246. 245 kubectl expose deployment nginxsvc --port=80
  247. 246 kubectl get all --selector app=nginxsvc
  248. 247 kubectl get endpoint
  249. 248 kubectl get endpoints
  250. 249 curl 10.107.210.223
  251. 250 minikube ssh
  252. 251 kubectl edit svc nginxsvc
  253. 252 kubectl get svc
  254. 253 minikube ip
  255. 254 curl http://$(minikube ip):32000
  256. 255 ./countdown 12
  257. 256 kubectl get svc
  258. 257 kubectl get svc nginxsvc
  259. 258 kubectl get svc nginxsvc -o yaml
  260. 259 kubectl get pods -n kube-system
  261. 260 vim busybox.yaml
  262. 261 kubectl create -f busybox.yaml
  263. 262 kubectl get svc
  264. 263 kubectl exec -it busybox2 -- nslookup nginxsvc
  265. 264 minikube addons list
  266. 265 minikube addons enable ingress
  267. 266 kubect get all --selector app=nginxsvc
  268. 267 kubectl get all --selector app=nginxsvc
  269. 268 curl http://$(minikube ip):32000
  270. 269 vim nginxsvc-ingress.yaml
  271. 270 kubectl apply -f nginxsvc-ingress.yaml
  272. 271 kubectl get ingress
  273. 272 sudo vim /etc/hosts
  274. 273 minikube ip
  275. 274 cat /etc/hosts
  276. 275 kubectl get ingress
  277. 276 curl nginxsvc.info
  278. 277 kubectl get ingress
  279. 278 kubectl get ingress -o yaml
  280. 279 kubectl describe ingress nginxsvc-ingress
  281. 280 kubectl create deployment newdep --image=gcr.io/google-samples/hello-app:2.0
  282. 281 kubectl get deploy
  283. 282 kubectl expose deployment newdep --port=8080
  284. 283 kubectl describe ingress nginxsvc-ingress
  285. 284 curl nginxsvc.info/hello
  286. 285 history
  287. 286 sudo poweroff
  288. 287 minikube status
  289. 288 minikube start
  290. 289 history
  291. 290 kubectl get all -n kube-system
  292. 291 cd ckad/
  293. 292 vim nwpolicy-complete-example.yaml
  294. 293 kubectl apply -f nwpolicy-complete-example.yaml
  295. 294 kubectl get all
  296. 295 kubectl expose pod nginx --port=80
  297. 296 kubectl exec -it busybox -- wget --spider --timeout=1 nginx
  298. 297 kubectl label pod busybox access=true
  299. 298 kubectl exec -it busybox -- wget --spider --timeout=1 nginx
  300. 299 kubectl explain pod.spec.volumes | less
  301. 300 kubectl delete all --all
  302. 301 vim morevolumes.yaml
  303. 302 kubectl create -f morevolumes.yaml
  304. 303 kubectl exec -it morevol2 -c centos1 -- touch /centos1/c1-file
  305. 304 kubectl exec -it morevol2 -c centos2 -- ls /centos2/
  306. 305 ls
  307. 306 vim pv.yaml
  308. 307 kubectl create -f pv.yaml
  309. 308 kubectl get pv
  310. 309 vim pvc.yaml
  311. 310 kubectl create -f pvc.yaml
  312. 311 kubectl get all
  313. 312 kubectl get pvc
  314. 313 kubectl get pv
  315. 314 kubectl get storageclass
  316. 315 ls
  317. 316 vim pv-pod.yaml
  318. 317 kubectl create -f pv-pod.yaml
  319. 318 kubectl exec -it pv-pod -- touch /usr/share/nginx/hello
  320. 319 kubectl create -f pv-pod.yaml
  321. 320 vim pv-pod.yaml
  322. 321 kubectl exec -it pv-pod -- touch /usr/share/nginx/html/hello
  323. 322 kubectl get pv
  324. 323 kubectl describe pv pvc-e694a8b6-0bb8-426c-9003-6c2f90a3937e
  325. 324 minikube ssh
  326. 325 vim pv-pvc-pod.yaml
  327. 326 kubectl create -f pv-pvc-pod.yaml
  328. 327 kubectl delete -f pv-pvc-pod.yaml
  329. 328 kubectl create ns myvol
  330. 329 kubectl create -f pv-pvc-pod.yaml
  331. 330 kubectl get pv
  332. 331 kubectl create -h
  333. 332 vim variables
  334. 333 kubectl create cm variables --from-env-file=variables
  335. 334 source <(kubectl completion bash)
  336. 335 kubectl describe cm/variables
  337. 336 vim cm-test-pod.yaml
  338. 337 kubectl create -f cm-test-pod.yaml
  339. 338 kubectl logs pod/test1
  340. 339 kubectl create cm morevars --from-literal=VAR3=giat --from-literal=VAR4=horse
  341. 340 kubectl describe configmaps morevars
  342. 341 vim nginx-custom-config.conf
  343. 342 kubectl create cm --help | less
  344. 343 kubectl create cm nginx-cm --from-file=nginx-custom-config.conf
  345. 344 kubectl describe cm nginx-cm
  346. 345 vim nginx-cm.yml
  347. 346 kubectl create -f nginx-cm.yml
  348. 347 kubectl exec -it nginx-cm -- cat /etc/nginx/conf.d/default.conf
  349. 348 kubect create deploy mydb --image=mariadb --replicas=3
  350. 349 kubectl create deploy mydb --image=mariadb --replicas=3
  351. 350 kubectl get pods
  352. 351 kubectl describe pods mydb-6875fcdfbd-5wr4v
  353. 352 kubectl logs mydb-6875fcdfbd-l2wdm
  354. 353 kubectl get all --selector app=mydb
  355. 354 kubectl set env -h | less
  356. 355 kubectl create cm mydbvars --from-literals=MYSQL_ROOT_PASSWORD=password
  357. 356 kubectl create cm mydbvars --from-literal=MYSQL_ROOT_PASSWORD=password
  358. 357 kubectl describe cm mydbvars
  359. 358 kubectl set env --from-configmap/mydbvars deploy/mydb
  360. 359 kubectl set env --fromconfigmap/mydbvars deploy/mydb
  361. 360 kubectl set env --help | less
  362. 361 kubectl set env --from=configmap/mydbvars deploy/mydb
  363. 362 kubectl get all --selector app=mydb
  364. 363 kubectl get deploy mydb -o yaml | less
  365. 364 kubectl get deploy mydb -o yaml > mydb.yaml
  366. 365 vim mydb.yaml
  367. 366 kubectl get pods
  368. 367 kubectl describe pod test1
  369. 368 kubectl get pods test1 -o yaml | less
  370. 369 ./countdown 14
  371. 370 sudo poweroff
  372. 371 minikube start
  373. 372 kubectl get pods
  374. 373 source <(kubectl completion bash)
  375. 374 kubectl describe pod morevol2
  376. 375 kubectl get pods
  377. 376 kubectl describe test1
  378. 377 kubectl describe pod test1
  379. 378 sudo reboot
  380. 379 ping nu.nl
  381. 380 ping 8.8.8.8
  382. 381 ip a
  383. 382 ip link set ens33 up
  384. 383 sudo ip link set ens33 up
  385. 384 ip a
  386. 385 sudo dhclient
  387. 386 history
  388.  
  389. 577 ssh-keygen; kubectl create secret generic my-secret --from-file=ssh-private-key=/home/student/.ssh/id_rsa --from-literal=passphrase=password
  390. 578 source <(kubectl completion bash)
  391. 579 kubectl describe secrets my-secret
  392. 580 kubectl get secret my-secret -o yaml
  393. 581 echo cGFzc3dvcmQ= | base64 -d
  394. 582 kubectl create secret generic secretstuff --from-literal=password=passwod --from-literal=user=linda
  395. 583 cd ckad/
  396. 584 vim pod-secret.yaml
  397. 585 kubectl create -f pod-secret
  398. 586 kubectl create -f pod-secret.yaml
  399. 587 kubectl describe pod secretbox2
  400. 588 kubectl exec -it secretbox2 -- /bin/sh
  401. 589 vim pod-secret.yaml
  402. 590 kubectl create secret generic mysql --from-literal=passsword=root
  403. 591 kubectl get secrets mysql -o yaml
  404. 592 vim pod-secret-as-var.yaml
  405. 593 kubectl create -f pod-secret-as-var.yaml
  406. 594 kubectl exec -it mymysql -- /bin/bash
  407. 595 kubectl get pods
  408. 596 kubectl describe pod mymysql
  409. 597 kubectl describe secrets mysql
  410. 598 kubectl delete -f pod-secret-as-var.yaml
  411. 599 vim pod-secret-as-var.yaml
  412. 600 kubectl create -f pod-secret-as-var.yaml
  413. 601 kubectl get pods
  414. 602 kubectl exec -it mymysql -- /bin/bash
  415. 603 ./countdown 14
  416. 604 history
  417.  
  418. student@machine3:~/ckad$ history
  419. 1 minikube start --vm-driver=docker
  420. 2 kubectl create deploy newginx --image=nginx --replicas=3
  421. 3 source <(kubectl completion bash)
  422. 4 kubectl get pod newginx-645dff97c6-wlw5l -o yaml | less
  423. 5 vim mypod.yaml
  424. 6 kubectl apply -f mypod.yaml
  425. 7 kubectl get pods mypod -o yaml | less
  426. 8 kubectl exec -it mypod -- sh
  427. 9 vim mysa.yaml
  428. 10 kubectl apply -f mysa.yaml
  429. 11 vim list-pods.yaml
  430. 12 kubectl create -f list-pods.yaml
  431. 13 kubectl get roles -o yaml
  432. 14 vim list-pods-mysa-binding.yaml
  433. 15 kubectl create -f list-pods-mysa-binding.yaml
  434. 16 vim mysapod.yaml
  435. 17 kubectl apply -f mysapod.yaml
  436. 18 kubectl exec -it mypod -- sh
  437. 19 kubectl exec -it mysapod -- sh
  438. 20 vim cm-test-pod.yaml
  439. 21 kubectl create cm variables --from-file=variables
  440. 22 kubectl create -f cm-test-pod.yaml
  441. 23 kubectl get pods
  442. 24 kubectl describe po test1
  443. 25 kubectl logs test1
  444. 26 vim cm-test-pod.yaml
  445. 27 kubectl apply -f cm-test-pod.yaml
  446. 28 kubectl delete pod test1
  447. 29 kubectl apply -f cm-test-pod.yaml
  448. 30 kubectl get pods
  449. 31 vim busybox-ready.yaml
  450. 32 kubectl create -f busybox-ready.yaml
  451. 33 kubectl get pods
  452. 34 kubectl edit pods busybox-ready
  453. 35 kubectl exec -it busybox-ready -- /bin/sh
  454. 36 kubectl get pods
  455. 37 vim nginx-probes.yaml
  456. 38 kubectl create -f nginx-probes.yaml
  457. 39 kubectl get pods
  458. 40 cd
  459. 41 wget https://get.helm.sh/helm-v3.0.0-linux-amd64.tar.gz
  460. 42 tar -xvf helm-v3.0.0-linux-amd64.tar.gz
  461. 43 sudo cp linux-amd64/helm /usr/bin
  462. 44 helm --help
  463. 45 helm search --help
  464. 46 helm search hub --help
  465. 47 helm search hub database
  466. 48 helm repo add stable https://charts.helm/sh/stable
  467. 49 helm repo add stable https://charts.helm.sh/stable
  468. 50 help repo update
  469. 51 helm repo update
  470. 52 kubectl get all
  471. 53 helm --debug install mydb myrepo/mariadb --set master.persistence.enabled=false --set slave.persistence.enabled=false
  472. 54 helm --debug install mydb mariadb --set master.persistence.enabled=false --set slave.persistence.enabled=false
  473. 55 helm repo --help | less
  474. 56 helm repo list
  475. 57 helm --debug install mydb stable/mariadb --set master.persistence.enabled=false --set slave.persistence.enabled=false
  476. 58 kubectl get all
  477. 59 cd ckad/
  478. 60 ls
  479. 61 ./countdown 12
  480. 62 git pull
  481. 63 ls
  482. 64 cd my-ghost-app/
  483. 65 cat Chart.yaml
  484. 66 ls
  485. 67 cat templates/deployment.yaml
  486. 68 cat templates/service.yaml
  487. 69 cat values.yaml
  488. 70 cd ..
  489. 71 helm template --debug my-ghost-app
  490. 72 helm install -f my-ghost-app/values.yaml my-ghost-app my-ghost-app/
  491. 73 kubectl get all
  492. 74 kubectl create deployment old-nginx --image=nginx:1.14 --replicas=3 --dry-run=client -o yaml > ../oldnginx.yaml
  493. 75 vim ../oldnginx.yaml
  494. 76 kubectl create -f ../oldnginx.yaml
  495. 77 kubectl get all --selector type=canary
  496. 78 kubectl expose deploy old-nginx --name=oldnginx --port=80 --selector type=canary
  497. 79 kubectl get svc oldnginx -o yaml
  498. 80 kubectl get endpoints
  499. 81 minikube ssh
  500. 82 kubectl get svc
  501. 83 minikube ssh
  502. 84 cd ..
  503. 85 kubectl cp old-nginx-5b4869b6fd-xxhct:/usr/share/nginx/html/index.html
  504. 86 kubectl cp old-nginx-5b4869b6fd-xxhct:/usr/share/nginx/html/index.html index.html
  505. 87 vim index.html
  506. 88 kubectl create cm canary --from-file=index.html
  507. 89 kubectl describe cm canary
  508. 90 cd ckad/
  509. 91 ls
  510. 92 git pull
  511. 93 vim canary.yaml
  512. 94 kubectl create -f canary.yaml
  513. 95 kubectl get endpoints
  514. 96 kubectl get svc
  515. 97 minikube ssh
  516. 98 kubectl get deploy
  517. 99 kubectl scale deployment new-nginx --replicas=3
  518. 100 kubectl scale deploy old-nginx --replicas=0
  519. 101 kubectl get deploy
  520. 102 history
  521.  
Add Comment
Please, Sign In to add comment