istio-定制安装

本文提供了一种使用Helm定制安装Istio的方法,专注于仅启用其流量管理功能。通过详细配置values.yaml文件,可以实现特定需求的安装,包括启用和禁用特定组件如gateways、sidecarInjectorWebhook、pilot等。文章还提供了安装、状态检查及卸载的步骤。

建议使用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

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值