I deployed my apps using helm. Mistakenly I put the same helm release name. Now how can I delete the specific deployment for e.g. first one with chart my-chart-1.0.0
.
$ helm ls
NAME REVISION UPDATED STATUS CHART NAMESPACE
appname 1 Mon Oct 1 10:36:17 2018 DEPLOYED my-chart-1.0.0 default
appname 1 Mon Sep 10 17:18:49 2018 DEPLOYED my-chart-2.0.0 default
appname 1 Mon Sep 10 18:18:49 2018 DEPLOYED my-chart-3.0.0 default
Any help is appreciated.
Thanks
答案 0 :(得分:2)
我认为这应该有所帮助
helm delete $(helm ls | awk '$9 ~ /SEARCH/ { print $1 }')
用任何图表模式替换SEARCH
(在您的情况下为my-chart-1.0.0
)。
我还要添加一个--dry-run
并检查这是否确实是您要删除的部署。
您可以阅读有关helm delete的Helm文档。