建议使用helm 定制安装:
参考:https://istio.io/zh/docs/setup/kubernetes/helm-install/
1. 只使用流量管理功能:
values.yaml 配置:
global 不变
gateways:
enabled: true
istio-ingressgateway:
enabled: true
istio-egressgateway:
enabled: false
istio-ilbgateway:
enabled: false
sidecarInjectorWebhook:
enabled: true
pilot:
enabled: true
ingress:
enabled: false
galley:
enabled: false
mixer:
enabled: false
安装:
helm upgrade --install --wait istio . --namespace istio-system
查看状态:
$ kubectl get po,svc -n istio-system
NAME READY STATUS RESTARTS AGE
po/istio-citadel-55f4559bf4-8kqbt 1/1 Running 4 6d
po/istio-ingressgateway-7477597868-5xkdv 1/1 Running 1 2d
po/istio-pilot-66fc669444-rg92r 2/2 Running 8 6d
po/istio-sidecar-injector-785d946b9f-495sw 1/1 Running 4 6d
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
svc/istio-citadel ClusterIP 10.254.69.123 <none> 8060/TCP,9093/TCP 6d
svc/istio-ingressgateway NodePort 10.254.205.222 <none> 80:80/TCP,443:443/TCP,31400:31400/TCP,15011:4109/TCP,8060:39658/TCP,853:58231/TCP,15030:17546/TCP,15031:31106/TCP 6d
svc/istio-pilot ClusterIP 10.254.176.122 <none> 15010/TCP,15011/TCP,8080/TCP,9093/TCP 6d
svc/istio-sidecar-injector ClusterIP 10.254.233.39 <none> 443/TCP
Uninstall
For option 1, uninstall using kubectl:
$ kubectl delete -f $HOME/istio.yaml
For option 2, uninstall using Helm:
$ helm delete --purge istio
If your Helm version is less than 2.9.0, then you need to manually cleanup extra job resource before redeploy new version of Istio chart:
$ kubectl -n istio-system delete job --all
If desired, delete the CRDs:
$ kubectl delete -f install/kubernetes/helm/istio/templates/crds.yaml -n istio-system
本文提供了一种使用Helm定制安装Istio的方法,专注于仅启用其流量管理功能。通过详细配置values.yaml文件,可以实现特定需求的安装,包括启用和禁用特定组件如gateways、sidecarInjectorWebhook、pilot等。文章还提供了安装、状态检查及卸载的步骤。

756

被折叠的 条评论
为什么被折叠?



