diff --git a/charts/alertmanager/Chart.yaml b/charts/alertmanager/Chart.yaml index 28c7fa6ac49f..28a818eb4a8c 100644 --- a/charts/alertmanager/Chart.yaml +++ b/charts/alertmanager/Chart.yaml @@ -6,7 +6,7 @@ icon: https://raw.githubusercontent.com/prometheus/prometheus.github.io/master/a sources: - https://github.com/prometheus/alertmanager type: application -version: 1.10.0 +version: 1.11.0 appVersion: v0.27.0 kubeVersion: ">=1.19.0-0" keywords: diff --git a/charts/alertmanager/templates/statefulset.yaml b/charts/alertmanager/templates/statefulset.yaml index 807fd683988e..2bdafc86db2a 100644 --- a/charts/alertmanager/templates/statefulset.yaml +++ b/charts/alertmanager/templates/statefulset.yaml @@ -171,6 +171,9 @@ spec: {{- range $key, $value := .Values.extraArgs }} - --{{ $key }}={{ $value }} {{- end }} + {{- if .Values.baseURL }} + - --web.external-url={{ .Values.baseURL }} + {{- end }} ports: - name: http containerPort: 9093 diff --git a/charts/alertmanager/values.schema.json b/charts/alertmanager/values.schema.json index 172dbcf3e67b..48c6e9a63174 100644 --- a/charts/alertmanager/values.schema.json +++ b/charts/alertmanager/values.schema.json @@ -237,6 +237,14 @@ "description": "Container image parameters.", "$ref": "#/definitions/image" }, + "baseURL": { + "description": "External URL where alertmanager is reachable.", + "type": "string", + "default": "", + "examples": [ + "https://alertmanager.example.com" + ] + }, "extraArgs": { "description": "Additional alertmanager container arguments. Use args without '--', only 'key: value' syntax.", "type": "object", diff --git a/charts/alertmanager/values.yaml b/charts/alertmanager/values.yaml index 3bf947a32b5d..f8a9d243b394 100644 --- a/charts/alertmanager/values.yaml +++ b/charts/alertmanager/values.yaml @@ -15,6 +15,9 @@ image: # Overrides the image tag whose default is the chart appVersion. tag: "" +# Full external URL where alertmanager is reachable, used for backlinks. +baseURL: "" + extraArgs: {} ## Additional Alertmanager Secret mounts