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
I've been trying to change my port to 9091 since 9090 is used but i get container with 2 ports:
what i did:
add to values:
containers:
- name: prometheus
ports:
- name: http-web
containerPort: 9091
protocol: TCP
or update the helm chart: --set prometheus.service.port=9091
--set prometheus.prometheusSpec.containers[0].name=prometheus
--set prometheus.prometheusSpec.containers[0].ports[0].containerPort=9091
--set prometheus.prometheusSpec.containers[0].ports[0].name=http-web
--set prometheus.prometheusSpec.containers[0].ports[0].protocol=TCP
Still same. Can you please give me a tip to change it?
The text was updated successfully, but these errors were encountered:
zeritti
changed the title
How to change Prometheus default port (9090) when installing chart Kube Prometheus stack
[kube-prometheus-stack] How to change Prometheus default port (9090)
Feb 9, 2025
I doubt changing the port is currently possible and I am sure Prometheus operator sets and expects exactly that number. Other than that, a strategic merge patch, supported by the operator, follows the field's patch strategy:
With a strategic merge patch, a list is either replaced or merged depending on its patch strategy. The patch strategy is specified by the value of the patchStrategy key in a field tag in the Kubernetes source code.
ContainerPort has the patch strategymerge on patch merge key containerPort. This is why you see another element in the list.
Hello,
I've been trying to change my port to 9091 since 9090 is used but i get container with 2 ports:
what i did:
add to values:
containers:
- name: prometheus
ports:
- name: http-web
containerPort: 9091
protocol: TCP
or update the helm chart: --set prometheus.service.port=9091
--set prometheus.prometheusSpec.containers[0].name=prometheus
--set prometheus.prometheusSpec.containers[0].ports[0].containerPort=9091
--set prometheus.prometheusSpec.containers[0].ports[0].name=http-web
--set prometheus.prometheusSpec.containers[0].ports[0].protocol=TCP
Still same. Can you please give me a tip to change it?
The text was updated successfully, but these errors were encountered: