You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 22, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on Feb 22, 2022. It is now read-only.
[stable/prometheus-operator] Chart not working with helm 2.12.0 #9941
What you expected to happen:
Prometheus-operator chart to be installed.
How to reproduce it (as minimally and precisely as possible):
Have helm at 2.11.0 installed on the cluster and try to install the prometheus-operator chart. Observe that installation works.
Delete prometheus-operator chart. Delete all CRDs. Upgrade helm to 2.12.0 installed on the cluster and try to install the prometheus-operator chart. Observe that installation fails.
Anything else we need to know:
Basically, the chart works fine with helm 2.11.0 but is broken in 2.12.0
Reacted by Ólafur Haukur Flygenring, Tim Hobbs, Doogie Min, Rafael Bodill, Alex Prokofiev and Charly
The crd-install hook has been an awful experience in my experience. To run this in production across multiple clusters we have a separate chart to provision CRDs and then another step to validate that they have been created because of : #9241, helm/helm#4925
Would it be worth simply removing the crd-install hooks as the default option and asking folks to provision these by hand?
While this issue is still in limbo - I discovered the following (horribad) workaround that might be of use to someone:
Try installing the operator as normal: helm install stable/prometheus-operator --name monitoring
When this fails with the error mentioned above, go into your values.yaml and set prometheusOperator.createCustomResource to false
Uninstall the operator helm delete --purge monitoring
(Optional) Verify that the CRD’s are still there: kubectl get crd
With prometheusOperator.createCustomResource still set to false - try re-installing the operator: helm install stable/stable/prometheus-operator --name monitoring
Reacted by Gissur, iChamp, Pavel Dmytrenko, issac-lim, Granville Schmidt, Paul, Christian Foisy, Eric Alford, Owen Corcoran, Alexander Dobriakov and 4 more
When trying the workaround described by vsliouniaev above I got another error. I followed the steps and create the CRDs first. But when running the following:
$ helm install -n prometheus-operator --namespace monitoring -f values.yml stable/prometheus-operator --set prometheusOperator.createCustomResource=false
Error: release prometheus-operator failed: clusterroles.rbac.authorization.k8s.io "psp-prometheus-operator-prometheus-node-exporter" is forbidden: attempt to grant extra privileges: [{[use] [extensions] [podsecuritypolicies] [prometheus-operator-prometheus-node-exporter] []}] user=&{system:serviceaccount:kube-system:tiller aa0fd7ff-996b-11e8-adca-0a9e2bcf0986 [system:serviceaccounts system:serviceaccounts:kube-system system:authenticated] map[]} ownerrules=[] ruleResolutionErrors=[]
As you guys can see, I disabled rbac for the node-exporter but it still fails. So can anybody please explain to me what the issue is? Am I missing something?
EDIT: Layer 8 issue, I got the name of the prometheus-node-exporter chart wrong. Sorry guys. Was able to deploy it :)
Alors que ce problème est toujours dans les limbes - j'ai découvert la solution de contournement suivante (horribad) qui pourrait être utile à quelqu'un:
Lorsque cela échoue avec l'erreur mentionnée ci-dessus, accédez à votre fichier values.yaml et définissez-le prometheusOperator.createCustomResourcesurfalse
(Facultatif) Vérifiez que les CRD sont toujours présents: kubectl get crd
Avec prometheusOperator.createCustomResourcetoujours défini sur false- essayez de réinstaller l'opérateur: helm install stable/stable/prometheus-operator --name monitoring
When trying the workaround described by vsliouniaev above I got another error. I followed the steps and create the CRDs first. But when running the following:
$ helm install -n prometheus-operator --namespace monitoring -f values.yml stable/prometheus-operator --set prometheusOperator.createCustomResource=false
Error: release prometheus-operator failed: clusterroles.rbac.authorization.k8s.io "psp-prometheus-operator-prometheus-node-exporter" is forbidden: attempt to grant extra privileges: [{[use] [extensions] [podsecuritypolicies] [prometheus-operator-prometheus-node-exporter] []}] user=&{system:serviceaccount:kube-system:tiller aa0fd7ff-996b-11e8-adca-0a9e2bcf0986 [system:serviceaccounts system:serviceaccounts:kube-system system:authenticated] map[]} ownerrules=[] ruleResolutionErrors=[]
As you guys can see, I disabled rbac for the node-exporter but it still fails. So can anybody please explain to me what the issue is? Am I missing something?
EDIT: Layer 8 issue, I got the name of the prometheus-node-exporter chart wrong. Sorry guys. Was able to deploy it :)
Could you please give more details? I got the same error on the node exporter. Thanks in advance
EDIT: I found what you mean, I include this config:
Activity
rafi commentedon Dec 13, 2018
Using
--forceon the second run works for me:philoserf commentedon Dec 13, 2018
I have seen the problem. Works in 2.11.0. I have not yet identified change that broke the CRD install.
paskal commentedon Dec 13, 2018
Only PR with CRD mentioned in releases is helm/helm#4709.
philoserf commentedon Dec 13, 2018
Seeing reports on Stackoverflow too.
https://stackoverflow.com/questions/53694728/prometheus-operator-alertmanagers-monitoring-coreos-com-already-exists
I have only seen reports for this operator so far. I will try another chart that installs a CRD to rule out the chart as the source of the problem.
philoserf commentedon Dec 13, 2018
I see it is already confirmed with cert-manager at #9166
I will open an issue with helm/helm unless I find one there already.
vsliouniaev commentedon Dec 14, 2018
The crd-install hook has been an awful experience in my experience. To run this in production across multiple clusters we have a separate chart to provision CRDs and then another step to validate that they have been created because of : #9241, helm/helm#4925
Would it be worth simply removing the
crd-installhooks as the default option and asking folks to provision these by hand?gzur commentedon Dec 17, 2018
While this issue is still in limbo - I discovered the following (horribad) workaround that might be of use to someone:
Try installing the operator as normal:
helm install stable/prometheus-operator --name monitoringWhen this fails with the error mentioned above, go into your values.yaml and set
prometheusOperator.createCustomResourcetofalseUninstall the operator
helm delete --purge monitoring(Optional) Verify that the CRD’s are still there:
kubectl get crdWith
prometheusOperator.createCustomResourcestill set tofalse- try re-installing the operator:helm install stable/stable/prometheus-operator --name monitoringHopefully PROFIT $$$
vsliouniaev commentedon Dec 17, 2018
@gzur you are correct. The idea is that you deploy the 4 CRDs first, then the rest of the chart.
gzur commentedon Dec 17, 2018
@vsliouniaev but set
prometheusOperator.createCustomResourceis set tofalsefirst - right?gzur commentedon Dec 17, 2018
Yeah, the
--no-crd-hookflag works for me as well onv2.12.0- which lends further credence to the idea that this was introduced by helm/helm#4709philoserf commentedon Dec 17, 2018
The helm revert pull request is in flight.
helm/helm#5067
paskal commentedon Jan 14, 2019
v2.12.1 is released, could someone confirm it works now? @viggeh?
viggeh commentedon Jan 14, 2019
Can confirm that this is fixed in v2.12.1.
RickS-C137 commentedon Jan 17, 2019
I'm running on v2.12.2 and still got the problem. So is this a regression?
mazzy89 commentedon Jan 17, 2019
In my case you need to run the command twice. at the first time fails because the CRDs are not there. at the second time succeed
RickS-C137 commentedon Jan 17, 2019
I also can not confirm that. I've run it several times, the result is everytime the same. Trying the above mentioned workaround now
tim-beatson commentedon Jan 23, 2019
I too, on helm v2.12.2 am seeing this issue and running the command twice does not succeed.
vsliouniaev commentedon Jan 23, 2019
This issue appears to be the culprit:
helm/helm#5112
tim-beatson commentedon Jan 23, 2019
@vsliouniaev, then I guess all we can do is wait for helm 2.12.3?
afirth commentedon Jan 26, 2019
2.13 according to the milestone :(
tim-beatson commentedon Jan 28, 2019
@afirth, I've just upgraded to 2.12.3 and CRDs are being handled correctly again
RickS-C137 commentedon Jan 28, 2019
I can't confirm that for my env. Just upgraded to 2.12.3 and nothing changed 😕
RickS-C137 commentedon Jan 28, 2019
When trying the workaround described by vsliouniaev above I got another error. I followed the steps and create the CRDs first. But when running the following:
Here's my values.yml:
As you guys can see, I disabled rbac for the node-exporter but it still fails. So can anybody please explain to me what the issue is? Am I missing something?
EDIT: Layer 8 issue, I got the name of the prometheus-node-exporter chart wrong. Sorry guys. Was able to deploy it :)
badarou commentedon Feb 22, 2019
I have a problem is quite different.
When I execute the command
kubectl port-forward -n monitoring prometheus-prometheus-operator-prometheus-0 9090 on my cluster Kubernetes (AKS) it gives me this result
Forwarding from 127.0.0.1.19090 -> 9090
Forwarding from [:: 1]: 9090 -> 9090
and when I put the URL http://127.0.0.1:9090/targets on my browser, I have no result.
$ kubectl get pods -n monitoring
NAME READY STATUS RESTARTS AGE
alertmanager-prometheus-operator-alertmanager-0 2/2 Running 0 11h
prometheus-operator-grafana-8549568bc7-zntgz 2/2 Running 0 11h
prometheus-operator-kube-state-metrics-5fc876d8f6-v5zh7 1/1 Running 0 11h
prometheus-operator-operator-75d88ccc6-t4lt5 1/1 Running 0 11h
prometheus-operator-prometheus-node-export-zqk7t 1/1 Running 0 11h
prometheus-prometheus-operator-prometheus-0 3/3 Running 1 11h
What should be done ? or how to forwarding prometheus from my public cloud to my local machine.
Thank you
diegomanso commentedon Jun 10, 2019
Could you please give more details? I got the same error on the node exporter. Thanks in advance
EDIT: I found what you mean, I include this config: