鉴于 ArgoCD v2.13.2 和
kube-prometheus-stack
Helm Chart v67.3.1(以及可能的两者的其他版本),ArgoCD 可能无法使用 kube-prometheus-stack-operator
pod 安装图表,因为未找到秘密 "kube-prometheus-stack-admission"
。如何以 GitOps 兼容的方式永久修复此问题?
根据此处的评论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