为什么`kube-prometheus-stack`抱怨未找到秘密“prometheus-kube-prometheus-admission”

问题描述 投票:0回答:1

鉴于 ArgoCD v2.13.2 和

kube-prometheus-stack
Helm Chart v67.3.1(以及可能的两者的其他版本),ArgoCD 可能无法使用
kube-prometheus-stack-operator
pod 安装图表,因为未找到秘密
"kube-prometheus-stack-admission"
。如何以 GitOps 兼容的方式永久修复此问题?

kubernetes kubernetes-helm argocd prometheus-operator kube-prometheus-stack
1个回答
0
投票

根据此处的评论https://github.com/prometheus-community/helm-charts/blob/main/charts/kube-prometheus-stack/values.yaml#L2367,更新您的 Helm 值以包含以下内容块应该可以解决这个问题:

      prometheusOperator:
        admissionWebhooks:
          annotations:
            argocd.argoproj.io/hook: PreSync
            argocd.argoproj.io/hook-delete-policy: HookSucceeded
          mutatingWebhookConfiguration:
            annotations:
              argocd.argoproj.io/hook: PreSync
          validatingWebhookConfiguration:
            annotations:
              argocd.argoproj.io/hook: PreSync
          patch:
            annotations:
              argocd.argoproj.io/hook: PreSync
              argocd.argoproj.io/hook-delete-policy: HookSucceeded
© www.soinside.com 2019 - 2024. All rights reserved.