-
Notifications
You must be signed in to change notification settings - Fork 5k
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
[kube-prometheus-stack] Add prometheus.thanosService.omitClusterIP #864
[kube-prometheus-stack] Add prometheus.thanosService.omitClusterIP #864
Conversation
4d9ff1e
to
839d63f
Compare
rebased. need anything else from me here? this is pretty much a blocker for us |
Signed-off-by: Eric Bailey <eric@ericb.me>
839d63f
to
411ee39
Compare
rebased again. |
@@ -1597,6 +1597,7 @@ prometheus: | |||
portName: grpc | |||
port: 10901 | |||
targetPort: "grpc" | |||
omitClusterIP: false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this needed?
Imho you could just set clusterIP: ""
to get rid of the error.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll try that and report back.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same result.
UPGRADE FAILED: cannot patch "prometheus-operator-thanos-discovery" with kind Service: Service "prometheus-operator-thanos-discovery" is invalid: spec.clusterIP: Invalid value: "": field is immutable
@@ -16,7 +16,9 @@ metadata: | |||
{{- end }} | |||
spec: | |||
type: {{ .Values.prometheus.thanosService.type }} | |||
{{- if not .Values.prometheus.thanosService.omitClusterIP }} | |||
clusterIP: {{ .Values.prometheus.thanosService.clusterIP }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discussed in the linked tickets (see links in #863) regarding the nginx chart, the ideal solution here would be something like this, but if we want to maintain backward compatibility, we'll probably need something like omitClusterIP
.
clusterIP: {{ .Values.prometheus.thanosService.clusterIP }} | |
{{- with .Values.prometheus.thanosService.clusterIP }} | |
clusterIP: {{ . }} | |
{{- end }} |
Superseded by #916 |
What this PR does / why we need it:
Support omission of the Thanos service
clusterIP
.Which issue this PR fixes
Special notes for your reviewer:
Similar to helm/charts#13646
Checklist
[prometheus-couchdb-exporter]
)