在kubernetes的多主节点中安装Istio

时间:2018-10-09 12:23:30

标签: kubernetes istio

我了解了有关Istio的信息,需要将其安装在Kubernetes中。

我不知道在多节点Kubernetes集群中安装Istio的最佳方法是什么。

设置是Kubernetes的多节点主群集和多节点从属群集。

使用Istio多集群或sidecar注入(自动)进行安装是最好的方法吗?

致谢。

1 个答案:

答案 0 :(得分:1)

如果要安装Istio,Kubernetes群集有多少个主节点和从属节点没有区别。

您可以按照此link

中的说明进行操作

简而言之,您需要:

  1. 下载Istio release
  2. 使用该版本中的kubectl apply -f install/kubernetes/helm/istio/templates/crds.yaml安装Istio的自定义资源定义
  3. 使用以下选项之一安装Istio组件:

对于自动注入,您需要安装istio-sidecar-injector组件并为要在其中工作的命名空间添加istio-injection=enabled标签。 命令示例:

kubectl label namespace <namespace> istio-injection=enabled
kubectl create -n <namespace> -f <your-app-spec>.yaml
相关问题