UiPath Documentation
automation-suite
2.2510
true
EKS/AKS 上的 Automation Suite 安装指南
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。

如何卸载证书管理器

从 EKS/AKS 上的 Automation Suite 卸载 Cert Manager。

先决条件​

  • 已安装并配置 kubectl CLI ( kubectl )。
  • 在目标命名空间中删除资源的相应权限。

必填信息​

在继续之前,您必须收集以下信息:

  • 正在使用证书管理器资源的 UiPath 命名空间。

分步卸载过程​

  1. 删除 cert-manager 的角色绑定:
    # Verify if the role binding exists
    kubectl get rolebinding -n <uipath_namespace> | grep cert-manager
    
    # If it exists, delete it
    kubectl delete rolebinding <role-binding-name> -n <uipath_namespace>
    # Verify if the role binding exists
    kubectl get rolebinding -n <uipath_namespace> | grep cert-manager
    
    # If it exists, delete it
    kubectl delete rolebinding <role-binding-name> -n <uipath_namespace>
    
  2. 删除 cert-manager 角色:
    # Check if the role exists
    kubectl get role cert-manager -n <uipath_namespace> | grep cert-manager
    
    # If it exists, delete it
    kubectl delete role <cert-manamger-role> -n <uipath_namespace>
    # Check if the role exists
    kubectl get role cert-manager -n <uipath_namespace> | grep cert-manager
    
    # If it exists, delete it
    kubectl delete role <cert-manamger-role> -n <uipath_namespace>
    
  3. 清理命名空间中的 cert-manager 资源:
    # Delete all certificates
    kubectl delete certificates.cert-manager.io --all -n <uipath_namespace>
    
    # Delete all issuers
    kubectl delete issuers.cert-manager.io --all -n <uipath_namespace>
    
    # Delete all clusterissuers if you created any
    kubectl delete clusterissuers.cert-manager.io --all
    # Delete all certificates
    kubectl delete certificates.cert-manager.io --all -n <uipath_namespace>
    
    # Delete all issuers
    kubectl delete issuers.cert-manager.io --all -n <uipath_namespace>
    
    # Delete all clusterissuers if you created any
    kubectl delete clusterissuers.cert-manager.io --all
    
  4. 从集群中卸载证书管理器,按照步骤 1、2 和 3 对于其他命名空间删除命名空间或任何残留证书资源。此外,交叉验证 cert-manager 是否未由任何其他组件使用。
  5. 验证剩余资源:
    # Check for any remaining cert-manager resources
    kubectl get all -n <uipath_namespace> | grep cert-manager
    kubectl get crd | grep cert-manager
    # Check for any remaining cert-manager resources
    kubectl get all -n <uipath_namespace> | grep cert-manager
    kubectl get crd | grep cert-manager
    

​故障排除

如果无法删除某些资源:

  • 确保您具有必要权限。
  • 检查资源是否正在由其他应用程序使用。
  • 对于卡在“正在终止”状态的资源,您可能需要删除终止程序。

注意​

  • 仅当集群中的其他应用程序未使用 cert-manager 时,才将其卸载。
  • 如果多个应用程序依赖 cert-manager,请考虑仅删除特定于 UiPath 的资源。
  • 将<uipath_namespace>替换为实际的 UiPath 命名空间。
  • 先决条件​
  • 必填信息​
  • 分步卸载过程​
  • 故障排除​
  • 注意​

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新