I have a Kubernetes cluster where the application running within the cluster is managed by Helm. I have the following dependency in my Chart.yaml
:
我有一个Kubernetes集群,在该集群中运行的应用程序由Helm管理。我的Chart.yaml中有以下依赖项:
apiVersion: v2
name: xyz
description: A Helm chart for the xyz application
type: application
version: 1.9.0
appVersion: 1.4.0
dependencies:
- name: grafana
repository: https://grafana.github.io/helm-charts
version: 6.58.6
and this installs Grafana fine as it should, when I run helm install
. However, I no longer need Grafana in my cluster, so my question is how do I get rid of Grafana again (using Helm commands) once it has been installed?
当我运行Helm Install时,这会很好地安装Grafana。但是,我的集群中不再需要Grafana,所以我的问题是,安装Grafana之后,如何再次删除Grafana(使用Helm命令)?
I have tried to the remove the grafana section again from the dependency block in the Chart.yaml
, but running helm upgrade
does not remove Grafana from the cluster?
我已经尝试从Chart.yaml中的依赖项块中再次删除grafana部分,但运行helm升级没有从集群中删除grafana?
更多回答
优秀答案推荐
Apparently it is not possible - I asked the same question on Slack, and the answer was:
显然这是不可能的--我在Slack上问了同样的问题,答案是:
There is no current facility to decouple the lifecycle between a chart and its dependencies. You will need to uninstall the parent chart which will also remove the dependency
目前还没有将图表及其依赖项之间的生命周期分离的工具。您需要卸载父图表,这也将删除依赖关系
(see https://app.slack.com/client/T09NY5SBT/C0NH30761/thread/C0NH30761-1694273955.452739)
(see https://app.slack.com/client/T09NY5SBT/C0NH30761/thread/C0NH30761-1694273955.452739)
更多回答
我是一名优秀的程序员,十分优秀!