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
prometheus-kube-stack #590
Comments
While performing the command - $ helm install prometheus prometheus-community/kube-prometheus-stack
Error: unable to build kubernetes objects from release manifest: error validating "": error validating data: [ValidationError(Alertmanager.spec): unknown field "alertmanagerConfigNamespaceSelector" in com.coreos.monitoring.v1.Alertmanager.spec, ValidationError(Alertmanager.spec): unknown field "alertmanagerConfigSelector" in com.coreos.monitoring.v1.Alertmanager.spec]
|
I'm seeing this same error.
|
I ran into a similar issue when upgrading a cluster. At least for me, I had old CRDs. Helm doesn't uninstall nor update CRDs. If you had a deployment previously and tore it down, it's possible you've got some outdated ones sitting around. For me, I had to download the current CRDs and manually install them with |
@PSjoe Do you know which CRDs you had to remove? |
This worked for me. |
I didn't remove any CRDs, as I had an existing installation. It seems that if you delete a CRD and there are bits that depend on it, those bits get deleted. (I could be wrong. I wasn't specifically testing for that. I just sort of noticed.) So I just installed them, which seems to have been enough to update them in place. |
Hello, listening to the comments above, I went in and removed every bit of the previous installation. When I try again, I get this error.
The error has changed, but it still references the alert manager in someway. Thoughts? |
The README.md says to upgrade 2 CRDs: monitoring.coreos.com_alertmanagerconfigs.yaml and monitoring.coreos.com_prometheuses.yaml (https://github.com/prometheus-community/helm-charts/blob/main/charts/kube-prometheus-stack/README.md) I had to also upgrade monitoring.coreos.com_alertmanagers.yaml to make it work. |
Hi, I've run into that problem as well. However, if you update/upgrade version by version you can manage that issue smoothly. 3rd: 4th:
PS: I am re-using the existed values file used to deploy the previous version of Prometheus is not mandatory. I hope this helps you guys. |
the following commands helped me to upgrade release (in addition to https://github.com/prometheus-community/helm-charts/blame/61e7d540b686fa0df428933a42136f7084223ee2/charts/kube-prometheus-stack/README.md#L91-L92 ):
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Any further update will cause the issue/pull request to no longer be considered stale. Thank you for your contributions. |
This issue is being automatically closed due to inactivity. |
$ helm install loki ./ Hi all. i hit same issue. any update? |
same here |
Version of Helm and Kubernetes:
Helm Version:
Kubernetes Version:
Which chart: helm-charts/charts/kube-prometheus-stack/
Which version of the chart: kube-prometheus-stack-13.0.0
What happened: error on install
What you expected to happen: no errors
How to reproduce it (as minimally and precisely as possible): helm install prometheus-operator prometheus-community/kube-prometheus-stack --namespace prometheus-operator --dry-run
Error: unable to build kubernetes objects from release manifest: error validating "": error validating data: [ValidationError(Alertmanager.spec): unknown field "alertmanagerConfigNamespaceSelector" in com.coreos.monitoring.v1.Alertmanager.spec, ValidationError(Alertmanager.spec): unknown field "alertmanagerConfigSelector" in com.coreos.monitoring.v1.Alertmanager.spec]
This is on a managed kubernetes provided by digitalocean.
The text was updated successfully, but these errors were encountered: