安装独立 Operator [实验]

    该指南将会指引您使用独立的 Istio operator 来安装 Istio。 唯一的依赖就是一个 Kubernetes 集群和 命令行工具。

    如果要安装生产环境的 Istio,我们还是建议您参考。

    1. 执行必要的平台特定设置

    2. 检查 。

    3. 部署 Istio operator:

      这条命令会在 istio-operator 命名空间中创建以下资源并运行 Istio operator :

      • operator 自定义资源
      • operator 控制器 deployment
      • operator 指标信息 service
      • operator 必要的 RBAC 规则

    运行以下命令用 operator 安装 Istio demo 配置文件

    1. $ kubectl create ns istio-system
    2. $ kubectl apply -f - <<EOF
    3. apiVersion: install.istio.io/v1alpha1
    4. metadata:
    5. namespace: istio-operator
    6. name: example-istiocontrolplane
    7. spec:
    8. profile: demo
    9. EOF

    控制器会检测 IstioControlPlane 资源,然后按照指定的()配置安装 Istio 组件。

    1. $ kubectl get pods -n istio-system
    2. NAME READY STATUS RESTARTS AGE
    3. grafana-f8467cc6-rbjlg 1/1 Running 0 1m
    4. istio-citadel-78df5b548f-g5cpw 1/1 Running 0 1m
    5. istio-egressgateway-78569df5c4-zwtb5 1/1 Running 0 1m
    6. istio-galley-74d5f764fc-q7nrk 1/1 Running 0 1m
    7. istio-ingressgateway-7ddcfd665c-dmtqz 1/1 Running 0 1m
    8. istio-pilot-f479bbf5c-qwr28 1/1 Running 0 1m
    9. istio-policy-6fccc5c868-xhblv 1/1 Running 2 1m
    10. istio-telemetry-78b96c6cb6-ldm9q 1/1 Running 2 1m
    11. istio-tracing-69b5f778b7-s2zvw 1/1 Running 0 1m
    12. kiali-99f7467dc-6rvwp 1/1 Running 0 1m

    现在,控制器已经在运行了,您可以通过编辑或替换 IstioControlPlane 资源来改变 Istio 的配置。 控制器将会检测该变化,并对应的更新 Istio 的安装。

    例如,您可以运行以下命令将安装切换为 default 配置:

    您还可以启用或禁用指定的特性或组件。 例如,禁用遥测特性:

    1. $ kubectl apply -f - <<EOF
    2. apiVersion: install.istio.io/v1alpha1
    3. kind: IstioControlPlane
    4. metadata:
    5. namespace: istio-operator
    6. name: example-istiocontrolplane
    7. spec:
    8. profile: default
    9. telemetry:
    10. enabled: false
    11. EOF

    参考 获取完整的配置项。

    删除 Istio operator 和 Istio 部署:

    介绍 istiod:简化控制平面

    Istiod 将 Istio 控制平面组件合并为一个二进制文件。

    重新定义代理的扩展性:Envoy 和 Istio 引入 WebAssembly

    Istio 的扩展中使用 WASM 的前景。

    Istio 在 2020 年的愿景声明及路线图。

    DNS 证书管理

    在 Istio 中配置和管理 DNS 证书。

    关于 Istio 基于 operator 的安装和控制平面管理特性的介绍。