Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- student@student-virtual-machine:~$ history
- 1 sudo reboot
- 2 history
- 3 minikube start --vm-driver=docker --memory=6G --cni=calico
- 4 kubectl get all
- 5 history
- 6 exit
- 7 sudo apt install git vim -y
- 8 git clone https://github.com/sandervanvugt/microservices
- 9 cd microservices/
- 10 ls
- 11 ./minikube-docker-setup.sh
- 12 exit
- 13 minikube start
- 14 cd microservices/
- 15 ls
- 16 vim docker-compose.yml
- 17 docker ps
- 18 sudo apt install docker-compose
- 19 docker-compose up
- 20 history
- 21 source <(kubectl completion bash)
- 22 kubectl create deployment mynginx --image=nginx --replicas=3
- 23 kubectl get all
- 24 ls
- 25 vim mydb.yaml
- 26 kubectl create deploy mynewnginx --image=nginx --replicas=3 --dry-run=client -o yaml
- 27 kubectl create deploy mynewnginx --image=nginx --replicas=3 --dry-run=client -o yaml > mynginx.yaml
- 28 vim mynginx.yaml
- 29 kubectl create -f mynginx.yaml
- 30 kubectl delete -f mynginx.yaml
- 31 kubectl apply -f mynginx.yaml
- 32 history
- 33 kubectl create mydb --image=mariadb
- 34 kubectl create deploy mydb --image=mariadb
- 35 kubectl get all
- 36 kubectl describe pod mydb-6875696859-xvq9z | less
- 37 kubectl logs mydb-6875696859-xvq9z
- 38 kubectl get deploy mydb -o yaml
- 39 ./countdown 12
- 40 history
- 41 ls
- 42 vim pv-pvc-pod.yaml
- 43 kubectl apply -f pv-pvc-pod.yaml
- 44 kubectl get pv,pvc
- 45 kubectl get deploy
- 46 kubectl delete deploy mydb mynginx mynewnginx
- 47 kubectl get all
- 48 kubectl create deploy mydb --image=mariadb --replicas=3
- 49 kubectl get all
- 50 kubectl describe pod mydb-6875696859-5
- 51 kubectl logs mydb-6875696859-7sljm
- 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 pod mydb-779f9766fd-jmtz4 -o yaml | less
- 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 apply -f nginx-cm.yaml
- 62 kubectl exec -it nginx-cm -- cat /etc/nginx/conf.d/default.conf
- 63 kubectl get all
- 64 kubectl delete deploy mydb
- 65 kubectl create deployment nginxsvc --image=nginx
- 66 kubectl get all
- 67 kubectl scale deployment nginxsvc --replicas=3
- 68 kubectl get all
- 69 kubectl get pods -o wide
- 70 curl 10.244.120.89
- 71 kubectl expose deploy nginxsvc --port=80
- 72 kubectl get all
- 73 curl 10.102.89.115
- 74 history
- 75 kubectl get all
- 76 kubectl describe svc nginxsvc
- 77 kubectl get svc
- 78 curl 10.102.89.115
- 79 minikube ssh
- 80 kubectl edit svc nginxsvc
- 81 kubectl get svc
- 82 minikube ip
- 83 curl 192.168.49.2:32414
- 84 history
- 85 kubectl get pods -o wide
- 86 kubectl get svc
- 87 kubectl edit svc nginxsvc
- 88 kubectl get svc
- 89 minikube addons list
- 90 minikube addons enable ingress
- 91 kubectl get ns
- 92 kubectl get all -n ingress-nginx
- 93 vim nginxsvc-ingress.yaml
- 94 kubectl apply -f nginxsvc-ingress
- 95 kubectl apply -f nginxsvc-ingress.yaml
- 96 vim nginxsvc-ingress.yaml
- 97 kubectl api-versions
- 98 kubectl create ing --help
- 99 kubectl create ing --help | less
- 100 # kubectl create ingress simple --rule="foo.com/bar=svc1:8080,tls=my-cert"
- 101 kubectl get svc
- 102 kubectl create ing nginxing --rule="nginxsvc.info/=nginxsvc:80"
- 103 kubectl describe ing nginxing
- 104 sudo vim /etc/hosts
- 105 curl nginxsvc.info
- 106 history
- 107 kubectl create ing nginxing --rule="nginxsvc.info/=nginxsvc:80" --dry-run=client -o yaml
- 108 vim deployment.yaml
- 109 vim service.yaml
- 110 cat kustomization.yaml
- 111 kubectl apply -f deployment.yaml
- 112 kubectl apply -f service.yaml
- 113 kubectl get all
- 114 kubectl apply -k .
- 115 kubectl get all
- 116 vim pvc.yaml
- 117 kubectl get pv,pvc
- 118 kubectl apply -f pvc.yaml
- 119 kubectl get pv,pvc
- 120 kubectl get storageclass
- 121 cd lesson6lab/
- 122 ls
- 123 vim kustomization.yaml
- 124 kubectl apply -k .
- 125 vim wordpress-deployment.yaml
- 126 kubectl get secrets
- 127 kubectl get deploy
- 128 kubectl get pvc
- 129 kubectl get pods
- 130 kubectl get svc
- 131 minikube service wordpress --url
- 132 vim kustomization.yaml
- 133 kubectl version
- 134 history
- 135 kubectl delete all --all
- 136 cd ..
- 137 kubectl get all
- 138 curl -L https://istio.io/downloadIstio | sh -
- 139 cd istio-1.19.3/
- 140 ls
- 141 sudo cp bin/istioctl /usr/bin/
- 142 istioctl install --set profile=demo -y
- 143 kubectl api-resources | less
- 144 kubectl get all -n istio-system
- 145 kubectl get crds
- 146 kubectl get ns
- 147 kubectl label namespace default istio-injection=enabled
- 148 kubectl get ns default -o yaml
- 149 kubectl create deploy test --image=nginx
- 150 kubectl get pods
- 151 kubectl describe pods test-5746d4c59f-fjmjl
- 152 kubectl apply -f samples/bookinfo/platform/kube/bookinfo.yaml
- 153 kubectl get all
- 154 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>"
- 155 kubectl get pod -l app=ratings -o jsonpath='{.items[0].metadata.name}'
- 156 history
- 157 kubectl get pods -o name
- 158 less samples/bookinfo/networking/bookinfo-gateway.yaml
- 159 kubectl apply -f samples/bookinfo/networking/bookinfo-gateway.yaml
- 160 kubectl get all
- 161 kubectl get virtualservice,gateway
- 162 istioctl analyze
- 163 kubectl get all
- 164 kubectl delete deploy test
- 165 istioctl analyze
- 166 kubectl get ns default -o yaml
- 167 cat ../setup_istio_vars.sh
- 168 source ../setup_istio_vars.sh
- 169 echo $GATEWAY_URL
- 170 echo http://$GATEWAY_URL/productpage
- 171 kubectl apply -f samples/addons
- 172 kubectl rollout status deployment kiali -n istio-system
- 173 for i in $(seq 1 100); do curl -s -o /dev/null "http://$GATEWAY_URL/productpage"; done
- 174 kubectl rollout status deployment kiali -n istio-system
- 175 istioctl dashboard kiali
- 176 bg
- 177 kubectl rollout status deployment kiali -n istio-system
- 178 for i in $(seq 1 100); do curl -s -o /dev/null "http://$GATEWAY_URL/productpage"; done
- 179 kubectl apply -f samples/bookinfo/networking/destination-rule-all.yaml
- 180 kubectl get destinationrules
- 181 kubectl get destinationrules -o yaml
- 182 kubectl apply -f samples/bookinfo/networking/virtual-service-all-v1.yaml
- 183 kubectl get virtualservices.networking.istio.io -o yaml
- 184 kubectl delete all --all
- 185 cd ..
- 186 ls
- 187 cd myapp-test/
- 188 ls
- 189 less version1-deploy.yaml
- 190 kubectl apply -f version-{one|two|three}-cm.yaml
- 191 kubectl apply -f version-one-cm.yaml
- 192 kubectl apply -f version-two-cm.yaml
- 193 kubectl apply -f version-three-cm.yaml
- 194 kubectl apply -f version1-deploy.yaml
- 195 kubectl apply -f version2-deploy.yaml
- 196 kubectl apply -f version3-deploy.yaml
- 197 vim webshop-svc.yaml
- 198 kubectl get deploy --show-labels
- 199 kubectl apply -f webshop-svc.yaml
- 200 kubectl describe svc webshop
- 201 kubectl get pods -o wide
- 202 kubectl get svc
- 203 curl 192.168.49.2:32000
- 204 kubectl edit svc webshop
- 205 curl 192.168.49.2:32000
- 206 kubectl get svc
- 207 curl 192.168.49.2:30233
- 208 kubectl get all -n istio-system
- 209 echo $GATEWAY_RUL || source ../setup_istio_vars.sh
- 210 echo $GATEWAY_URL
- 211 vim webshop-gateway.yaml
- 212 kubectl apply -f webshop-gateway.yaml
- 213 less virtual-service-initial.yaml
- 214 kubectl apply -f virtual-service-initial.yaml
- 215 curl $GATEWAY_URL -H "Host: webshop.svc.default.cluster.local"
- 216 istioctl proxy-config routes deploy/istio-ingressgateway.istio-system
- 217 istioctl proxy-config listener deploy/istio-ingressgateway.istio-system
- 218 vim virtual-service-webshop-80-20.yaml
- 219 kubectl apply -f virtual-service-webshop-80-20.yaml
- 220 kubectl apply -f destination-rule-webshop.yaml
- 221 curl $GATEWAY_URL -H "Host: webshop.svc.default.cluster.local"
- 222 cd
- 223 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement