-
Notifications
You must be signed in to change notification settings - Fork 7.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
while installing kube-prometheus-stack helmchart on k8s, for loop in the RESTMappings method seems to run indefinitely #12957
Comments
From what we gather it seems to happen when only there is a helm chart using Kubernetes CRDs which are not installed. It keeps looping without any error being returned |
can you please repeat with |
@gjenkins8 To explain a bit more, we have a client app called helmet to wrap helm calls over http. This allows use to do helm installation on Kubernetes cluster through our app using that client. Right now, the problem occurs if we have an empty kubernetes cluster (like a docker one locally) without anything. When we try to install either
We did a debugging session in visual studio and it is looping almost infinitely when the custom CRDs are not installed. There is the code sample. It is hanging in the Run command.
There are the http call values received. We are using for either chart the default value file that is provided. I tried to have the debug flag enabled but it didn't added anything. |
I'm unable to replicate. Have a look at: https://gist.github.com/gjenkins8/385b36144ad1f1facbf1aa74c53e242b#file-issue12957-go-L126-L133 This gist contains a simple SDK usage example that installs the Also note: I based this test driver on this PR to document example SDK usage (need to get this merged into the docs): https://github.com/helm/helm-www/pull/1543/files |
I am using Helm APIs to install helm charts on the Kubernetes cluster. while installing kube-Prometheus-stack, I found out that the RESTMappings method ran indefinitely even though there were a fixed amount of array elements inside it.
RESTMapper Source Code :- https://github.com/kubernetes/apimachinery/blob/e696ec55a32e2177cd5f2fe1ded91d9485aa5c64/pkg/api/meta/multirestmapper.go#L191
Note:- the issue only occurs when we don't have the required credentials(secrets)[I doubt it is due to missing kube-Prometheus-admission credentials ] available on the cluster and installing the kube-Prometheus-stack chart for the first time.
If we have the credentials(secrets) the RESTMappings method does not run indefinitely & installation works without any error.
Output of
helm version
:Could not see any logs in helm, as the loop runs indefinitely
Cloud Provider/Platform (AKS, GKE, Minikube etc.):
Local Kubernetes cluster running
Some Related thread for this error
prometheus-community/helm-charts#3187
prometheus-community/helm-charts#3370
https://stackoverflow.com/questions/75890673/helm-kube-prometheus-stack-stuck-in-pending-install
The text was updated successfully, but these errors were encountered: