通过 helm 安装 prometheus-community 的问题
issue with prometheus-community installation via helm
我尝试安装prometheus-community/kube-prometheus-stack
使用以下命令
helm install stable prometheus-community/kube-prometheus-stack -n monitoring --debug
但是失败了,问题是:
helm.go:88: [debug] failed pre-install: timed out waiting for the condition
我试图通过谷歌搜索找到答案,但找不到解决方案。
下面是完整的调试语句:
install.go:178: [debug] Original chart version: ""
install.go:199: [debug] CHART PATH: /Users/dmitryignatev/Library/Caches/helm/repository/kube-prometheus-stack-27.2.1.tgz
client.go:128: [debug] creating 1 resource(s)
install.go:151: [debug] CRD alertmanagerconfigs.monitoring.coreos.com is already present. Skipping.
client.go:128: [debug] creating 1 resource(s)
install.go:151: [debug] CRD alertmanagers.monitoring.coreos.com is already present. Skipping.
client.go:128: [debug] creating 1 resource(s)
install.go:151: [debug] CRD podmonitors.monitoring.coreos.com is already present. Skipping.
client.go:128: [debug] creating 1 resource(s)
install.go:151: [debug] CRD probes.monitoring.coreos.com is already present. Skipping.
client.go:128: [debug] creating 1 resource(s)
install.go:151: [debug] CRD prometheuses.monitoring.coreos.com is already present. Skipping.
client.go:128: [debug] creating 1 resource(s)
install.go:151: [debug] CRD prometheusrules.monitoring.coreos.com is already present. Skipping.
client.go:128: [debug] creating 1 resource(s)
install.go:151: [debug] CRD servicemonitors.monitoring.coreos.com is already present. Skipping.
client.go:128: [debug] creating 1 resource(s)
install.go:151: [debug] CRD thanosrulers.monitoring.coreos.com is already present. Skipping.
client.go:299: [debug] Starting delete for "stable-kube-prometheus-sta-admission" PodSecurityPolicy
client.go:128: [debug] creating 1 resource(s)
client.go:299: [debug] Starting delete for "stable-kube-prometheus-sta-admission" ServiceAccount
client.go:328: [debug] serviceaccounts "stable-kube-prometheus-sta-admission" not found
client.go:128: [debug] creating 1 resource(s)
client.go:299: [debug] Starting delete for "stable-kube-prometheus-sta-admission" ClusterRole
client.go:128: [debug] creating 1 resource(s)
client.go:299: [debug] Starting delete for "stable-kube-prometheus-sta-admission" ClusterRoleBinding
client.go:128: [debug] creating 1 resource(s)
client.go:299: [debug] Starting delete for "stable-kube-prometheus-sta-admission" Role
client.go:328: [debug] roles.rbac.authorization.k8s.io "stable-kube-prometheus-sta-admission" not found
client.go:128: [debug] creating 1 resource(s)
client.go:299: [debug] Starting delete for "stable-kube-prometheus-sta-admission" RoleBinding
client.go:328: [debug] rolebindings.rbac.authorization.k8s.io "stable-kube-prometheus-sta-admission" not found
client.go:128: [debug] creating 1 resource(s)
client.go:299: [debug] Starting delete for "stable-kube-prometheus-sta-admission-create" Job
client.go:328: [debug] jobs.batch "stable-kube-prometheus-sta-admission-create" not found
client.go:128: [debug] creating 1 resource(s)
client.go:528: [debug] Watching for changes to Job stable-kube-prometheus-sta-admission-create with timeout of 5m0s
client.go:556: [debug] Add/Modify event for stable-kube-prometheus-sta-admission-create: ADDED
client.go:595: [debug] stable-kube-prometheus-sta-admission-create: Jobs active: 1, jobs failed: 0, jobs succeeded: 0
Error: INSTALLATION FAILED: failed pre-install: timed out waiting for the condition
helm.go:88: [debug] failed pre-install: timed out waiting for the condition
我修好了。需要使用不是最新版本。只需在您的图片中包含不是最新的标签即可。我使用版本 18
helm install monitoring prometheus-community/kube-prometheus-stack \
--version 18.0.8 \
--namespace monitoring \
--create-namespace
删除“卡住”的 kube-prometheus-s-admission-create 作业和 kube-prometheus-s-admission-patch 作业,可能是就绪探测失败了。删除它们后,过程继续成功。
从另一个会话中删除作业,它将进一步移动
我尝试安装prometheus-community/kube-prometheus-stack
使用以下命令
helm install stable prometheus-community/kube-prometheus-stack -n monitoring --debug
但是失败了,问题是:
helm.go:88: [debug] failed pre-install: timed out waiting for the condition
我试图通过谷歌搜索找到答案,但找不到解决方案。
下面是完整的调试语句:
install.go:178: [debug] Original chart version: ""
install.go:199: [debug] CHART PATH: /Users/dmitryignatev/Library/Caches/helm/repository/kube-prometheus-stack-27.2.1.tgz
client.go:128: [debug] creating 1 resource(s)
install.go:151: [debug] CRD alertmanagerconfigs.monitoring.coreos.com is already present. Skipping.
client.go:128: [debug] creating 1 resource(s)
install.go:151: [debug] CRD alertmanagers.monitoring.coreos.com is already present. Skipping.
client.go:128: [debug] creating 1 resource(s)
install.go:151: [debug] CRD podmonitors.monitoring.coreos.com is already present. Skipping.
client.go:128: [debug] creating 1 resource(s)
install.go:151: [debug] CRD probes.monitoring.coreos.com is already present. Skipping.
client.go:128: [debug] creating 1 resource(s)
install.go:151: [debug] CRD prometheuses.monitoring.coreos.com is already present. Skipping.
client.go:128: [debug] creating 1 resource(s)
install.go:151: [debug] CRD prometheusrules.monitoring.coreos.com is already present. Skipping.
client.go:128: [debug] creating 1 resource(s)
install.go:151: [debug] CRD servicemonitors.monitoring.coreos.com is already present. Skipping.
client.go:128: [debug] creating 1 resource(s)
install.go:151: [debug] CRD thanosrulers.monitoring.coreos.com is already present. Skipping.
client.go:299: [debug] Starting delete for "stable-kube-prometheus-sta-admission" PodSecurityPolicy
client.go:128: [debug] creating 1 resource(s)
client.go:299: [debug] Starting delete for "stable-kube-prometheus-sta-admission" ServiceAccount
client.go:328: [debug] serviceaccounts "stable-kube-prometheus-sta-admission" not found
client.go:128: [debug] creating 1 resource(s)
client.go:299: [debug] Starting delete for "stable-kube-prometheus-sta-admission" ClusterRole
client.go:128: [debug] creating 1 resource(s)
client.go:299: [debug] Starting delete for "stable-kube-prometheus-sta-admission" ClusterRoleBinding
client.go:128: [debug] creating 1 resource(s)
client.go:299: [debug] Starting delete for "stable-kube-prometheus-sta-admission" Role
client.go:328: [debug] roles.rbac.authorization.k8s.io "stable-kube-prometheus-sta-admission" not found
client.go:128: [debug] creating 1 resource(s)
client.go:299: [debug] Starting delete for "stable-kube-prometheus-sta-admission" RoleBinding
client.go:328: [debug] rolebindings.rbac.authorization.k8s.io "stable-kube-prometheus-sta-admission" not found
client.go:128: [debug] creating 1 resource(s)
client.go:299: [debug] Starting delete for "stable-kube-prometheus-sta-admission-create" Job
client.go:328: [debug] jobs.batch "stable-kube-prometheus-sta-admission-create" not found
client.go:128: [debug] creating 1 resource(s)
client.go:528: [debug] Watching for changes to Job stable-kube-prometheus-sta-admission-create with timeout of 5m0s
client.go:556: [debug] Add/Modify event for stable-kube-prometheus-sta-admission-create: ADDED
client.go:595: [debug] stable-kube-prometheus-sta-admission-create: Jobs active: 1, jobs failed: 0, jobs succeeded: 0
Error: INSTALLATION FAILED: failed pre-install: timed out waiting for the condition
helm.go:88: [debug] failed pre-install: timed out waiting for the condition
我修好了。需要使用不是最新版本。只需在您的图片中包含不是最新的标签即可。我使用版本 18
helm install monitoring prometheus-community/kube-prometheus-stack \
--version 18.0.8 \
--namespace monitoring \
--create-namespace
删除“卡住”的 kube-prometheus-s-admission-create 作业和 kube-prometheus-s-admission-patch 作业,可能是就绪探测失败了。删除它们后,过程继续成功。
从另一个会话中删除作业,它将进一步移动