AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / computer / 问题 / 1468229
Accepted
Robert Tatar
Robert Tatar
Asked: 2019-08-07 03:51:08 +0800 CST2019-08-07 03:51:08 +0800 CST 2019-08-07 03:51:08 +0800 CST

helm delete release 停留在删除状态

  • 772

看来我无法删除掌舵版本。状态卡在 DELETING 中,kubernetes 关联的清理作业也失败了,但没有说明可能导致它失败的任何原因。

你们以前经历过这种行为吗?这怎么能解决?我还单独运行了在清理容器中使用的 kubectl 命令,但仍然没有。

谢谢 !。

这里附加的命令输出:

helm ls --all prometheus-operator --debug

NAME                    REVISION        UPDATED                         STATUS          CHART                           APP VERSION     NAMESPACE
prometheus-operator     1               Mon Aug  5 17:22:14 2019        DELETING        prometheus-operator-6.3.1       0.31.1          monitoring
prometheus-operator-v2  1               Mon Aug  5 19:26:20 2019        DEPLOYED        prometheus-operator-6.4.0       0.31.1          monitoring
kubectl get job prometheus-operator-operator-cleanup -n monitoring

NAME                                   COMPLETIONS   DURATION   AGE
prometheus-operator-operator-cleanup   0/1           19h        19h
kubectl describe jobs/prometheus-operator-operator-cleanup -n monitoring

Name:           prometheus-operator-operator-cleanup
Namespace:      monitoring
Selector:       controller-uid=c6bfd107-b79a-11e9-a527-42010aa80121
Labels:         app=prometheus-operator-operator
                chart=prometheus-operator-6.3.1
                heritage=Tiller
                release=prometheus-operator
Annotations:    helm.sh/hook: pre-delete
                helm.sh/hook-delete-policy: hook-succeeded
                helm.sh/hook-weight: 3
Parallelism:    1
Completions:    1
Start Time:     Mon, 05 Aug 2019 19:04:59 +0300
Pods Statuses:  0 Running / 0 Succeeded / 0 Failed
Pod Template:
  Labels:           app=prometheus-operator-operator
                    chart=prometheus-operator-6.3.1
                    controller-uid=c6bfd107-b79a-11e9-a527-42010aa80121
                    heritage=Tiller
                    job-name=prometheus-operator-operator-cleanup
                    release=prometheus-operator
  Service Account:  prometheus-operator-operator
  Containers:
   kubectl:
    Image:      k8s.gcr.io/hyperkube:v1.12.1
    Port:       <none>
    Host Port:  <none>
    Command:
      /bin/sh
      -c
      kubectl delete alertmanager   --all; kubectl delete prometheus     --all; kubectl delete prometheusrule --all; kubectl delete servicemonitor --all; sleep 10; kubectl delete crd alertmanagers.monitoring.coreos.com; kubectl delete crd prometheuses.monitoring.coreos.com; kubectl delete crd prometheusrules.monitoring.coreos.com; kubectl delete crd servicemonitors.monitoring.coreos.com; kubectl delete crd podmonitors.monitoring.coreos.com;

    Environment:  <none>
    Mounts:       <none>
  Volumes:        <none>
Events:           <none>
kubernetes
  • 2 2 个回答
  • 2782 Views

2 个回答

  • Voted
  1. FL3SH
    2019-08-07T12:50:05+08:002019-08-07T12:50:05+08:00

    检查这个。

    您可能只需要:

    kubectl edit jobs/prometheus-operator-operator-cleanup -n monitoring 并从资源中删除终结器块。

    • 0
  2. Best Answer
    Robert Tatar
    2019-08-08T09:53:32+08:002019-08-08T09:53:32+08:00

    发现了问题。不知道为什么我在工作描述中没有任何事件,但再次运行删除并能够检查生成的清理 pod 日志:

    Error from server (Forbidden): prometheuses.monitoring.coreos.com is forbidden: User "system:serviceaccount:monitoring:prometheus-operator-operator" cannot list resource "prometheuses" in API group "monitoring.coreos.com" in the namespace "monitoring"
    

    该问题是由不完整的 helm 版本删除(中断)引起的。在此删除过程中,prometheus 操作员的服务帐户及其关联的 clusterrolebinding+clusterrole 被删除,并且在第二次 helm delete 尝试时,它缺少删除第一次尝试中未删除的所有其他内容所需的权限。

    • 0

相关问题

  • OpenStack 上的 Kubernetes CSI 向节点添加了错误的 nodeid 注释

  • 使用 BIG-IP 连接到 kubernetes 集群的 ssl 直通

  • Kubernetes 一个作业被移动到另一个 pod

  • 如何使用 Ansible k8s 模块?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    Windows 照片查看器因为内存不足而无法运行?

    • 5 个回答
  • Marko Smith

    支持结束后如何激活 WindowsXP?

    • 6 个回答
  • Marko Smith

    远程桌面间歇性冻结

    • 7 个回答
  • Marko Smith

    Windows 10 服务称为 AarSvc_70f961。它是什么,我该如何禁用它?

    • 2 个回答
  • Marko Smith

    子网掩码 /32 是什么意思?

    • 6 个回答
  • Marko Smith

    鼠标指针在 Windows 中按下的箭头键上移动?

    • 1 个回答
  • Marko Smith

    VirtualBox 无法以 VERR_NEM_VM_CREATE_FAILED 启动

    • 8 个回答
  • Marko Smith

    应用程序不会出现在 MacBook 的摄像头和麦克风隐私设置中

    • 5 个回答
  • Marko Smith

    ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] 证书验证失败:无法获取本地颁发者证书 (_ssl.c:1056)

    • 4 个回答
  • Marko Smith

    我如何知道 Windows 安装在哪个驱动器上?

    • 6 个回答
  • Martin Hope
    Albin 支持结束后如何激活 WindowsXP? 2019-11-18 03:50:17 +0800 CST
  • Martin Hope
    fixer1234 “HTTPS Everywhere”仍然相关吗? 2019-10-27 18:06:25 +0800 CST
  • Martin Hope
    Kagaratsch Windows 10 删除大量小文件的速度非常慢。有什么办法可以加快速度吗? 2019-09-23 06:05:43 +0800 CST
  • Martin Hope
    andre_ss6 远程桌面间歇性冻结 2019-09-11 12:56:40 +0800 CST
  • Martin Hope
    Riley Carney 为什么在 URL 后面加一个点会删除登录信息? 2019-08-06 10:59:24 +0800 CST
  • Martin Hope
    zdimension 鼠标指针在 Windows 中按下的箭头键上移动? 2019-08-04 06:39:57 +0800 CST
  • Martin Hope
    Inter Sys Ctrl+C 和 Ctrl+V 是如何工作的? 2019-05-15 02:51:21 +0800 CST
  • Martin Hope
    jonsca 我所有的 Firefox 附加组件突然被禁用了,我该如何重新启用它们? 2019-05-04 17:58:52 +0800 CST
  • Martin Hope
    MCK 是否可以使用文本创建二维码? 2019-04-02 06:32:14 +0800 CST
  • Martin Hope
    SoniEx2 更改 git init 默认分支名称 2019-04-01 06:16:56 +0800 CST

热门标签

windows-10 linux windows microsoft-excel networking ubuntu worksheet-function bash command-line hard-drive

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve