gpt4 book ai didi

redis - 如何删除(卸载)特定资源上的 Helm 图

转载 作者:IT王子 更新时间:2023-10-29 06:01:46 25 4
gpt4 key购买 nike

我已经安装了redis .我的默认名字是 plinking-narwhal。现在我想用我分配的名字安装一个服务。但首先我想删除现有的。我曾尝试删除它们但没有成功。

$ kubectl get all
NAME READY STATUS RESTARTS AGE
pod/plinking-narwhal-redis-master-0 1/1 Running 0 12m
pod/plinking-narwhal-redis-slave-9b645b597-2vh82 1/1 Running 7 12m

NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
service/kubernetes ClusterIP 10.96.0.1 <none> 443/TCP 15m
service/plinking-narwhal-redis-master ClusterIP 10.109.186.189 <none> 6379/TCP 12m
service/plinking-narwhal-redis-slave ClusterIP 10.99.122.12 <none> 6379/TCP 12m

NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE
deployment.apps/plinking-narwhal-redis-slave 1 1 1 1 12m

NAME DESIRED CURRENT READY AGE
replicaset.apps/plinking-narwhal-redis-slave-9b645b597 1 1 1 12m

NAME DESIRED CURRENT AGE
statefulset.apps/plinking-narwhal-redis-master 1 1 12m
master $ helm delete stable/redis
Error: invalid release name, must match regex ^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])+$ and the length must not longer than 53
master $ helm delete --name plinking-narwhal stable/redis
Error: unknown flag: --name

最佳答案

您可能需要:

$ helm delete redis

或者如果您完全想删除版本:

$ helm delete redis --purge

stable/redis 由于斜线(/) 而不允许作为表达式

如果您想查看发布的名称,只需运行:

$ helm list -aq

关于redis - 如何删除(卸载)特定资源上的 Helm 图,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55036464/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com