Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- student@student-virtual-machine:~$ history
- 1 minikube start --vm-driver=docker --cni=calico --memory=6G
- 2 kubectl get all
- 3 history
- 4 source <(kubectl completion bash)
- 5 kubectl create deployment mynginx --image=nginx --replicas=3
- 6 kubectl get all
- 7 kubectl describe pod mynginx-55cd454cfc-b4xgd
- 8 docker login
- 9 kubectl create secret -h | less
- 10 kubectl create secret docker-registry -h | less
- 11 kubectl create secret docker-registry dockersecret --from-file=.dockerconfigjson=/home/student/.docker/config.json
- 12 kubectl get all
- 13 kubectl delete deploy mynginx
- 14 kubectl create deploy mynginx --image=nginx --replicas=3 --dry-run=client -o yaml > mynginx.yaml
- 15 vim mynginx.yaml
- 16 kubectl explain deploy.spec.template.spec | less
- 17 vim mynginx.yaml
- 18 kubectl explain deploy.spec.template.spec | less
- 19 vim mynginx.yaml
- 20 kubectl apply -f mynginx.yaml
- 21 vim mynginx.yaml
- 22 kubectl apply -f mynginx.yaml
- 23 kubectl get all
- 24 kubectl describe pod mynginx-64f7c5487c-7pqpp
- 25 kubectl get all
- 26 kubectl describe pod mynginx-64f7c5487c-7pqpp
- 27 kubectl get all
- 28 vim mynginx.yaml
- 29 kubectl create testpod --image=quay.io/bitnami/nginx
- 30 kubectl create deploy testpod --image=quay.io/bitnami/nginx
- 31 kubectl get all
- 32 kubectl create deploy othertest --image=nginx:1.17 --replicas=3 --dry-run=client -o yaml > othertest.yaml
- 33 vim othertest.yaml
- 34 kubectl apply -f othertest.yaml
- 35 kubectl get all
- 36 kubectl describe pod testpod-788b4c8564-8qp9q
- 37 minikube stop
- 38 minikube delete
- 39 minikube start --mem=6G
- 40 history | grep minikube
- 41 minikube start --memory=6G
- 42 kubectl get all
- 43 kubectl create deploy testone --image=nginx
- 44 kubectl create secret docker-registry dockersecret --from-file=.dockerconfigjson=/home/student/.docker/config.json
- 45 kubectl get all
- 46 kubectl delete deploy testone
- 47 kubectl create deploy testone --image=nginx --dry-run=client -o yaml > testone.yaml
- 48 vim testone.yaml
- 49 kubectl apply -f testone.yaml
- 50 kubectl create deploy testtwo --image=bitnami/nginx
- 51 kubectl get all
- 52 history
- 53 ls
- 54 kubectl explain pod.spec.volumes | less
- 55 vim pvc.yaml
- 56 kubectl get pvc,pv
- 57 kubectl apply -f pvc.yaml
- 58 kubectl get pvc,pv
- 59 kubectl get storageclass
- 60 vim pv.yaml
- 61 kubectl apply -f pv.yaml
- 62 kubectl get pvc,pv
- 63 vim pv-pod.yaml
- 64 kubectl apply -f pv-pod.yaml
- 65 kubectl get pods
- 66 kubectl create deploy mydb --image=mariadb --replicas=3
- 67 kubectl get pods
- 68 kubectl describe pod mydb-6875696859-mccsx
- 69 kubectl logs mydb-6875696859-tcfdb
- 70 kubectl create cm mydbcm --from-literal=MARIADB_ROOT_PASSWORD=password
- 71 kubectl describe cm mydbcm
- 72 kubectl get pods
- 73 kubectl set env --from=configmap/mydbcm deploy/mydb
- 74 kubectl get pods
- 75 kubectl get pod mydb-779f9766fd-9bk8k -o yaml | less
- 76 cat nginx-custom-config.conf
- 77 kubectl create cm nginx-cm --from-file nginx-custom-config.conf
- 78 kubectl get cm nginx-cm -o yaml
- 79 vim nginx-cm.yaml
- 80 kubectl apply -f nginx-cm.yaml
- 81 kubectl exec -it nginx-cm -- cat /etc/nginx/conf.d/default.conf
- 82 ./countdown 12
- 83 kubectl create deploy nginxsvc --image=nginx --replicas=3
- 84 kubectl get all --selector app=nginxsvc
- 85 kubectl expose deploy nginxsvc --port=80
- 86 kubectl get svc
- 87 curl 10.102.56.211
- 88 kubectl edit svc nginxsvc
- 89 kubectl get svc
- 90 curl $(minikube ip):32065
- 91 minikube addons list
- 92 minikube addons enable ingress
- 93 kubectl get all --selector app=nginxsvc
- 94 vim nginxsvc-ingress.yaml
- 95 kubectl apply -f nginxsvc-ingress.yaml
- 96 kubectl create ing -h | less
- 97 #kubectl create ingress ingress1 --class=default \
- 98 kubectl get svc
- 99 kubectl create ingress ingress1 --class=default --rule="nginxsvc.info/=nginxsvc:80"
- 100 sudo vim /etc/hosts
- 101 kubectl get ns
- 102 kubectl get all -n ingress-nginx
- 103 kubectl get ing
- 104 curl nginxsvc.info
- 105 cat deployment.yaml
- 106 cat service.yaml
- 107 kubectl apply -f deployment.yaml
- 108 kubectl apply -f service.yaml
- 109 kubectl get deploy,svc
- 110 cat kustomization.yaml
- 111 kubectl get deploy,svc --show-labels
- 112 kubectl apply -k .
- 113 kubectl get deploy,svc --show-labels
- 114 kubectl delete deploy --all
- 115 kubectl delete svc --all
- 116 cd lesson6lab/
- 117 ls
- 118 vim kustomization.yaml
- 119 vim wordpress-deployment.yaml
- 120 vim mysql-deployment.yaml
- 121 kubectl apply -k .
- 122 kubectl get secrets
- 123 kubectl get secrets mysql-pass-bc6ggk5g2t -o yaml
- 124 echo cGFzc3dvcmQ= | base64 -d
- 125 kubectl get deploy
- 126 kubectl get pvc
- 127 kubectl get svc
- 128 minikube service wordpress --url
- 129 cd ..
- 130 kubectl api-resources | less
- 131 curl -L https://istio.io/downloadIstio | sh -
- 132 ls
- 133 cd istio-1.18.2/
- 134 ls
- 135 sudo cp bin/istioctl /usr/local/bin/
- 136 istioctl
- 137 istioctl install --set-profile=demo -y
- 138 istioctl install --set profile=demo -y
- 139 kubectl get crd
- 140 kubectl get all -n istio-system
- 141 kubectl get all
- 142 kubectl label ns default istio-injection=enabled
- 143 kubectl run testpod --image=nginx
- 144 kubectl get pods
- 145 kubectl describe pod testpod
- 146 kubectl describe pod testpod | less
- 147 history
- 148 cd
- 149 cd -
- 150 kubectl apply -f samples/bookinfo/platform/kube/bookinfo.yaml
- 151 kubectl get svc
- 152 kubectl get pods
- 153 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>"
- 154 kubectl get pods
- 155 less samples/bookinfo/networking/bookinfo-gateway.yaml
- 156 kubectl apply -f samples/bookinfo/networking/bookinfo-gateway.yaml
- 157 istioctl analyze
- 158 kubectl get all
- 159 kubectl delete deploy wordpress wordpress-mysql
- 160 kubectl delete svc wordpress wordpress-mysql
- 161 kubectl get pods
- 162 kubectl delete pod nginx-cm pv-pod
- 163 istioctl analyze
- 164 history
- 165 vim ../setup_istio_vars.sh
- 166 source ../setup_istio_vars.sh
- 167 echo $GATEWAY_URL
- 168 echo "http://$GATEWAY_URL/productpage"
- 169 kubectl apply -f samples/addons
- 170 kubectl rollout status deployment kiali -n istio-system
- 171 kubectl get all -n istio-system
- 172 istioctl dashboard kiali
- 173 bg
- 174 for i in $(seq 1 100); do curl -s -o /dev/null "http://$GATEWAY_URL/productpage"; done
- 175 vim samples/bookinfo/networking/destination-rule-all.yaml
- 176 kubectl apply -f samples/bookinfo/networking/destination-rule-all.yaml
- 177 kubectl get destinationrules.networking.istio.io
- 178 vim samples/bookinfo/networking/virtual-service-all-v1.yaml
- 179 kubectl get virtualservices.networking.istio.io
- 180 kubectl apply -f samples/bookinfo/networking/virtual-service-all-v1.yaml
- 181 less samples/bookinfo/networking/virtual-service-reviews-test-v2.yaml
- 182 kubectl apply -f samples/bookinfo/networking/virtual-service-reviews-test-v2.yaml
- 183 kubectl delete -f samples/bookinfo/networking/virtual-service-all-v1.yaml
- 184 kubectl apply -f samples/bookinfo/networking/virtual-service-all-v1.yaml
- 185 vim samples/bookinfo/networking/virtual-service-reviews-50-v3.yaml
- 186 kubectl apply -f samples/bookinfo/networking/virtual-service-reviews-50-v3.yaml
- 187 vim samples/bookinfo/networking/virtual-service-reviews-50-v3.yaml
- 188 kubectl apply -f samples/bookinfo/networking/virtual-service-reviews-50-v3.yaml
- 189 history
- 190 cd ..
- 191 ls
- 192 cd myapp-test/
- 193 ls
- 194 vim version-one-cm.yaml
- 195 kubectl apply -f version-one-cm.yaml
- 196 kubectl apply -f version-two-cm.yaml
- 197 kubectl apply -f version-three-cm.yaml
- 198 vim version1-deploy.yaml
- 199 kubectl apply -f version1-deploy.yaml
- 200 kubectl apply -f version2-deploy.yaml
- 201 kubectl apply -f version3-deploy.yaml
- 202 vim webshop-svc.yaml
- 203 kubectl apply -f webshop-svc.yaml
- 204 kubect get svc
- 205 kubectl get svc
- 206 minikube ssh
- 207 kubectl get all -n istio-system
- 208 echo $GATEWAY_URL || source ../setup_istio_vars.sh
- 209 vim virtual-service-initial.yaml
- 210 kubectl apply -f virtual-service-initial.yaml
- 211 curl $GATEWAY_URL -H "Host: webshop.svc.default.cluster.local"
- 212 vim webshop-gateway.yaml
- 213 kubectl apply -f webshop-gateway.yaml
- 214 curl $GATEWAY_URL -H "Host: webshop.svc.default.cluster.local"
- 215 istioctl proxy-config routes deploy/istio-ingressgateway.istio-system
- 216 istioctl proxy-config listener deploy/istio-ingressgateway.istio-system
- 217 vim virtual-service-webshop-80-20.yaml
- 218 kubectl apply -f virtual-service-webshop-80-20.yaml
- 219 vim destination-rule-webshop.yaml
- 220 kubectl apply -f destination-rule-webshop.yaml
- 221 curl $GATEWAY_URL
- 222 vim destination-rule-webshop.yaml
- 223 kubectl get deploy
- 224 kubectl delete deploy details-v1 productpage-v1 ratings-v1 reviews-v1 reviews-v2 reviews-v3
- 225 kubectl delete svc details-v1 productpage-v1 ratings-v1 reviews-v1 reviews-v2 reviews-v3
- 226 kubectl get svc
- 227 kubectl delete svc details productpage ratings reviews
- 228 cd ../istio-1.18.2/samples/addons/
- 229 ls
- 230 for i in $(seq 1 100); do curl -s -o /dev/null "http://$GATEWAY_URL"; done
- 231 for i in $(seq 1 100); do sleep 1; curl -s -o /dev/null "http://$GATEWAY_URL"; done
- 232 minikube --help
- 233 minikube node --help
- 234 cd
- 235 history
Add Comment
Please, Sign In to add comment