helm-charts icon indicating copy to clipboard operation
helm-charts copied to clipboard

[kube-prometheus-stack] Prometheus Operator pod cannot come up when admission hook is disabled

Open AndrewSav opened this issue 2 years ago • 19 comments

Describe the bug a clear and concise description of what the bug is.

Since https://github.com/prometheus-community/helm-charts/issues/1438 was close by the bot, re-opening it here, please let me know what I need to do to avoid closing it in future. Please refer to prior discussion to https://github.com/prometheus-community/helm-charts/issues/1438 Prometheus Operator pod cannot come up with a missing admission hook secret error if admission hook is disabled.

What's your helm version?

v3.7.0

What's your kubectl version?

v1.22.2

Which chart?

kube-prometheus-stack

What's the chart version?

19.0.2

What happened?

The operator pod cannot come up, with the following error message: MountVolume.SetUp failed for volume "tls-secret" : secret "prometheus-kube-prometheus-admission" not found. This message is displayed because admission hook is disabled and the secret is not present.

What you expected to happen?

I expect the operator to come up.

How to reproduce it?

Install the chart with the values below

Enter the changed values of values.yaml?

prometheusOperator:
  admissionWebhooks:
    enabled: false

Enter the command that you execute and failing/misfunctioning.

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

Anything else we need to know?

No response

AndrewSav avatar Nov 27 '22 20:11 AndrewSav

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.

stale[bot] avatar Dec 31 '22 22:12 stale[bot]

I believe this is still happening

AndrewSav avatar Jan 01 '23 02:01 AndrewSav

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.

stale[bot] avatar Feb 02 '23 02:02 stale[bot]

recent activity

AndrewSav avatar Feb 02 '23 03:02 AndrewSav

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.

stale[bot] avatar Mar 18 '23 04:03 stale[bot]

recent activity

AndrewSav avatar Mar 18 '23 08:03 AndrewSav

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.

stale[bot] avatar Apr 26 '23 06:04 stale[bot]

recent activity

AndrewSav avatar Apr 26 '23 08:04 AndrewSav

I'm not sure what I need to do to provide "further activity" so that the bot removes the stale label

AndrewSav avatar Apr 26 '23 18:04 AndrewSav

Is anyone still working on this? Can we get a review on the PR? I would like to avoid managing the secret manually for each cluster we have. @andrewgkew @gianrubio @gkarthiks @scottrigby @Xtigyro

nicl-dev avatar May 04 '23 18:05 nicl-dev

Need solution too(

Vsevosemnog avatar May 16 '23 08:05 Vsevosemnog

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.

stale[bot] avatar Jun 17 '23 20:06 stale[bot]

This is a message to indicate that people are still interested in this issue and generate "recent activity"

AndrewSav avatar Jun 18 '23 00:06 AndrewSav

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.

stale[bot] avatar Aug 07 '23 05:08 stale[bot]

This is a message to indicate that people are still interested in this issue and generate "recent activity".

nicl-dev avatar Aug 07 '23 07:08 nicl-dev

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.

stale[bot] avatar Sep 17 '23 06:09 stale[bot]

Not stale.

nicl-dev avatar Sep 17 '23 06:09 nicl-dev

So sometimes the bot remove the label straight away, and sometimes it does not. I suspect that a) there is some message length requirement to trigger the bot, and b) message uniqueness may be?

AndrewSav avatar Sep 17 '23 09:09 AndrewSav

I'm seeing this too and operator is unable to come up.

tsloughter avatar Jul 11 '24 19:07 tsloughter

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.

stale[bot] avatar Apr 26 '25 00:04 stale[bot]

Still relevant.

nicl-dev avatar Apr 26 '25 11:04 nicl-dev

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.

stale[bot] avatar Jun 26 '25 23:06 stale[bot]

I have the same behaviour

InCogNiTo124 avatar Jul 13 '25 12:07 InCogNiTo124

This issue is being automatically closed due to inactivity.

stale[bot] avatar Jul 29 '25 02:07 stale[bot]