0%

安装istio

环境
CentOS 8
Kubernetes 1.18.0
Istio 1.5.1

参考
https://istio.io/zh/docs/setup/getting-started/

下载 Istio

1
2
curl -L https://istio.io/downloadIstio | sh -
export PATH=PATH=$PWD/istio-1.5.1/bin:$PATH

安装

安装demo配置

1
istioctl manifest apply --set profile=demo

查看 istio-ingressgateway 是否有对外IP

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
root@zeus ➜  kubectl get svc -n istio-system
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
grafana ClusterIP 10.111.163.144 <none> 3000/TCP 20s
istio-egressgateway ClusterIP 10.96.185.62 <none> 80/TCP,443/TCP,15443/TCP 21s
istio-ingressgateway LoadBalancer 10.98.84.118 <pending> 15020:30147/TCP,80:31083/TCP,443:32760/TCP,15029:30736/TCP,15030:31984/TCP,15031:30300/TCP,15032:32406/TCP,31400:31638/TCP,15443:30198/TCP 21s
istio-pilot ClusterIP 10.99.161.128 <none> 15010/TCP,15011/TCP,15012/TCP,8080/TCP,15014/TCP,443/TCP 41s
istiod ClusterIP 10.111.219.124 <none> 15012/TCP,443/TCP 41s
jaeger-agent ClusterIP None <none> 5775/UDP,6831/UDP,6832/UDP 20s
jaeger-collector ClusterIP 10.101.131.86 <none> 14267/TCP,14268/TCP,14250/TCP 20s
jaeger-collector-headless ClusterIP None <none> 14250/TCP 20s
jaeger-query ClusterIP 10.107.220.77 <none> 16686/TCP 20s
kiali ClusterIP 10.111.202.202 <none> 20001/TCP 19s
prometheus ClusterIP 10.101.44.140 <none> 9090/TCP 19s
tracing ClusterIP 10.104.231.92 <none> 80/TCP 19s
zipkin ClusterIP 10.99.8.133 <none> 9411/TCP 19s

如果 istio-ingressgateway 显示 pending,说明没有可以使用的外部负载均衡器,可以通过 kubectl edit service istio-ingressgateway -n istio-system 来指定一个 externalIP