安装独立 Operator [实验]
该指南将会指引您使用独立的 Istio operator 来安装 Istio。 唯一的依赖就是一个 Kubernetes 集群和 命令行工具。
如果要安装生产环境的 Istio,我们还是建议您参考。
执行必要的平台特定设置。
检查 。
部署 Istio operator:
这条命令会在
istio-operator
命名空间中创建以下资源并运行 Istio operator :- operator 自定义资源
- operator 控制器 deployment
- operator 指标信息 service
- operator 必要的 RBAC 规则
运行以下命令用 operator 安装 Istio demo
配置文件:
$ kubectl create ns istio-system
$ kubectl apply -f - <<EOF
apiVersion: install.istio.io/v1alpha1
metadata:
namespace: istio-operator
name: example-istiocontrolplane
spec:
profile: demo
EOF
控制器会检测 IstioControlPlane
资源,然后按照指定的()配置安装 Istio 组件。
$ kubectl get pods -n istio-system
NAME READY STATUS RESTARTS AGE
grafana-f8467cc6-rbjlg 1/1 Running 0 1m
istio-citadel-78df5b548f-g5cpw 1/1 Running 0 1m
istio-egressgateway-78569df5c4-zwtb5 1/1 Running 0 1m
istio-galley-74d5f764fc-q7nrk 1/1 Running 0 1m
istio-ingressgateway-7ddcfd665c-dmtqz 1/1 Running 0 1m
istio-pilot-f479bbf5c-qwr28 1/1 Running 0 1m
istio-policy-6fccc5c868-xhblv 1/1 Running 2 1m
istio-telemetry-78b96c6cb6-ldm9q 1/1 Running 2 1m
istio-tracing-69b5f778b7-s2zvw 1/1 Running 0 1m
kiali-99f7467dc-6rvwp 1/1 Running 0 1m
现在,控制器已经在运行了,您可以通过编辑或替换 IstioControlPlane
资源来改变 Istio 的配置。 控制器将会检测该变化,并对应的更新 Istio 的安装。
例如,您可以运行以下命令将安装切换为 default
配置:
您还可以启用或禁用指定的特性或组件。 例如,禁用遥测特性:
$ kubectl apply -f - <<EOF
apiVersion: install.istio.io/v1alpha1
kind: IstioControlPlane
metadata:
namespace: istio-operator
name: example-istiocontrolplane
spec:
profile: default
telemetry:
enabled: false
EOF
参考 获取完整的配置项。
删除 Istio operator 和 Istio 部署:
Istiod 将 Istio 控制平面组件合并为一个二进制文件。
重新定义代理的扩展性:Envoy 和 Istio 引入 WebAssembly
Istio 的扩展中使用 WASM 的前景。
Istio 在 2020 年的愿景声明及路线图。
在 Istio 中配置和管理 DNS 证书。
关于 Istio 基于 operator 的安装和控制平面管理特性的介绍。