isito 安装
1. 安装 istio 的operator 和crd
istioctl operator dump --hub docker.io/istio > istio_operator.yamlkubectl apply -f istio_operator.yaml # 安装 operator 和 CR 资源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$ kubectl create ns istio-system
$ kubectl apply -f - <<EOF
apiVersion: install.istio.io/v1alpha1
kind: IstioOperator
metadata:
namespace: istio-system
name: istiocontrolplane
spec:
components:
ingressGateways:
- enabled: true
name: istio-ingressgateway #这个是默认启用的
meshConfig:
rootNamespace: istio-system #istio的 namespace
values:
global:
istioNamespace: istio-system #istio的 namespace
hub: docker.io/istio # 此处可以改为自己的私有仓库
tag: 1.8.0 # 指定 istio 组件的版本
imagePullPolicy: IfNotPresent # 指定镜像拉取策略
proxy:
clusterDomain: cluster.local # 如果 k8s 的域名 后缀不是 cluster.local,要改这里
trustDomain: cluster.local # 同上
EOFLast updated