Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- student@student-virtual-machine:~$ history
- 1 minikube start --vm-driver=docker --memory=6G --cni=calico
- 2 history
- 3 ls
- 4 vim docker-compose.yml
- 5 sudo apt install -y vim
- 6 vim docker-compose.yml
- 7 sudo apt install docker-compose
- 8 docker-compose --help | less
- 9 docker-compose up
- 10 exit
- 11 sudo apt install -y git
- 12 git clone https://github.com/sandervanvugt/microservices
- 13 cd microservices/
- 14 ls
- 15 ./minikube-docker-setup.sh
- 16 exit
- 17 source <(kubectl completion bash)
- 18 kubectl create deployment mynginx --image=nginx --replicas=3
- 19 kubectl get all
- 20 kubectl delete pod mynginx-6cdf457c5f-7zgds
- 21 kubectl get all
- 22 history
- 23 exit
- 24 cd microservices/
- 25 exit
- 26 cd microservices/
- 27 ./countdown 12
- 28 history
- 29 kubectl get all
- 30 kubectl create deploy mynginx --image=nginx --replicas=3 --dry-run=client -o yaml > mynginx.yaml
- 31 vim mynginx.yaml
- 32 kubectl explain deploy.spec | less
- 33 kubectl explain deploy.spec.template.spec | less
- 34 kubectl create deploy sleepybox --image=busybox --replicas=3 -- sleep infinity --dry-run=client -o yaml
- 35 kubectl get all
- 36 kubectl create deploy sleepybox --image=busybox --replicas=3 --dry-run=client -o yaml -- sleep infinity
- 37 cat mynginx.yaml
- 38 kubectl get all
- 39 kubectl delete deploy mynginx
- 40 kubectl delete deploy sleepybox
- 41 source <(kubectl completion bash)
- 42 kubectl create -f mynginx.yaml
- 43 kubectl delete -f mynginx.yaml
- 44 kubectl apply -f mynginx.yaml
- 45 kubectl create deployment mydb --image=mariadb
- 46 kubectl get all
- 47 kubectl describe pod mydb-7bbb588c85-n2vnw
- 48 kubectl logs mydb-7bbb588c85-n2vnw
- 49 kubectl set env -h | less
- 50 kubectl set env deploy/mydb MARIADB_ROOT_PASSWORD=password
- 51 kubectl get all
- 52 history
- 53 cd microservices/
- 54 ls
- 55 vim pvcpod.yaml
- 56 vim pvctest.yaml
- 57 kubectl apply -f pvctest.yaml
- 58 kubectl get pvc,pv
- 59 kubectl get pv
- 60 kubectl describe pv pvc-ac8ea587-d4f1-490d-bd5a-14e8dc775bf9
- 61 ls
- 62 vim pv-pvc-pod.yaml
- 63 kubectl apply -f pv-pvc-pod.yaml
- 64 kubectl get pvc,pv
- 65 kubectl get all
- 66 kubectl delete deploy mydb mynginx
- 67 kubectl create deployment mydb --image=mariadb --replicas=3
- 68 kubectl get pods
- 69 kubectl logs mydb-7bbb588c85-w8f4g
- 70 kubectl create cm mydbcm --from-literal=MARIADB_ROOT_PASSWORD=password
- 71 kubectl get cm mydbcm -o yaml
- 72 kubectl set env --from=configmap/mydbcm deploy/mydb
- 73 kubectl get all --selector app=mydb
- 74 kubectl get pod mydb-776bb8b8-grz9n -o yaml | less
- 75 kubectl create secret generic secretpw --from-literal MARIADB_ROOT_PASSWORD=password
- 76 kubectl get secrets secretpw -o yaml
- 77 echo cGFzc3dvcmQ= | base64 -d
- 78 history
- 79 cat nginx-custom-config.conf
- 80 kubectl create cm nginx-cm --from-file nginx-custom-config.conf
- 81 rm -f nginx-custom-config.conf
- 82 kubectl get cm nginx-cm -o yaml
- 83 cat nginx-cm.yaml
- 84 kubectl create -f nginx-cm.yaml
- 85 kubectl exec -it nginx-cm -- cat /etc/nginx/conf.d/default.conf
- 86 kubectl create deploy nginxsvc --image=nginx --replicas=3
- 87 kubectl expose deploy nginxsvc --port=80
- 88 kubectl describe svc nginxsvc
- 89 kubectl get svc
- 90 curl 10.96.25.84
- 91 kubectl edit svc nginxsvc
- 92 kubectl get svc
- 93 minikube ip
- 94 curl 192.168.49.2:30505
- 95 id
- 96 minikube addons list
- 97 minikube addons enable ingress
- 98 history
- 99 exit
- 100 minikube start
- 101 cd microservices/
- 102 ./countdown 13
- 103 grep docker /etc/group
- 104 minikube status
- 105 minikube start
- 106 newgrep docker
- 107 newgrp docker
- 108 id
- 109 sudo reboot
- 110 cd microservices/
- 111 ./countdown 16
- 112 ./countdown 12
- 113 id
- 114 minikube start
- 115 source <(kubectl completion bash)
- 116 minikube addons enable ingress
- 117 kubectl get ns
- 118 kubectl get all -n ingress-nginx
- 119 kubectl create ing -h | less
- 120 kubectl create ingress simple --rule="foo.com/=nginxsvc:80"
- 121 kubectl describe ing simple
- 122 sudo vim /etc/hosts
- 123 minikube ip
- 124 curl foo.com
- 125 history
- 126 ls
- 127 cd microservices/
- 128 ls
- 129 vinm deployment.yaml
- 130 vim deployment.yaml
- 131 vim service.yaml
- 132 ls kustomization.yaml
- 133 vim kustomization.yaml
- 134 kubectl apply -k .
- 135 kubectl get all --show-labels | grep friday
- 136 ls
- 137 cd lesson6lab/
- 138 ls
- 139 vim kustomization.yaml
- 140 kubectl apply -k .
- 141 history
- 142 cd ..
- 143 curl -L https://istio.io/downloadIstio | sh -
- 144 cd istio-1.20.1/
- 145 ls
- 146 sudo cp bin/istioctl /usr/local/bin/
- 147 istioctl install --set-profile=demo -y
- 148 istioctl install --set profile=demo -y
- 149 kubectl get all -n istio-system
- 150 kubectl get ns
- 151 kubectl label namespace default istio-injection=enabled
- 152 kubectl get ns --show-labels
- 153 kubectl get crds
- 154 kubectl get crds | grep istio
- 155 kubectl api-resources | grep istio
- 156 kubectl apply -f samples/bookinfo/platform/kube/bookinfo.yaml
- 157 kubectl get pods
- 158 kubectl describe pod details-v1-698d88b-98pvd | less
- 159 kubectl run testpod --image=nginx
- 160 kubectl get pods
- 161 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>"
- 162 less samples/bookinfo/networking/bookinfo-gateway.yaml
- 163 kubectl apply -f samples/bookinfo/networking/bookinfo-gateway.yaml
- 164 istioctl analyze
- 165 kubectl get deploy
- 166 kubectl delete deploy mydb nginxsvc test-nginx-friday20 wordpress wordpress-mysql
- 167 istioctl analyze
- 168 kubectl delete pod nginx-cm local-pv-pod
- 169 kubectl get gw -A
- 170 kubectl get all -n istio-system
- 171 history
- 172 lscpu
- 173 kubectl get all -n istio-system
- 174 cat ../setup_istio_vars.sh
- 175 kubectl get -n istio-system svc istio-ingressgateway
- 176 kubectl describe -n istio-system svc istio-ingressgateway
- 177 cat ../setup_istio_vars.sh
- 178 source ../setup_istio_vars.sh
- 179 echo $GATEWAY_URL
- 180 curl $GATEWAY_URL
- 181 kubectl edit -n istio-system svc istio-ingressgateway
- 182 kubectl get svc -n istio-system
- 183 kubectl describe svc -n istio-system istio-ingressgateway
- 184 kubectl get -n istio-system pods -o wide
- 185 kubectl describe -n istio-system pod istio-ingressgateway-654796fd4f-zf9kv
- 186 minikube addons disable ingress
- 187 kubectl get svc -n istio-system
- 188 kubectl -n istio-system get pods
- 189 kubectl -n istio-system describe pods istio-ingressgateway-654796fd4f-zf9kv
- 190 kubectl -n istio-system delete pods istio-ingressgateway-654796fd4f-zf9kv
- 191 kubectl -n istio-system get pods
- 192 kubectl -n istio-system describe pods istio-ingressgateway-654796fd4f-svvkz
- 193 kubectl -n istio-system get deploy
- 194 kubectl -n istio-system edit deploy istio-ingressgateway
- 195 kubectl -n istio-system get pods
- 196 kubectl -n istio-system describe pods istio-ingressgateway-67dd64c68-fscmz
- 197 minikube stop
- 198 sudo reboot
- 199 minikube start
- 200 source <(kubectl completion bash)
- 201 kubectl get svc -n istio-system
- 202 minikube ip
- 203 kubectl get pods -n istio-system
- 204 history
Add Comment
Please, Sign In to add comment