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
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.