卸载 ambient 模式下的 Alauda Service Mesh
您可以从 Alauda Container Platform 中卸载 Alauda Service Mesh Operator 及其 ambient 模式资源。此操作可以通过 Alauda Container Platform Web 控制台或命令行界面(CLI)完成。此外,您还可以选择删除 Istio 自定义资源定义(CRDs)。
通过 Web 控制台卸载
要从 Alauda Container Platform 的 ambient 模式中卸载 Alauda Service Mesh v2 Operator,需要删除以下组件:
- Waypoint proxy
Gatewayresources ZTunnelresourceIstioresourceIstioCNIresource- Alauda Service Mesh v2 Operator
ztunnelnamespaceistio-systemnamespaceistio-cninamespace
您还可以选择移除 Istio 自定义资源定义(CRDs)。
可以使用 Alauda Container Platform Web 控制台卸载 Alauda Service Mesh v2 Operator。
操作步骤
删除 waypoint proxy Gateway resources
从已部署 waypoint proxy 的每个 namespace 中移除所有 waypoint proxy Gateway resources。您可以通过 Gateway resources 上的 istio.io/waypoint-for label 来识别 waypoint proxy。
从 namespaces 中移除 ambient data plane label
从所有已加入 ambient data plane 的 namespaces 中移除 istio.io/dataplane-mode=ambient label:
删除 ZTunnel resource
- 在 Alauda Container Platform Web 控制台中,导航到 Administrator。
- 选择 Marketplace > OperatorHub。
- 搜索
Alauda Service Mesh v2。 - 找到 Alauda Service Mesh v2,并单击以选中它。
- 单击 All Instances 选项卡。
- 在 Filter by instance type 下拉列表中,选择
ZTunnel。 - 单击
ZTunnelresource 的 "⋮" 按钮,然后在菜单中单击 Delete。 - 出现提示时,单击 Delete 确认操作。
删除 Istio resource
在 OperatorHub 的 Alauda Service Mesh v2 视图中:
- 单击 All Instances 选项卡。
- 在 Filter by instance type 下拉列表中,选择
Istio。 - 单击
Istioresource 的 "⋮" 按钮,然后在菜单中单击 Delete。 - 出现提示时,单击 Delete 确认操作。
删除 IstioCNI resource
在 OperatorHub 的 Alauda Service Mesh v2 视图中:
- 单击 All Instances 选项卡。
- 在 Filter by instance type 下拉列表中,选择
IstioCNI。 - 单击
IstioCNIresource 的 "⋮" 按钮,然后在菜单中单击 Delete。 - 出现提示时,单击 Delete 确认操作。
卸载 Alauda Service Mesh v2 Operator
在 OperatorHub 的 Alauda Service Mesh v2 视图中:
- 单击右上角的 Uninstall 按钮。
- 在确认提示中,阅读卸载说明:移除 operator 不会删除其任何自定义资源定义或受管资源。如果您已创建资源实例,需要手动将其删除。
- 单击 Uninstall。
删除 ztunnel namespace
删除 istio-system namespace
删除 istio-cni namespace
通过 CLI 卸载
要从 Alauda Container Platform 的 ambient 模式中卸载 Alauda Service Mesh v2 Operator,必须删除以下内容:
- Waypoint proxy
Gatewayresources ZTunnelresourceIstioresourceIstioCNIresource- Alauda Service Mesh v2 Operator
ztunnelprojectistio-systemprojectistio-cniproject
此外,您还可以删除 Istio 自定义资源定义(CRDs)。
可以使用 Alauda Container Platform 命令行界面(CLI)卸载 Alauda Service Mesh v2 Operator。
操作步骤
删除 waypoint proxy Gateway resources
-
列出所有 namespace 中的所有 waypoint proxy Gateway resources:
示例输出
-
删除所有 waypoint proxy Gateway resources:
示例输出
移除 ambient data plane label 并删除 ZTunnel resource
-
列出所有已加入 ambient data plane 的 namespaces:
示例输出
-
从所有已加入的 namespaces 中移除
istio.io/dataplane-modelabel: -
通过执行以下命令获取
ZTunnelresource 名称:示例输出
-
删除
ZTunnelresource:示例输出
删除 Istio resource
-
通过执行以下命令获取
Istioresource 名称:示例输出
-
使用上一个命令输出中的名称替换
<name_of_custom_resource>,然后运行以下命令将其移除:示例输出
删除 IstioCNI resource
-
通过执行以下命令获取
IstioCNIresource:示例输出
-
运行以下命令将其移除:
示例输出
删除 ztunnel、istio-system 和 istio-cni namespaces
-
使用以下命令删除
ztunnelnamespace:示例输出
-
使用以下命令删除
istio-systemnamespace:示例输出
-
使用以下命令删除
istio-cninamespace:示例输出
卸载 Alauda Service Mesh v2 Operator
-
删除
servicemesh-operator2subscription:示例输出
删除 Istio 自定义资源定义
删除 Istio 自定义资源定义(CRDs)是可选步骤。
操作步骤
-
要删除 Istio CRDs,请执行以下命令: