Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- recorded video course; https://learning.oreilly.com/videos/building-and-managing/9780137649686/
- student@student-virtual-machine:~$ history
- 1 minikube start --vm-driver=docker --memory=4G
- 2 kubectl get all
- 3 history
- 4 top
- 5 kubectl create deploy mynginx --image=nginx --replicas=3
- 6 kubectl get all
- 7 source <(kubectl completion bash)
- 8 kubectl completion -h | less
- 9 kubectl get all
- 10 history
- 11 kubectl delete pod mynginx-ff886775c-xbjjk
- 12 kubectl get all
- 13 echo hello
- 14 ls
- 15 kubectl describe pod mynginx-ff886775c-wrzz6
- 16 kubectl set image -h | less
- 17 kubectl set image deployment/mynginx nginx=nginx:1.17
- 18 kubectl get all
- 19 history
- 20 kubectl create myweb --image=nginx --replicas=3 --dry-run=client -o yaml
- 21 kubectl create deploy myweb --image=nginx --replicas=3 --dry-run=client -o yaml
- 22 kubectl create deploy myweb --image=nginx --replicas=3 --dry-run=client -o yaml > myweb.yaml
- 23 vim myweb.yaml
- 24 kubectl explain deployment.spec | less
- 25 kubectl create -f myweb.yaml
- 26 kubectl apply -f myweb.yaml
- 27 kubectl delete -f myweb.yaml
- 28 kubectl apply -f myweb.yaml
- 29 kubectl get deploy myweb -o yaml | less
- 30 kubectl create deploy mydb --image=mariadb --replicas=3
- 31 kubectl get all --selector app=mydb
- 32 kubectl describe pod mydb-c8bddc94c-hbblg | less
- 33 kubectl logs mydb-c8bddc94c-hbblg
- 34 kubectl set env -h | less
- 35 kubectl set env deploy/mydb MARIADB_ROOT_PASSWORD=password
- 36 kubectl get all --selector app=mydb
- 37 ls
- 38 vim pv.yaml
- 39 kubectl apply -f pv.yaml
- 40 vim pvc.yaml
- 41 kubectl apply -f pvc.yaml
- 42 kubectl get pv,pvc
- 43 vim pv-pod.yaml
- 44 kubectl apply -f pv-pod.yaml
- 45 kubectl get deploy
- 46 kubectl delete deploy mydb
- 47 kubectl delete deploy mynginx
- 48 kubectl delete deploy myweb
- 49 kubectl get all
- 50 kubectl create deploy mydb --image=mariadb --replicas=3
- 51 kubectl get pods
- 52 kubectl create cm mydbcm --from-literal=MARIADB_ROOT_PASSWORD=password
- 53 kubectl describe cm mydbcm
- 54 kubectl set env --from=configmap/mydbcm deploy/mydb
- 55 kubectl get all
- 56 kubectl get pods mydb-69885c5df4-77djm -o yaml | less
- 57 history
- 58 cat nginx-custom-config.conf
- 59 kubectl create cm nginx-cm --from-file=nginx-custom-config.conf
- 60 kubectl get cm nginx-cm -o yaml
- 61 vim nginx-cm.yaml
- 62 kubectl apply -f nginx-cm.yaml
- 63 kubectl exec -it nginx-cm -- cat /etc/nginx/conf.d/default.conf
- 64 kubectl create deploy nginxsvc --image=nginx
- 65 kubectl scale deploy nginxsvc --replicas 3
- 66 kubectl get all --selector app=nginxsvc
- 67 kubectl expose deploy nginxsvc --port=80
- 68 kubectl get all --selector app=nginxsvc
- 69 curl 10.107.230.156
- 70 kubectl describe svc nginxsvc
- 71 minikube ip
- 72 minikube ssh
- 73 kubectl edit svc nginxsvc
- 74 kubectl get svc
- 75 curl 192.168.49.2:30303
- 76 kubectl edit svc nginxsvc
- 77 history
- 78 minikube addons list
- 79 minikube addons enable ingress
- 80 kubectl get ns
- 81 kubectl get all -n ingress-nginx
- 82 vim nginxsvc-ingress
- 83 vim nginxsvc-ingress.yaml
- 84 kubectl apply -f nginxsvc-ingress.yaml
- 85 vim nginxsvc-ingress.yaml
- 86 kubectl api-resources | grep ingress
- 87 kubectl create ingress -h | less
- 88 # kubectl create ingress multipath --class=default \
- 89 kubectl create ingress simple --rule="nginxsvc.info/=nginxsvc:80
- "
- 90 kubectl create ingress nginxsvc --class=default --rule="nginxsvc.info/=nginxsvc:80
- "
- 91 kubectl create ingress nginxsvc --class=default --rule="nginxsvc.info/=nginxsvc:80"
- 92 kubectl describe ingress nginxsvc
- 93 sudo vim /etc/hosts
- 94 kubectl get ingress
- 95 curl nginxsvc.info
- 96 cat deployment.yaml
- 97 cat service.yaml
- 98 kubectl apply -f deployment.yaml service.yaml
- 99 kubectl apply -f deployment.yaml
- 100 kubectl apply -f service.yaml
- 101 kubectl get all
- 102 ls
- 103 vim kustomization.yaml
- 104 kubectl get all --selector environment=testing
- 105 kubectl apply -k ./
- 106 kubectl get all --selector environment=testing
- 107 kubectl get deploy,svc
- 108 ./countdown 20
- 109 ls
- 110 cd lesson13lab/
- 111 ls
- 112 kubectl get deploy
- 113 kubectl delete deploy mydb
- 114 kubectl delete deploy nginx-friday20
- 115 kubectl delete deploy nginxsvc
- 116 kubectl delete deploy test-nginx-friday20
- 117 kubectl delete svc test-nginx-friday20
- 118 kubectl delete svc nginxsvc
- 119 kubectl delete svc mydb
- 120 kubectl get all
- 121 vim kustomization.yaml
- 122 vim mysql-deployment.yaml
- 123 vim wordpress-deployment.yaml
- 124 kubectl -k ./
- 125 kubectl apply -k ./
- 126 kubectl get all
- 127 kubectl get pvc,pv,cm,secret
- 128 minikube service wordpress --url
- 129 kubectl get svc
- 130 cd
- 131 curl -L https://istio.io/downloadIstio | sh -
- 132 cd istio-1.16.0/
- 133 sudo cp bin/istioctl /usr/bin/
- 134 istioctl --help
- 135 kubectl api-resources | wc
- 136 kubectl api-resources | grep istio
- 137 istioctl install --set-profile=demo -y
- 138 istioctl install --set profile=demo -y
- 139 kubectl get all -n istio-system
- 140 kubectl api-resources | grep istio
- 141 kubectl get ns
- 142 kubectl get pods
- 143 kubectl label namespace default istio-injection=enabled
- 144 kubectl get pods
- 145 kubectl get crds
- 146 kubectl create deploy testginx --image=nginx
- 147 kubectl get all --selector app=testginx
- 148 kubectl describe pod testginx-578fc7c877-6ndsl | less
- 149 ../microservices/countdown 12
- 150 ls
- 151 ls samples/
- 152 kubectl apply -f samples/bookinfo/platform/kube/bookinfo.yaml
- 153 kubectl get svc
- 154 kubectl delete svc wordpress wordpress-mysql
- 155 kubectl delete svc nginx-friday20
- 156 kubectl get svc
- 157 kubectl get pods
- 158 kubectl exec "$(kubectl get pods -l app=ratings -o jsonpath='{.items[0].metadata.name}')" -c ratings -- curl -sS productpage:9080/productpage | grep -o "<title>.*</title>"
- 159 less samples/bookinfo/networking/bookinfo-gateway.yaml
- 160 kubectl apply -f samples/bookinfo/networking/bookinfo-gateway.yaml
- 161 istioctl analyze
- 162 cd ../microservices/
- 163 vim setup_istio_vars.sh
- 164 source setup_istio_vars.sh
- 165 echo "http://$GATEWAT_URL/productpage"
- 166 echo "http://$GATEWAY_URL/productpage"
- 167 cd ../istio-1.16.0/
- 168 kubectl apply -f samples/addons
- 169 kubectl rollout status deployment kiali -n istio-system
- 170 istioctl dashboard kiali
- 171 bg
- 172 for i in $(seq 1 100); do curl -s -o /dev/null "http://GATEWAY_URL/productpage"; done
- 173 for i in $(seq 1 100); do curl -s -o /dev/null "http://$GATEWAY_URL/productpage"; done
- 174 less samples/bookinfo/networking/destination-rule-all.yaml
- 175 kubectl apply -f samples/bookinfo/networking/destination-rule-all.yaml
- 176 kubectl get destinationrules.networking.istio.io
- 177 less samples/bookinfo/networking/virtual-service-all-v1.yaml
- 178 kubectl apply -f samples/bookinfo/networking/virtual-service-all-v1.yaml
- 179 kubectl apply -f samples/bookinfo/networking/virtual-service-reviews-50-v3.yaml
- 180 less samples/bookinfo/networking/virtual-service-reviews-50-v3.yaml
- 181 cd
- 182 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement