Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1 minikube start --vm-driver=docker
- 2 kubectl get all
- 3 minikube status
- 4 history
- 5 kubectl create deploy mynginx --image=nginx --replicas=3
- 6 kubectl get all
- 7 kubectl completion -h
- 8 source <(kubectl completion bash)
- 9 kubectl get all
- 10 kubectl delete pod mynginx-5b686ccd46-hsgp9
- 11 kubectl get all
- 12 history
- 13 kubectl create deploy mynginx --image=nginx --replicas=3 --dry-run=client -o yaml > mynginx.yaml
- 14 vim mynginx.yaml
- 15 kubectl explain deployment.spec
- 16 vim mynginx.yaml
- 17 history
- 18 kubectl apply -f mynginx.yaml
- 19 kubectl get all
- 20 kubectl create -f mynginx.yaml
- 21 kubectl create deploy mydb --image=mariadb
- 22 kubectl get all
- 23 kubectl get all --selector app=mydb
- 24 kubectl describe pod mydb-6875fcdfbd-k52z5
- 25 kubectl logs mydb-6875fcdfbd-k52z5
- 26 ls
- 27 history
- 28 ./countdown 12
- 29 ls
- 30 vim pv.yaml
- 31 kubectl explain persistentvolume.spec | less
- 32 kubectl create -f pv.yaml
- 33 kubectl get pv
- 34 vim pvc.yaml
- 35 kubectl create -f pvc.yaml
- 36 kubectl get pvc
- 37 kubectl get pv
- 38 kubectl get storageclass
- 39 vim pv-pod.yaml
- 40 kubectl create -f pv-pod.yaml
- 41 kubectl delete all --all
- 42 kubectl get all
- 43 kubectl create deploy --image=mariadb --replicas=3
- 44 kubectl create deploy mydb --image=mariadb --replicas=3
- 45 kubectl get pods
- 46 kubectl logs mydb-6875fcdfbd-g7slg
- 47 history
- 48 kubectl create cm mydbcm --from-literal=MARIADB_ROOT_PASSWORD=password
- 49 kubectl describe cm mydbcm
- 50 kubectl set env --from=configmap/mydbcm deploy/mydb
- 51 kubectl get all
- 52 kubectl get pods mydb-5cf5457d8c-8l265
- 53 kubectl get pods mydb-5cf5457d8c-8l265 -o yaml
- 54 lsss
- 55 ls
- 56 ca nginx-custom-config.conf
- 57 cat nginx-custom-config.conf
- 58 kubectl create cm nginx-cm --from-file nginx-custom-config.conf
- 59 kubectl get cm nginx-cm -o yaml
- 60 vim nginx-cm.yaml
- 61 kubectl create -f nginx-cm.yaml
- 62 kubectl exec -it nginx-cm -- cat /etc/nginx/conf.d/default.conf
- 63 history
- 64 ./countdown 12
- 65 kubectl create deploy nginxsvc --image=nginx --replicas=3
- 66 kubectl get all
- 67 #kubectl create deploy nginxsvc --image=nginx --replicas=3
- 68 kubectl get all --selector app=nginxsvc
- 69 kubectl expose deployment nginxsvc --port=80
- 70 kubectl describe svc
- 71 kubectl get endpoints
- 72 curl 10.101.143.35
- 73 kubectl get svc
- 74 minikube ssh
- 75 kubectl edit svc nginxsvc
- 76 kubectl get svc
- 77 minikube ip
- 78 curl 192.168.49.2:32000
- 79 vim kustomization.yaml
- 80 vim deployment.yaml
- 81 vim service.yaml
- 82 kubectl apply -k .
- 83 kubectl get all
- 84 history
- 85 cd lesson6lab/
- 86 ls
- 87 vim kustomization.yaml
- 88 vim wordpress-deployment.yaml
- 89 vim mysql-deployment.yaml
- 90 kubectl apply -k .
- 91 kubectl get secrets
- 92 kubectl get secret mysql-pass-bc6ggk5g2t -o yaml
- 93 echo cGFzc3dvcmQ= | base64 -d
- 94 kubectl get deploy
- 95 kubectl get pvc
- 96 kubectl get pods
- 97 kubectl get svc
- 98 minikube service wordpress --url
- 99 history
- 100 ../countdown 20
- 101 kubectl api-resources | less
- 102 kubectl api-resources | grep istio
- 103 cd
- 104 cd microservices/
- 105 cd ..
- 106 curl https://istio.io/downloadIstio | sh -
- 107 curl -L https://istio.io/downloadIstio | sh -
- 108 ls istio-1.12.1/
- 109 cd istio-1.12.1/
- 110 sudo cp bin/istioctl /usr/bin/
- 111 istioctl --set profile=demo -y
- 112 istioctl install --set profile=demo -y
- 113 kubectl get all -n istio-system
- 114 kubectl label namespace default istio-injection=enable
- 115 kubectl label namespace default istio-injection-
- 116 kubectl label namespace default istio-injection=enabled
- 117 kubectl run uglypod --image=nginx
- 118 kubectl get pods
- 119 kubectl get pods uglypod -o yaml | less
- 120 kubectl apply -f sample/bookinfo/platform/kube/bookinfo.yaml
- 121 ls
- 122 kubectl apply -f samples/bookinfo/platform/kube/bookinfo.yaml
- 123 kubectl api-resources | grep istio
- 124 kubectl get svc
- 125 kubectl get pods
- 126 kubectl exec "$(kubectl get pod -l app=ratings -o jsonpath='{.items[0].metadata.name}')" -c ratings -- curl -sS productspage:9080/productpage
- 127 kubectl exec "$(kubectl get pod -l app=ratings -o jsonpath='{.items[0].metadata.name}')" -c ratings -- curl -sS productpage:9080/productpage
- 128 kubectl exec "$(kubectl get pod -l app=ratings -o jsonpath='{.items[0].metadata.name}')" -c ratings -- curl -sS productpage:9080/productpage | grep -o "<title>.*</title>"
- 129 ../microservices/countdown 12
- 130 less samples/bookinfo/networking/bookinfo-gateway.yaml
- 131 kubectl apply -f samples/bookinfo/networking/bookinfo-gateway.yaml
- 132 istioctl analyze
- 133 kubectl get deploy
- 134 kubectl delete deploy mydb
- 135 kubectl delete deploy nginxsvc
- 136 kubectl delete deploy test-nginx-friday20
- 137 kubectl delete deploy wordpress
- 138 kubectl delete deploy wordpress-mysql
- 139 istioctl analyze
- 140 cd ..
- 141 cd microservices/
- 142 vim setup_istio_vars.sh
- 143 source setup_istio_vars.sh
- 144 echo $GATEWAY_URL
- 145 cd ../istio-1.12.1/
- 146 ls samples/addons/
- 147 less samples/addons/kiali.yaml
- 148 kubectl apply -f samples/addons
- 149 kubectl rollout status deployment kiali -n istio-system
- 150 istioctl dashboard kiali
- 151 bg
- 152 for i in $(seq 1 100); do curl -s -o /dev/null "http://$GATEWAY_URL/productpage"; done
- 153 less samples/bookinfo/networking/destination-rule-all.yaml
- 154 kubectl apply -f samples/bookinfo/networking/destination-rule-all.yaml
- 155 less samples/bookinfo/networking/virtual-service-all-v1.yaml
- 156 kubectl apply -f samples/bookinfo/networking/virtual-service-all-v1.yaml
- 157 history
Add Comment
Please, Sign In to add comment