Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- statefulsets.apps
- storageclasses.storage.k8s.io
- validatingwebhookconfigurations.admissionregistration.k8s.io
- volumeattachments.storage.k8s.io
- [student@localhost ckad]$ history
- 1 sudo dnf install -y vim git
- 2 git clone https://github.com/sandervanvugt/ckad
- 3 sudo -i
- 4 history
- 5 sudo -i
- 6 cd ckad/
- 7 vim sidecar.yaml
- 8 kubectl exec -it sidecar-pod -c sidecar -- /bin/bash
- 9 kubectl get pods
- 10 minikube status
- 11 minikube start
- 12 vim sidecar.yaml
- 13 kubectl exec -it sidecar-pod -c sidecar -- /bin/bash
- 14 history | grep git
- 15 ls
- 16 kubectl explain pods
- 17 kubectl explain pods.spec
- 18 kubectl explain pods.spec.volumes
- 19 vim sidecar.yaml
- 20 kubectl exec -h | less
- 21 kubectl get pods
- 22 vim sidecar.yaml
- 23 vim initpod.yaml
- 24 kubectl create -f initpod.yaml
- 25 kubectl get pods
- 26 kubectl completion -h
- 27 source <(kubectl completion bash)
- 28 kubectl describe pods init-demo
- 29 kubectl get pods -h | less
- 30 kubectl get pods -o wide
- 31 kubectl describe pods init-demo
- 32 kubectl get events
- 33 kubectl get events -A
- 34 kubectl run nginx-lab --image nginx
- 35 kubectl get pods
- 36 kubectl get pods init-demo -o yaml | less
- 37 kubectl get pods.spec.restartpolicy
- 38 kubectl explain pods.spec.restartpolicy
- 39 kubectl explain pods.spec.restartPolicy
- 40 kubectl explain pods.spec.containers
- 41 ls
- 42 vim initpod.yaml
- 43 kubectl create -f initpod.yaml
- 44 vim initpod.yaml
- 45 kubectl create -f initpod.yaml
- 46 kubectl get pods
- 47 kubectl describe init-fail
- 48 kubectl describe pods init-fail
- 49 kubectl get pods
- 50 kubectl delete pods init-fail
- 51 kubectl get pods
- 52 kubectl exec -it busybox2 sh
- 53 kubectl get pods
- 54 kubectl logs busybox2
- 55 kubectl logs nginx-lab
- 56 kubectl logs sidecar-pod
- 57 kubectl logs sidecar-pod -c app
- 58 kubectl logs sidecar-pod -c sidecar
- 59 kubectl -h | less
- 60 ./countdown 12
- 61 kubectl logs -h | less
- 62 kubectl logs --all-containers
- 63 kubectl logs -h | less
- 64 kubectl get pods --show-labels
- 65 kubectl logs --selector=k8s-app=dashnginx
- 66 ls
- 67 kubectl get pods
- 68 kubectl port-forward pod/nginx-lab 8080:80
- 69 bg
- 70 curl http://localhost:8080
- 71 kubectl port-forward pod/nginx-lab 8080:80 -o yaml --dry-run
- 72 kubectl explain pod.spec
- 73 kubectl explain pod.spec.securityContext
- 74 kubectl explain pod.spec.containers.securityContext
- 75 history
- 76 vim securitycontextdemo.yaml
- 77 kubectl apply -f securitycontextdemo.yaml
- 78 kubectl get pods
- 79 kubectl describe pods nginxsecure
- 80 kubectl port-forward -h | less
- 81 sudo iptables -L
- 82 vim simplejob.yaml
- 83 kubectl create -f simplejob.yaml
- 84 kubectl get jobs
- 85 kubectl get pods
- 86 kubectl get jobs
- 87 kubectl get jobs simple-job -o yaml
- 88 vim simplejob.yaml
- 89 kubectl create -f simplejob.yaml
- 90 kubectl delete jobs.batch simple-job
- 91 kubectl get pods
- 92 kubectl create -f simplejob.yaml
- 93 kubectl get jobs
- 94 kubectl get pods
- 95 kubectl get all
- 96 kubectl explain CronJob.spec
- 97 kubectl explain CronJob.spec.schedule
- 98 vim cron-example.yaml
- 99 kubectl apply -f cron-example.yaml
- 100 kubectl get cronjobs.batch hello
- 101 kubectl get jobs
- 102 kubectl get pods
- 103 kubectl logs hello-1595346
- 104 kubectl logs hello-1595346360-gj54c
- 105 kubectl get jobs
- 106 kubectl delete cronjobs.batch hello
- 107 vim cron-example.yaml
- 108 kubectl explain pods.spec.containers.command
- 109 kubectl explain pods.spec.containers.args
- 110 vim frontend-resources.yaml
- 111 kubectl create -f frontend-resources.yaml
- 112 vim frontend-resources.yaml
- 113 kubectl get pods
- 114 kubectl describe frontend
- 115 kubectl describe pods frontend
- 116 kubectl logs frontend -c db
- 117 kubectl delete pod frontend
- 118 vim frontend-resources.yaml
- 119 kubectl create -f frontend-resources.yaml
- 120 kubectl describe pod frontend
- 121 kubectl get pods
- 122 kubectl delete pod frontend --grace-period=0 --force
- 123 ./countdown 14
- 124 kubectl get all --all-namespaces
- 125 kubectl get all --namespace=kube-system
- 126 kubectl create ns secret
- 127 kubectl get ns secret -o yaml
- 128 vim busybox-ns.yaml
- 129 kubectl create -f busybox-ns.yaml
- 130 kubectl config set-context --current --namespace=secret
- 131 kubectl config
- 132 kubectl config viewq
- 133 kubectl config view
- 134 kubectl create -f busybox-ns.yaml
- 135 kubectl config view --minify
- 136 kubectl config view --minify | grep secret
- 137 kubectl config view | grep secret
- 138 kubectl config view
- 139 kubectl config set-context --current --namespace=default
- 140 kubectl get ns secret -o yaml
- 141 kubectl explain deployments.spec | less
- 142 kubectl delete ns secret
- 143 kubectl get pods -A
- 144 kubectl get pods -A | grep busy
- 145 kubectl create nginxblah --image=nginx
- 146 kubectl create deployment nginxblah --image=nginx
- 147 kubectl get do
- 148 kubectl get deployments.apps
- 149 kubectl get deployments.apps nginxblah -o yaml | less
- 150 kubectl get all --selector app=nginxblah
- 151 kubectl get all --selector app=nginxblah --show-labels
- 152 kubectl delete pod nginxblah-7d698f57d-g5h5v
- 153 kubectl get all --selector app=nginxblah --show-labels
- 154 kubectl explain replicaset
- 155 kubectl explain replicaset.spec
- 156 kubectl explain deployment.spec | less
- 157 kubectl api-resources | less
- 158 kubectl edit deployments.apps nginxblah
- 159 kubectl get all --selector app=nginxblah --show-labels
- 160 kubectl scale deployment --replicas=0
- 161 kubectl scale deployment nginxblah --replicas=0
- 162 kubectl get all --selector app=nginxblah --show-labels
- 163 kubectl scale deployment nginxblah --replicas=3
- 164 vim redis-deploy.yaml
- 165 kubectl create -f redis-deploy.yaml
- 166 vim redis-deploy.yaml
- 167 kubectl explain deployment
- 168 vim redis-deploy.yaml
- 169 kubectl create -f redis-deploy.yaml
- 170 kubectl edit redis-deploy.yaml
- 171 kubectl edit deployment redis-deploy.yaml
- 172 kubectl edit deployment redis
- 173 kubectl scale deployment redis --replicas=5
- 174 kubectl delete deployments.apps redis
- 175 kubectl explain statefullset
- 176 kubectl explain statefulset
- 177 kubectl get all --namespace=kube-system
- 178 vim rolling.yaml
- 179 kubectl create -f rolling.yaml
- 180 kubectl rollout history deployment rolling-nginx
- 181 kubectl edit deployments.apps rolling-nginx
- 182 kubectl get pods
- 183 kubectl get rs
- 184 kubectl rollout history deployment rolling-nginx
- 185 kubectl rollout history deployment rolling-nginx --revision=2
- 186 kubectl rollout history deployment rolling-nginx --revision=1
- 187 kubectl rollout undo deployment rolling-nginx --to-revision=1
- 188 kubectl get rs
- 189 ./countdown 12
- 190 kubectl get pods --show-labels
- 191 kubectl label pod rolling-nginx-6f55c5bb8b-64s9q app-
- 192 kubectl get pods --show-labels | grep rolling
- 193 kubectl get all | grep ghost
- 194 grep ghost *
- 195 kubectl create deployment spook --image=ghost
- 196 kubectl get deployments.apps --show-labels
- 197 kubectl label deployments.apps spook state=demo
- 198 kubectl get deployments.apps --show-labels
- 199 kubectl get deployments.apps --selector state=demo
- 200 kubectl run nginx --image=nginx
- 201 kubectl describe pod nginx
- 202 kubectl get pods --show-labels | grep nginx
- 203 kubectl label pod nginx run-
- 204 kubectl get pods --show-labels | grep nginx
- 205 kubectl get pods --show-labels | grep run=
- 206 kubectl get deploy
- 207 kubectl expose -h | less
- 208 kubectl expose deployment rolling-nginx --port=8088 --target-port=80
- 209 kubectl get deployments.apps --show-labels
- 210 kubectl get svc rolling-nginx
- 211 kubectl expose deployment nginxblah --port=8089 --target-port=80
- 212 kubectl get all --selector app-nginxblah
- 213 kubectl get all --selector app=nginxblah
- 214 kubectl describe svc nginxblah
- 215 kubectl label -h | less
- 216 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement