【发布时间】:2021-08-16 09:15:50
【问题描述】:
【问题讨论】:
标签: docker kubernetes containers kubectl
【问题讨论】:
标签: docker kubernetes containers kubectl
列出的容器是 Kubernetes 集群的核心组件。删除这些将完全破坏您的集群。
已警告您
不要使用docker ps查看Kubernetes资源。使用kubectl 工具,例如
kubectl get pods
查看 pod,或
kubectl get pods -o jsonpath="{.items[*].spec.containers[*].name}"
查看正在运行的容器的名称(在 Kubernetes 中,pod 和容器不是一回事)。
有明确的instructions on how to uninstall Clara。你应该遵循这些。 官方文档也劝阻手动删除 Clara Deploye 组件:
We do not recommend manually deleting Clara Deploy components; the uninstall_prereq.sh script will delete all necessary binaries and stop all Clara Deploy containers.
但是,如果出于某种原因,您仍想删除提到的容器,请继续阅读。
据我所知,Clara Deploy SDK 默认安装使用helm 来部署K8s 资源。因此,您可以使用helm 永久删除容器。
列出已安装的 helm 图表:
helm list
应返回以下掌舵图:[source]
卸载图表
helm uninstall <chart-name>
【讨论】: