Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1 minikube start --vm-driver=docker
- 2 minikube status
- 3 history
- 4 ls
- 5 minikube status
- 6 kubectl get all
- 7 docker ps
- 8 minikube ssh
- 9 minikube dashboard
- 10 ls
- 11 ./countdown 15
- 12 ls minikube-docker-setup.sh
- 13 minikube-docker-setup.sh
- 14 ./minikube-docker-setup
- 15 kubectl get all
- 16 curl 10.105.247.30
- 17 docker ps
- 18 kubectl --help
- 19 kubectl --help | less
- 20 kubectl create --help | less
- 21 kubectl create deployment --help | less
- 22 kubectl completion --help | less
- 23 source <(kubectl completion bash)
- 24 kubectl config view
- 25 kubectl run --help | less
- 26 kubectl run nginx --image=nginx
- 27 kubectl get all
- 28 kubectl delete pod myfirstapp-5848c75dc8-92mhb
- 29 kubectl get all
- 30 kubectl delete pod nginx
- 31 kubectl get all
- 32 history
- 33 sleep 120; ./countdown 10
- 34 kubectl get all
- 35 kubectl completion -h | less
- 36 kubectl get nodes,pods
- 37 kubectl describe pods myfirstapp-5848c75dc8-8ppfp | less
- 38 kubectl get pods myfirstapp-5848c75dc8-8ppfp -o yaml | less
- 39 kubectl explain pod
- 40 kubectl explain pod.spec | less
- 41 kubectl describe pods myfirstapp-5848c75dc8-8ppfp | less
- 42 kubectl explain pod.spec | less
- 43 kubectl get pods myfirstapp-5848c75dc8-8ppfp -o yaml | less
- 44 kubectl api-resources | less
- 45 kubectl api-versions | less
- 46 kubectl run mynginx --image=nginx --dry-run -o yaml
- 47 kubectl run mynginx --image=nginx --dry-run=client -o yaml
- 48 kubectl run mynginx --image=nginx --dry-run=client -o yaml > mynginx.yaml
- 49 vim mynginx.yaml
- 50 vim lab1.txt
- 51 ./countdown 13
- 52 pwd
- 53 vim sidecar.yaml
- 54 kubectl create -f sidecar.yaml
- 55 kubectl get pods
- 56 kubectl exec -it sidecar-pod -c sidecar -- /bin/bash
- 57 vim init-example1.yaml
- 58 kubectl create -f init-example1.yaml
- 59 kubectl get pods
- 60 kubectl describe pod init-demo1 | less
- 61 vim init-example2.yaml
- 62 kubectl create -f init-example2.yaml
- 63 kubectl get pdos
- 64 kubectl get pods
- 65 kubectl get pods -A
- 66 kubectl get all
- 67 kubectl get all -A
- 68 kubectl get pods -A
- 69 kubectl create ns secret
- 70 kubect get ns
- 71 kubectl get ns
- 72 vim busybox-ns.yaml
- 73 kubectl explain pod.metadata
- 74 vim busybox-ns.yaml
- 75 kubectl apply -f busybox-ns.yaml
- 76 kubectl get all
- 77 kubectl get all -n secret
- 78 kubectl run secretginx --image=nginx -n secret
- 79 kubectl get all -n secret
- 80 kubectl get pods
- 81 kubectl exec -it myfirstapp-5848c75dc8-8ppfp sh
- 82 history
- 83 minikube status
- 84 kubectl get all
- 85 kubectl run --help | less
- 86 kubectl run faildb --image=mariadb
- 87 kubectl get pods
- 88 kubectl describe pod faildb | less
- 89 kubectl logs faildb
- 90 kubectl delete pod faildb
- 91 kubectl run --help | less
- 92 kubectl run nofaildb --image=mariadb --env=MARIABD_ROOT_PASSWORD=password
- 93 kubectl get pods
- 94 kubectl run --help | less
- 95 kubectl delete pod nofaildb
- 96 kubectl run nofaildb --image=mariadb --env=MARIADB_ROOT_PASSWORD=password
- 97 kubectl get pods
- 98 kubectl logs sidecar-pod
- 99 kubectl logs sidecar-pod app
- 100 kubectl logs sidecar-pod sidecar
- 101 kubectl run busy --image=busybox
- 102 kubectl get pods
- 103 kubectl describe pods busy
- 104 kubectl describe pods busy | less
- 105 kubectl delete pods busy
- 106 kubectl run busy --image=busybox -- sleep 3600
- 107 kubectl get pods
- 108 kubectl explain pods --recursive
- 109 kubectl explain pods --recursive | less
- 110 ls
- 111 vim securitycontextdemo2.yaml
- 112 kubectl create -f securitycontextdemo2.yaml
- 113 kubectl get pods
- 114 kubectl exec -it security-context-demo -- sh
- 115 vim securitycontextdemo2.yaml
- 116 vim securitycontextdemo.yaml
- 117 kubectl create -f securitycontextdemo.yaml
- 118 kubectl get pods
- 119 kubectl describe pods nginxsecure
- 120 kubectl create job --help
- 121 kubectl create job --help | less
- 122 kubectl create job onejob --image=busybox -- date
- 123 kubectl get jobs
- 124 kubectl get pods
- 125 kubectl get jobs onejob -o yaml | less
- 126 kubectl delete job onejob
- 127 kubectl get pods
- 128 kubectl create job mynewjob --image=busybox --dry-run=client -o yaml -- sleep 5 > mynewjob.yaml
- 129 vim mynewjob.yaml
- 130 kubectl create -f mynewjob.yaml
- 131 kubectl get all
- 132 kubectl run failybox --image=busybox
- 133 kubectl get pods
- 134 kubectl create cronjob -h | less
- 135 kubectl create cronjob runme --image=busybox --schedule="*/1 * * * *" -- echo greetings from your cluster
- 136 kubectl create cronjob runme --image=busybox --schedule="0 4 25 12 5" -- echo greetings from your cluster
- 137 kubectl get cronjobs,jobs,pods
- 138 kubectl logs runme-274687
- 139 kubectl logs runme-27468779-7hz5z
- 140 kubectl delete cronjob runme
- 141 kubectl explain jobs.spec
- 142 kubectl explain jobs.spec | less
- 143 ./countdown 14
- 144 vim frontend-resources.yaml
- 145 kubectl create -f frontend-resources.yaml
- 146 kubectl get pods
- 147 kubectl describe pod frontend
- 148 kubectl delete -f frontend-resources.yaml
- 149 vim frontend-resources.yaml
- 150 kubectl create -f frontend-resources.yaml
- 151 kubectl get all
- 152 kubectl delete pods failybox
- 153 kubectl delete pods nginxsecure
- 154 kubectl delete pods sidecar-pod
- 155 kubectl create deployment --help | less
- 156 kubectl create deployment myweb --image=nginx --replicas=3
- 157 kubectl describe deployments.apps myweb | less
- 158 kubectl get deployments.apps myweb -o yaml | less
- 159 kubectl get all
- 160 kubectl delete pod myweb-8764bf4c8-6kbc7
- 161 kubectl get all
- 162 kubectl delete pod nofaildb
- 163 kubectl get all
- 164 kubectl delete deployments.apps myfirstapp
- 165 kubectl get deploy
- 166 kubectl scale deploy myweb --replicas=4
- 167 kubectl get all
- 168 kubectl get all --show-labels
- 169 kubectl get all --selector app=myd
- 170 kubectl get all --show-labels
- 171 kubectl get all --selector app=myweb
- 172 vim redis-deploy.yaml
- 173 kubectl create -f redis-deploy.yaml
- 174 vim redis-deploy.yaml
- 175 kubectl api-versions
- 176 kubectl create -f redis-deploy.yaml
- 177 vim redis-deploy.yaml
- 178 kubectl create -f redis-deploy.yaml
- 179 kubect get all
- 180 kubectl get all
- 181 kubectl edit deployments.apps redis
- 182 kubectl get all
- 183 kubectl delete replicasets.apps redis-696dfdfbfc
- 184 kubectl get all
- 185 kubectl delete deploy myweb
- 186 kubectl delete deploy redis
- 187 kubectl create deploy nginxup --image=nginx:1.14
- 188 kubectl get all
- 189 kubectl scale deployment nginxup --replicas=4
- 190 kubectl get all --selector app=nginxup
- 191 kubectl set image deploy nginxup nginx=nginx:1.17
- 192 kubectl get all
- 193 ./countdown 12
- 194 kubectl create deploy bluelabel --image=nginx
- 195 kubectl label deployments.apps bluelabel state=demo
- 196 kubectl get deploy --show-labels
- 197 kubectl get all --selector app=bluelabel
- 198 kubectl get deploy bluelabel -o yaml | less
- 199 kubectl get all --selector state=demo
- 200 kubectl get deploy bluelabel -o yaml | less
- 201 kubectl scale deploy bluelabel --replicas=4
- 202 kubectl set env deploy bluelabel type=blended
- 203 kubectl get all
- 204 vim rolling.yaml
- 205 kubectl create -f rolling.yaml
- 206 kubectl rollout history deployment
- 207 kubectl edit deployments.apps rolling-nginx
- 208 kubectl rollout history deployment
- 209 kubectl rollout history deployment rolling-nginx --revision=2
- 210 kubectl rollout history deployment rolling-nginx --revision=1
- 211 kubectl rollout undo deployment rolling-nginx --to-revision=1
- 212 kubectl get all
- 213 kubectl create deploy nginxsvc --image=nginx --replicas=3
- 214 kubectl get all --selector app=nginxsvc
- 215 kubectl expose deployment nginxsvc --port=80
- 216 kubectl get all --selector app=nginxsvc
- 217 kubectl describe svc nginxsvc
- 218 kubectl get endpoints
- 219 kubectl get svc
- 220 curl 10.109.114.11
- 221 minikube ssh
- 222 kubectl edit svc nginxsvc
- 223 kubectl get svc
- 224 minikube ip
- 225 curl 192.168.49.2:32000
- 226 ./countdown 15
- 227 kubectl run testpod --image=busybox -- sleep 3600
- 228 kubectl exec -it testpod -- cat /etc/resolv.conf
- 229 kubectl get svc -A
- 230 kubectl get svc
- 231 kubectl exec -it testpod -- nslookup nginxsvc
- 232 minikube addons list
- 233 minikube addons enable ingress
- 234 kubectl get pods -A
- 235 minikube addons list
- 236 kubectl get deploy
- 237 kubectl get svc nginxsvc
- 238 minikube ip
- 239 curl http://192.168.49.2:32000
- 240 kubectl create ingress --help | less
- 241 kubectl create ingress nginxsvc-ingress --rule="/=nginxsvc:80" --rule="/hello=newdep:8080"
- 242 minikube ip
- 243 sudo vim /etc/hosts
- 244 kubectl get ingress
- 245 curl nginxsvc.info
- 246 kubectl create deploy newdep --image=gcr.io/google-samples/hello-app:2.0
- 247 kubectl expose deploy newdep --port=8080
- 248 curl nginxsvc.info/hello
- 249 kubectl describe ingress nginxsvc-ingress
- 250 history
Advertisement
Add Comment
Please, Sign In to add comment