Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [student@localhost ckad]$ history
- 1 git pull origin master
- 2 history
- 3 kubectl get deploy
- 4 minikube status
- 5 minikube start
- 6 kubectl completion -h
- 7 source <(kubectl completion bash)
- 8 kubectl get deployments.apps
- 9 kubectl create deploy nginxsvc --image=nginx
- 10 kubectl scale deploy nginxsvc --replicas=3
- 11 kubectl expose deploy nginxsvc --port=80
- 12 kubectl get svc
- 13 kubectl describe svc nginx -o=yaml
- 14 kubectl describe svc nginxsvc -o=yaml
- 15 kubectl describe svc nginxsvc
- 16 kubectl get svc -o yaml
- 17 kubectl get endpoints
- 18 minikube ssh
- 19 kubectl get endpoints
- 20 kubectl get svc
- 21 curl http://10.106.201.140
- 22 minikube ssh
- 23 kubectl edit svc nginxsvc
- 24 kubectl get svc
- 25 curl http://$(minikube ip):32000
- 26 kubectl expose -h | less
- 27 minikube --help
- 28 vim service.yaml
- 29 kubectl get all --selector app=nginx
- 30 kubectl get all --selector run=nginx
- 31 kubectl create -f service.yaml
- 32 kubectl get svc
- 33 kubectl describe svc mywebserver
- 34 kubectl run nginx --image=nginx
- 35 kubectl get pods
- 36 kubectl delete pod nginx
- 37 kubectl run nginx --image=nginx
- 38 kubectl get all --selector run=nginx
- 39 kubectl describe svc mywebserver
- 40 kubectl get pods --namespace kube-system
- 41 vim busybox.yaml
- 42 kubectl get pods
- 43 kubectl get svc
- 44 kubectl exec -it busybox2 -- nslookup nginxsvc
- 45 kubectl exec -it busybox2 -- cat /etc/resolv.conf
- 46 kubectl get svc -A
- 47 minikube addons list
- 48 minikube addons enable ingress
- 49 kubectl get deploy
- 50 kubectl get svc nginxsvc
- 51 curl http://$(minikube ip):32000
- 52 vim nginxsvc-ingress.yaml
- 53 kubectl create -f nginxsvc-ingress.yaml
- 54 kubectl get ingress
- 55 minikube ip
- 56 cat /etc/hosts
- 57 curl nginxsvc.info
- 58 kubectl edit svc nginxsvc
- 59 vim nginxsvc-ingress.yaml
- 60 kubectl get svc
- 61 kubectl apply -g nginxsvc-ingress.yaml
- 62 kubectl apply -f nginxsvc-ingress.yaml
- 63 curl nginxsvc.info
- 64 vim nginxsvc-ingress.yaml
- 65 kubectl api-versions | grep ingress
- 66 kubectl api-versions | grep -i ingress
- 67 kubectl api-versions
- 68 ./countdown 13
- 69 kubectl explain pod.spec.volumes | less
- 70 vim morevolumes.yaml
- 71 kubectl apply -f morevolumes.yaml
- 72 kubectl get pods morevol2
- 73 kubectl describe pods morevol2
- 74 kubectl get pods morevol2
- 75 kubectl exec -it morevol2 -c centos1 -- touch /centos1/test
- 76 kubectl exec -it morevol2 -c centos2 -- ls -l /centos2
- 77 history
- 78 vim sidecar.yaml
- 79 ls
- 80 history | grep git
- 81 vim pv.yaml
- 82 kubectl explain persistentvolume.spec | less
- 83 kubectl create -f pv.yaml
- 84 kubectl get pv
- 85 kubectl describe pv pv-volume
- 86 minikube ssh
- 87 vim pvc.yaml
- 88 kubectl create -f pvc.yaml
- 89 kubectl get pvc
- 90 kubectl describe persistentvolumeclaims pv-claim
- 91 kubectl get ov
- 92 kubectl get persistentvolume
- 93 vim pv-pod.yaml
- 94 kubectl create -f pv-pod.yaml
- 95 kubectl api-resources | less
- 96 kubectl explain pv.metadata
- 97 vim pv.yaml
- 98 cp pv.yaml pv-ns.yaml
- 99 vim pv-ns.yaml
- 100 kubectl create pv-ns.yaml
- 101 kubectl create -f pv-ns.yaml
- 102 kubectl get pv
- 103 history
- 104 kubectl explain pv.spec
- 105 kubectl explain pv.spec.vsphereVolume
- 106 kubectl explain pv.spec.rbd
- 107 vim pv-nfs.yaml
- 108 kubectl explain pv.spec.persistentVolumeReclaimPolicy
- 109 kubectl create -f nfs-pv.yaml
- 110 vim nfs-pvc.yaml
- 111 kubectl create -f nfs-pvc.yaml
- 112 kubectl get pv
- 113 vim nfs-pv-pod.yaml
- 114 kubectl create -f nfs-pv-pod.yaml
- 115 kubectl describe pod nfs-pv-pod
- 116 kubectl exec -it nfsclient1 -- ls /
- 117 kubectl exec -it nfs-client1 -- ls /
- 118 kubectl get pods
- 119 kubectl exec -it nfs-pv-pod -c nfs-client1 -- ls /
- 120 ./countdown 13
- 121 echo hello RK
- 122 cat variables
- 123 kubectl create cm variables --from-env-file=variables
- 124 kubectl describe cm variables
- 125 vim cm-test-pod.yaml
- 126 kubectl create -f cm-test-pod.yaml
- 127 kubectl logs po/test
- 128 kubectl logs po/test1
- 129 kubectl create cm morevars --from-literal=VAR3=goat --from-literal=VAR4=cow
- 130 kubectl get cm/morevars
- 131 kubectl describe cm/morevars
- 132 vim cm-test-pod.yaml
- 133 cat nginx-custom-config.conf
- 134 kubectl create cm nginx-cm --from-file nginx-custom-config.conf
- 135 kubectl describe cm nginx-cm
- 136 kubectl get cm nginx-cm
- 137 kubectl get cm nginx-cm -o yaml
- 138 vim nginx-cm.yml
- 139 kubectl describe cm nginx-cm
- 140 vim nginx-cm.yml
- 141 kubectl create -f nginx-cm.yml
- 142 kubectl exec -it nginx-cm -- /bin/bash
- 143 vim nginx-cm.yml
- 144 kubectl explain --recursive pods.spec | less
- 145 kubectl explain pods.spec.containers.volumeMounts.subPath
- 146 kubectl create secret generic my-secret --from-file=ssh-privatekey=/home/student/.ssh/id_rsa --from_literal=passphrase=password
- 147 kubectl get secret
- 148 ssh-keygen
- 149 kubectl create secret generic my-secret --from-file=ssh-privatekey=/home/student/.ssh/id_rsa --from-literal=passphrase=password
- 150 kubectl describe secrets my-secret
- 151 kubectl get secrets my-secret -o yaml
- 152 echo cGFzc3dvcmQ= | base64
- 153 base64 --help
- 154 echo cGFzc3dvcmQ= | base64 -d
- 155 c
- 156 echo -n 'lisa' | base64 >> secret-yaml.yaml
- 157 echo -n 'password' | base64 >> secret-yaml.yaml
- 158 cat secret-yaml.yaml
- 159 vim secret-yaml.yaml
- 160 kubectl create -f secret-yaml.yaml
- 161 kubectl describe secrets secret-users
- 162 kubectl create secret generic secretstuff --from-literal=password=password --from-literal=user=linda
- 163 vim pod-secret.yaml
- 164 kubectl create -f pod-secret.yaml
- 165 kubectl describe pod secretbox2
- 166 kubectl exec -it secretbox2 -- /bin/sh
- 167 kubectl create secret generic mysql --from-literal=password=root
- 168 kubectl get secret mysql -o yaml
- 169 vim pod-secret-as-var.yaml
- 170 kubectl explain pod.spec.containers.env.valueFrom
- 171 kubectl create -f pod-secret-as-var.yaml
- 172 kubectl exec -it mymysql -- /bin/bash
- 173 vim pod-secret-as-var.yaml
- 174 ./countdown 12
- 175 vim busybox-ready.yaml
- 176 kubectl apply -f busybox-ready.yaml
- 177 kubectl get pods
- 178 kubectl describe pod busybox-ready
- 179 kubectl delete pods busybox-ready
- 180 vim busybox-ready.yaml
- 181 kubectl apply -f busybox-ready.yaml
- 182 kubectl get pods busybox-ready
- 183 kubectl describe busybox-ready.yaml
- 184 kubectl describe pod busybox-ready
- 185 vim nginx-probes.yaml
- 186 kubectl create -f nginx-probes.yaml
- 187 kubectl get pods | grep nginx
- 188 kubectl delete pods nginx-probes
- 189 vim nginx-probes.yaml
- 190 kubectl create -f nginx-probes.yaml
- 191 kubectl get pods nginx-probes
- 192 kubectl describe pod nginx-probes
- 193 kubectl get pods nginx-probes
- 194 kubectl describe pod nginx-probes
- 195 vim statefulpv.yaml
- 196 kubectl create -f statefulpv.yaml
- 197 kubectl get pv
- 198 vim statefuldemo.yaml
- 199 kubectl get all --selector app-nginx
- 200 kubectl get all --selector app=nginx
- 201 kubectl get deployments
- 202 kubectl delete deployments.apps rolling-nginx
- 203 kubectl get svc
- 204 kubectl delete svc rolling-nginx
- 205 kubectl get all --selector app=nginx
- 206 vim statefuldemo.yaml
- 207 kubectl create -f statefuldemo.yaml
- 208 kubectl get pods
- 209 kubectl describe pods web-0
- 210 history
- 211 vim cron-example.yaml
- 212 kubectl create -f cron-example.yaml
- 213 kubectl get pods
- 214 vim cron-example.yaml
- 215 history
Add Comment
Please, Sign In to add comment