isito 安装

istio 同样 推荐通过 operator 形式来安装

1. 安装 istio 的operator 和crd

安装 operator deployment 和 operator crd,此处安装的是 istio 1.8.0版本,官网安装链接arrow-up-right

首先下载 istioctl https://github.com/istio/istio/releases/arrow-up-right

此处下载的是 istioctl istio 1.8.0 版本

istioctl operator  dump --hub docker.io/istio > istio_operator.yaml
kubectl apply -f istio_operator.yaml # 安装 operator 和 CR 资源

通过 istioctl 生成对应的yaml ,其中 --hub docker.io/istio可以指定 operator deployment 镜像的 hub地址,此处换成自己的私有仓库地址,如图 --hub docker.io/istio 生成的镜像地址是 image: docker.io/istio/operator:1.8.0 ,版本和 istioctl 的版本相同, 如果想自定义还可以通过 --tag 来指定。

2. 安装对应的 CR 资源

$ kubectl create ns istio-system
$ kubectl apply -f - <<EOF
apiVersion: install.istio.io/v1alpha1
kind: IstioOperator
metadata:
  namespace: istio-system
  name: istiocontrolplane
spec:
  profile: demo
EOF

Last updated