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
- 2 git clone https://github.com/sandervanvugt/ckad
- 3 cd ckad/
- 4 vim kube-setup.sh
- 5 sudo ls -l /root
- 6 ./kube-setup.sh
- 7 sudo reboot
- 8 history
- 9 df -h
- 10 free -m
- 11 history
- 12 cd ckad
- 13 ls
- 14 tail kube-setup.sh
- 15 minikube start --memory 4096 --vm-driver=kvm2
- 16 minikube status
- 17 kubectl get all
- 18 minikube -h | less
- 19 minikube dashboard
- 20 ./countdown 12
- 21 kubectl -h | less
- 22 kubectl completion -h
- 23 source <(kubectl completion bash)
- 24 kubectl get all
- 25 kubectl api-resources | less
- 26 kubectl explain pods
- 27 kubectl explain pods.spec
- 28 kubectl explain pods.spec | less
- 29 kubectl get all
- 30 kubectl delete pod dashginx-9577c55bf-6qr7h
- 31 kubectl get all
- 32 kubectl api-resources | grep repli
- 33 kubectl api-resources | grep apps
- 34 kubectl proxy --port=8001 &
- 35 curl http://localhost:8001/version
- 36 curl http://localhost:8001/api/v1/namespaces/default/pods
- 37 curl http://localhost:8001/api/v1/namespaces/default/pods | less
- 38 kubectl get pods
- 39 curl http://localhost:8001/api/v1/namespaces/default/pods/dashginx-9577c55bf-dvgh6
- 40 curl -XDELETE http://localhost:8001/api/v1/namespaces/default/pods/dashginx-9577c55bf-dvgh6
- 41 kubectl get all
- 42 history
- 43 ./countdown 12
- 44 netstat -tulpen | grep proxy
- 45 cd ..
- 46 cd .kube/
- 47 ls
- 48 less config
- 49 kubectl config view
- 50 cd
- 51 kubectl run -h | less
- 52 kubectl run mynginx --image=nginx
- 53 kubectl get all
- 54 kubectl get pods
- 55 kubectl describe pods mynginx
- 56 kubectl get pods
- 57 kubectl describe pod mydb
- 58 kubectl logs mydb
- 59 history
- 60 cd ckad/
- 61 ls
- 62 vim busybox.yaml
- 63 kubectl api-resources | less
- 64 vim busybox.yaml
- 65 kubectl create -f busybox.yaml
- 66 kubectl get pods
- 67 kubectl run dry --image=nginx --dry-run=client -o yaml
- 68 kubectl run dry --image=nginx --dry-run=client -o yaml > dry.yaml
- 69 vim dry.yaml
- 70 kubectl get pods
- 71 kubectl apply -f dry.yaml
- 72 kubectl get pods
- 73 kubectl delete pods dry
- 74 kubectl run -h | less
- 75 kubectl explain pods.spec
- 76 kubectl explain pods.spec.containers
- 77 kubectl explain pods.spec.containers.env
- 78 vim dry.yaml
- 79 kubectl create -f dry.yaml
- 80 vim dry.yaml
- 81 kubectl create -f dry.yaml
- 82 kubectl run -h | less
- 83 #kubectl run hazelcast --image=hazelcast/hazelcast --env="DNS_DOMAIN=cluster" --env="POD_NAMESPACE=default"
- 84 kubectl run dry --image=nginx --env=whatever=no --dry-run=client -o yaml > dry.yaml
- 85 vim dry.yaml
- 86 ./countdown 11
- 87 kubectl get pods
- 88 kubectl get pods mydb -o yaml
- 89 kubectl get pods mydb -o yaml > failingdb.yaml
- 90 vim failingdb.yaml
- 91 kubectl get deploy
- 92 kubectl get deploy dashginx -o yaml > dashginx.yaml
- 93 vim dashginx.yaml
- 94 vim morevolumes.yaml
- 95 vim sidecar.yaml
- 96 kubectl create -f sidecar.yaml
- 97 kubectl exec -it sidecar-pod -c sidecar /bin/bash
- 98 kubectl exec -it sidecar-pod -c sidecar -- /bin/bash
- 99 kubectl explain pods.spec.restartpolicy
- 100 kubectl explain pods.spec.restartPolicy
- 101 vim initpod.yaml
- 102 kubectl explain pod.spec
- 103 vim initpod.yaml
- 104 pastebin
- 105 history
- 106 minikube status
- 107 minikube start --memory 4096 --vm-driver=kvm2
- 108 grep vmx /proc/cpuinfo
- 109 sudo poweroff
- 110 minikube start --memory 4096 --vm-driver=kvm2
- 111 kubectl get pods
- 112 kubectl get all
- 113 kubectl get events
- 114 kubectl get pods
- 115 kubectl run sleepybox --image=busybox
- 116 kubectl get pods
- 117 kubectl describe sleepybox
- 118 kubectl describe pods sleepybox
- 119 kubectl completion -h | less
- 120 source <(kubectl completion bash)
- 121 kubectl describe pods mydb
- 122 kubectl logs mydb
- 123 kubectl describe pod mydb | less
- 124 kubectl get pods mydb -o yaml | less
- 125 kubectl exec -it mydb -- sh
- 126 kubectl exec -it mynginx -- sh
- 127 kubectl get pods
- 128 kubectl logs sidecar-pod
- 129 kubectl logs sidecar-pod -c app
- 130 kubectl logs sidecar-pod app
- 131 minikube ssh
- 132 kubectl api-resources | less
- 133 kubectl describe pod mydb | less
- 134 kubectl explain pod.spec.securityContext | less
- 135 kubectl explain pod.spec.containers.securityContext | less
- 136 kubectl explain --recursive pod.spec | less
- 137 cd ckad/
- 138 ls
- 139 vim securitycontextdemo2.yaml
- 140 kubectl create -f securitycontextdemo2.yaml
- 141 kubectl exec -it security-context-demo -- bash
- 142 kubectl exec -it security-context-demo -- sh
- 143 vim securitycontextdemo.yaml
- 144 kubectl create -f securitycontextdemo.yaml
- 145 kubectl get pods
- 146 kubectl describe nginxsvc-ingress.yaml
- 147 kubectl describe pods nginxsecure
- 148 kubectl get nodes -o wide
- 149 kubectl get pods -o wide
- 150 kubectl explain jobs.spec
- 151 vim simplejob.yaml
- 152 kubectl simplejob.yaml
- 153 kubectl create -f simplejob.yaml
- 154 kubectl get jobs
- 155 kubectl get all
- 156 kubectl get jobs -o yaml | less
- 157 kubectl delete jobs simple-job
- 158 vim simplejob.yaml
- 159 kubectl create -f simplejob.yaml
- 160 kubectl get all
- 161 ./countdown 12
- 162 kubectl explain cronjob.spec
- 163 vim cron-example.yaml
- 164 kubectl create -f cron-example.yaml
- 165 kubectl get all
- 166 date
- 167 kubectl get all
- 168 kubectl describe cronjobs.batch hello
- 169 kubectl get all
- 170 kubectl logs hello-1620739560-8rtfk
- 171 kubectl get ns
- 172 kubectl get pods
- 173 kubectl get pods -n kube-system
- 174 kubectl get pods -A
- 175 kubectl config view
- 176 kubectl config set-context --current --namespace=kube-system
- 177 kubect get all
- 178 kubectl get all
- 179 kubectl config set-context --current --namespace=default
- 180 oc get pods
- 181 kubectl get pods
- 182 kubectl create ns secret
- 183 kubectl get all -A
- 184 kubectl get pod -A
- 185 vim busybox-ns.yaml
- 186 kubectl create -f busybox-ns.yaml
- 187 kubectl get pods
- 188 vim busybox-ns.yaml
- 189 kubectl create -f busybox-ns.yaml
- 190 kubectl get pods -A
- 191 vim frontend-resources.yaml
- 192 kubectl create -f frontend-resources.yaml
- 193 kubectl get pods
- 194 kubectl describe pod frontend
- 195 kubectl delete -f frontend-resources.yaml
- 196 vim frontend-resources.yaml
- 197 kubectl create -f frontend-resources.yaml
- 198 kubectl describe pod frontend
- 199 kubectl get pods
- 200 kubectl delete -f frontend-resources.yaml
- 201 vim frontend-resources.yaml
- 202 kubectl create -f frontend-resources.yaml
- 203 kubectl get pods
- 204 kubectl delete all --all
- 205 kubectl get all -A
- 206 kubectl delete -h | less
- 207 kubectl explain deployment.spec
- 208 kubectl create -h | less
- 209 kubectl create deploy -h | less
- 210 kubectl create deployment sleepybox --image=busybox -- sleep 3600 --replicas=3
- 211 kubectl get all
- 212 kubectl describe pod sleepybox-67d699ffcc-fbsbh
- 213 kubectl logs sleepybox-67d699ffcc-fbsbh
- 214 kubectl delete deployments.apps sleepybox
- 215 kubectl create deployment sleepybox --image=busybox --replicas=3 -- sleep 3600
- 216 kubectl get all
- 217 kubectl get deployments.apps sleepybox -o yaml | less
- 218 ./countdown 12
- 219 vim redis-deploy.yaml
- 220 kubectl create -f redis-deploy.yaml
- 221 vim redis-deploy.yaml
- 222 kubectl explain deploy
- 223 vim redis-deploy.yaml
- 224 kubectl create -f redis-deploy.yaml
- 225 kubectl scale deployment redis --replicas=2
- 226 kubectl edit deployments.apps redis
- 227 kubectk get all
- 228 kubectl get all
- 229 kubectl delete pod redis-6fb5b985bc-vgpn9
- 230 kubectl get all
- 231 kubectl rollout -h
- 232 ls
- 233 vim rolling.yaml
- 234 kubectl create -f rolling.yaml
- 235 kubectl rollout history deployment
- 236 kubectl edit deployments.apps rolling-nginx
- 237 kubectl get all
- 238 kubectl rollout history deployment
- 239 kubectl rollout history deployment rolling-nginx --revision=2
- 240 kubectl rollout history deployment rolling-nginx --revision=1
- 241 kubectl rollout undo deployment rolling-nginx --to-revision=1
- 242 kubectl get all
- 243 kubectl rollout history deployment
- 244 kubectl get all
- 245 kubectl get all --show-labels
- 246 kubectl get all --selector app=sleepybox
- 247 kubectl create deployment ghost --image=ghost
- 248 kubectl label deployments.apps ghost state=demo
- 249 kubectl get all --show-labels
- 250 kubectl get all --selector state=demo
- 251 kubectl create deploy nginx --image=nginx
- 252 kubectl describe deployments.apps nginx
- 253 kubectl describe pod nginx-6799fc88d8-w4g2h
- 254 kubectl get all | grep nginx
- 255 kubectl label pod nginx-6799fc88d8-w4g2h app-
- 256 kubectl get all | grep nginx
- 257 kubectl run blah --image=nginx
- 258 kubectl get all --show-labels
- 259 kubectl get pods --selector=run
- 260 ./countdown 15
- 261 vim al.yaml
- 262 kubectl create -f al.yaml
- 263 kubectl get all
- 264 kubectl create -f al.yaml
- 265 vim al.yaml
- 266 kubectl create deploy nginxsvc --image=nginx
- 267 kubectl get all --selector app=nginxsvc
- 268 kubectl scale deployment nginxsvc --replicas=3
- 269 kubectl get all --selector app=nginxsvc
- 270 kubectl expose deployment nginxsvc --port=80
- 271 kubectl get all --selector app=nginxsvc
- 272 kubectl describe svc nginxsvc
- 273 kubectl get endpoints
- 274 curl 10.101.7.61
- 275 minikube ssh
- 276 kubectl edit svc nginxsvc
- 277 kubectl get svc
- 278 minikube ip
- 279 curl http://$(minikube ip):32000
- 280 minikube ssh
- 281 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement