0% found this document useful (0 votes)
41 views

Microservices April22

This document contains the command line history of a user interacting with Kubernetes and Istio. It shows the user starting a Kubernetes cluster with Minikube, deploying sample applications, configuring Istio routing and traffic shifting, and monitoring services. The user deploys bookinfo sample microservices to Kubernetes, configures Istio routing and policies, and monitors services using Kiali.

Uploaded by

smile2me2012
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
41 views

Microservices April22

This document contains the command line history of a user interacting with Kubernetes and Istio. It shows the user starting a Kubernetes cluster with Minikube, deploying sample applications, configuring Istio routing and traffic shifting, and monitoring services. The user deploys bookinfo sample microservices to Kubernetes, configures Istio routing and policies, and monitors services using Kiali.

Uploaded by

smile2me2012
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

student@student-virtual-machine:~/microservices/istio-1.13.

2$ history
1 minikube start --vm-driver=docker --memory=4096
2 kubectl get all
3 kubectl completion -h | less
4 source <(kubectl completion bash)
5 kubectl create -h | less
6 kubectl create deploy -h | less
7 kubectl create deployment firstginx --replicas=3 --image=nginx
8 kubectl get all
9 kubectl create deploy mynginx --image=nginx --replicas=3 --dry-run=client -o
yaml > mynginx.yaml
10 vim mynginx.yaml
11 kubectl explain deployment.spec
12 kubectl apply -f mynginx.yaml
13 kubectl get all
14 kubectl delete -f mynginx.yaml
15 kubectl get all
16 ./countdown 12
17 history
18 kubectl create deploy mydb --image=mariadb
19 kubectl get all
20 kubectl describe pod mydb-fb7ff4d78-ktkp6
21 kubectl logs mydb-fb7ff4d78-ktkp6
22 kubectl events
23 kubectl get events
24 kubectl get all
25 kubectl scale deployment mydb --replicas=3
26 kubectl get all
27 kubectl logs mydb-fb7ff4d78-6xwr9
28 kubectl create cm mydbcm --from-literal=MARIADB_ROOT_PASSWORD=password
29 kubectl describe cm mydbcm
30 kubectl get all --selector app=mydb
31 kubectl get all --selector app=mydb --show-labels
32 kubectl get all --selector app=mydb
33 kubectl set env --from=configmap/mydbcm deploy/mydb
34 kubectl get all --selector app=mydb
35 cat nginx-custom-config.conf
36 kubectl create cm nginx-cm --from-file nginx-custom-config.conf
37 kubectl get cm nginx-cm -o yaml
38 vim nginx-cm.yaml
39 kubectl create -f nginx-cm.yaml
40 kubectl exec -it nginx-cm -- cat /etc/nginx/conf.d/default.conf
41 history
42 kubectl get deploy
43 kubectl delete deploy firstginx
44 kubectl delete deploy mydb
45 kubectl create deployment nginxsvc --image=nginx
46 kubectl get all --selector app=nginxsvc
47 kubectl expose deployment nginxsvc --port=80
48 kubectl describe svc nginxsvc
49 kubectl get pods --selector app=nginxsvc -o wide
50 kubectl scale deployment nginxsvc --replicas=3
51 kubectl describe svc nginxsvc
52 kubectl get all --selector app=nginxsvc
53 kubectl get endpoints
54 kubectl edit svc nginxsvc
55 kubectl get endpoints
56 kubectl edit svc nginxsvc
57 kubectl get endpoints
58 kubectl get svc
59 curl 10.100.144.218
60 minikube ssh
61 kubectl edit svc nginxsvc
62 kubectl get svc
63 minikube ip
64 curl 192.168.49.2:32000
65 history
66 minikube addons list
67 minikube addons enable ingress
68 kubectl get ns
69 kubectl get all -n ingress-nginx
70 kubectl get deploy
71 kubectl get svc
72 curl 192.168.42.2:32000
73 minikube ip
74 curl 192.168.49.2:32000
75 vim nginxsvc-ingress.yaml
76 kubectl create -f nginxsvc-ingress.yaml
77 vim kustomization.yaml
78 vim deployment.yaml
79 vim service.yaml
80 kubectl apply -k .
81 kubectl get deploy --show-labels
82 ls
83 cd lesson6lab/
84 ls
85 vim kustomization.yaml
86 vim mysql-deployment.yaml
87 vim wordpress-deployment.yaml
88 kubectl apply -k .
89 kubectl get secret
90 kubectl get secrets mysql-pass-bc6ggk5g2t -o yaml
91 echo cGFzc3dvcmQ= | base64 -d
92 kubectl get deploy
93 kubectl get pvc
94 kubectl get svc
95 minikube service wordpress --url
96 cd ..
97 ./countdown 18
98 curl -L https://istio.io/downloadIstio | sh -
99 cd istio-1.13.2/
100 ls
101 ls bin/
102 ls manifests/
103 cd samples/
104 cd ..
105 ls samples/
106 sudo cp bin/istioctl /usr/bin/
107 istioctl --version
108 istioctl --help
109 istioctl --set-profile=demo -y
110 istioctl --set profile=demo -y
111 istioctl install --set profile=demo -y
112 kubectl get ns
113 kubectl get all -n istio-system
114 kubectl get crds
115 kubectl api-resources | less
116 cd
117 kubectl get deploy
118 kubectl delete deployments.apps test-nginx-friday20
119 kubectl delete deployments.apps wordpress
120 kubectl delete deployments.apps wordpress-mysql
121 kubectl get svc
122 kubectl delete svc test-nginx-friday20
123 kubectl delete svc wordpress
124 kubectl delete svc wordpress-mysql
125 kubectl get pods
126 kubectl label namespace default istio-injection=enabled
127 kubectl get pods
128 cd microservices/istio-1.13.2/
129 ls
130 kubectl apply -f samples/bookinfo/platform/kube/bookinfo.yaml
131 kubectl get svc
132 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>"
133 kubectl get pods
134 kubectl get pods ratings-v1-b477cf6cf-mrmrf -o yaml | less
135 kubectl run dummy --image=nginx
136 kubectl get pods
137 ../countdown 14
138 vim samples/bookinfo/networking/bookinfo-gateway.yaml
139 kubectl apply -f samples/bookinfo/networking/bookinfo-gateway.yaml
140 istioctl analyze
141 kubectl delete pod nginx-cm
142 kubectl delete svc nginxsvc
143 kubectl delete deployments.apps nginxsvc
144 istioctl analyze
145 vim ../setup_istio_vars.sh
146 source ../setup_istio_vars.sh
147 echo "http://$GATEWAY_URL/productpage"
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 kubectl apply -f samples/bookinfo/networking/destination-rule-all.yaml
154 kubectl get destinationrules
155 kubectl get destinationrules -o yaml
156 kubectl apply -f samples/bookinfo/networking/virtual-service-all-v1.yaml
157 kubectl get virtualservices.networking.istio.io reviews -o yaml
158 history
159 kubectl apply -f samples/bookinfo/networking/virtual-service-reviews-50-
v3.yaml
160 kubectl get virtualservices.networking.istio.io reviews -o yaml
161 kubectl edit virtualservices.networking.istio.io reviews
162 kubectl apply -f samples/bookinfo/networking/virtual-service-reviews-v3.yaml

163 kubectl apply -f samples/bookinfo/networking/virtual-service-all-v1.yaml


164 kubectl get svc -n istio-system
165 kubectl get svc -n istio-system istio-ingressgateway -o yaml
166 kubectl get svc -n istio-system istio-ingressgateway -o yaml | grep osts
167 kubectl get svc -n istio-system istio-ingressgateway -o yaml | grep ost
168 kubectl api-resources | grep istio
169 history

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy