Where do I edit the helm chart if I want to change the port used by alertmanager-operated service in kubernetes?

11/30/2021

I am installing the below helm package on my K8s cluster

https://github.com/prometheus-community/helm-charts/releases/tag/kube-prometheus-stack-21.0.0

I've got it locally and when I deploy it creates everything including a service called alertmanager-operated. Its listening on TCP port 9093 and I need to change this. I dont see where this can be configured in the values.yaml or anywhere else in the package

-- DeirdreRodgers
kubernetes
kubernetes-helm
prometheus

1 Answer

11/30/2021

It's here. Your values.yaml can have:

...
alertmanager:
  service:
    port: <your port #>

Follow-up on your comment ... cant tell how the alertmanager-operated service gets created and how to configure it

Here's a good source for quick understanding of various k8s services. For greater configure details checkout the official documentation. Set the values according to your need and k8s will create the service for you when you apply the chart.

-- gohm&#39;c
Source: StackOverflow