Helm安装istio

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26


kubectl create namespace istio-system
kubectl label namespace istio-system istio-injection=enabled


helm repo add istio.io https://storage.googleapis.com/istio-release/releases/1.3.4/charts/


helm search repo istio


helm pull istio.io/istio-init --untar


helm install istio istio.io/istio-init -n istio-system


kubectl get crds -n istio-system | grep istio.io |wc -l
23
#打印出23就完成


kubectl get pods -n istio-system




安装bookinfo

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

wget https://github.com/istio/istio/releases/download/1.4.0/istio-1.4.0-linux.tar.gz


tar -zxvf istio-1.4.0-linux.tar.gz

kubectl apply -f samples/bookinfo/platform/kube/bookinfo.yaml

kubectl apply -f samples/bookinfo/networking/bookinfo-gateway.yaml


kubectl get ns default --show-labels

kubectl get gateway


kubectl edit svc productpage-v1

改为NodePort

访问Ip+NodePort

image-20211027231144189


Helm 安装Kiali

1
2
3
4
helm install \
--namespace istio-system \
kiali-server \
kiali/kiali-server
1
kubectl port-forward svc/kiali 20001:20001 -n istio-system

image-20211104212843841