$ sudo wget https://ghproxy.com/https://github.com/istio/istio/releases/download/1.16.5/istio-1.16.5-linux-amd64.tar.gz $ sudo tar xf istio-1.16.5-linux-amd64.tar.gz $ sudo cp -a istio-1.16.5/bin/istioctl /usr/local/bin/ $ sudo chmod +x /usr/local/bin/istioctl
安装
1 2 3 4 5 6 7 8 9
$ istioctl install --set profile=demo -y ✔ Istio core installed ✔ Istiod installed ✔ Ingress gateways installed ✔ Egress gateways installed ✔ Installation complete Making this installation the default for injection and validation. Thank you for installing Istio 1.16. Please take a few minutes to tell us about your install/upgrade experience! https://forms.gle/99uiMML96AmsXY5d6
查看
1 2 3 4 5 6 7 8 9 10
$ kubectl get deploy,svc -nistio-system NAME READY UP-TO-DATE AVAILABLE AGE deployment.apps/istio-egressgateway 1/1 1 1 10m deployment.apps/istio-ingressgateway 1/1 1 1 10m deployment.apps/istiod 1/1 1 1 10m
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE service/istio-egressgateway ClusterIP 172.16.22.52 <none> 80/TCP,443/TCP 10m service/istio-ingressgateway LoadBalancer 172.16.84.188 8.219.129.229 15021:30413/TCP,80:30068/TCP,443:31931/TCP,31400:31200/TCP,15443:30085/TCP 10m service/istiod ClusterIP 172.16.157.58 <none> 15010/TCP,15012/TCP,443/TCP,15014/TCP 10m
部署测试应用
下载sample
1 2
$ git clone https://ghproxy.com/https://github.com/istio/istio.git $ cd istio
$ istioctl proxy-config secret istio-ingressgateway-647bcfbbd5-pfp9w.istio-system RESOURCE NAME TYPE STATUS VALID CERT SERIAL NUMBER NOT AFTER NOT BEFORE default Cert Chain ACTIVE true 308035502015261488183847003465245990013 2023-05-28T08:31:36Z 2023-05-27T08:29:36Z kubernetes://bookinfo-secrets CA ACTIVE true 14908410081049176274 2033-05-24T09:13:33Z 2023-05-27T09:13:33Z ROOTCA CA ACTIVE true 280362160557638848503915305201489233374 2033-05-24T08:31:31Z 2023-05-27T08:31:31Z