Helm Chart install error: failed pre-install: timed out waiting for the condition

Viewed 5699

I'm trying to install the kube-prometheus-stack chart by running:

helm install prometheus prometheus-community/kube-prometheus-stack  -f ./prometheus-operator-values.yaml

But I get the error:

manifest_sorter.go:192: info: skipping unknown hook: "crd-install"
manifest_sorter.go:192: info: skipping unknown hook: "crd-install"
manifest_sorter.go:192: info: skipping unknown hook: "crd-install"
manifest_sorter.go:192: info: skipping unknown hook: "crd-install"
manifest_sorter.go:192: info: skipping unknown hook: "crd-install"
manifest_sorter.go:192: info: skipping unknown hook: "crd-install"
manifest_sorter.go:192: info: skipping unknown hook: "crd-install"
Error: failed pre-install: timed out waiting for the condition

The chart requires Kubernetes 1.16+, I'm on a lokal Minikube cluster, when I check the version with kubectl version, I get:

Client Version: version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.3", GitCommit:"ca643a4d1f7bfe34773c74f79527be4afd95bf39", GitTreeState:"clean", BuildDate:"2021-07-15T21:04:39Z", GoVersion:"go1.16.6", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.2", GitCommit:"f5743093fd1c663cb0cbc89748f730662345d44d", GitTreeState:"clean", BuildDate:"2020-09-16T13:32:58Z", GoVersion:"go1.15", Compiler:"gc", Platform:"linux/amd64"}
WARNING: version difference between client (1.21) and server (1.19) exceeds the supported minor version skew of +/-1

So my version should meet the requirements, right?

If so, what other reasons could this error have?

2 Answers

It's a known issue in GitHub, please refer to the existing bug and place a comment there in order to solve this problem.

it is kinda weird but I use 15.0.0 version and start to work. downgrade version. I was trying to download versions 27, 28 and finally end up with 15. and its start to run. I used the same repo.

Related