[stable/prometheus-operator] Add option configSecret for prometheus-operator (#19159)

* Add option configSecret for prometheus-operator

Signed-off-by: Igor Churmeev <ingvarch@gmail.com>

* Bump version

Signed-off-by: Igor Churmeev <ingvarch@gmail.com>

* Added variabled in README.md

Signed-off-by: Igor Churmeev <ingvarch@gmail.com>

* Commented configSecret options and bump versin

Signed-off-by: Igor Churmeev <ingvarch@gmail.com>
This commit is contained in:
Igor Churmeev
2019-11-30 07:17:02 -08:00
committed by Kubernetes Prow Robot
parent c0bfd1cb72
commit ef7618975b
5 changed files with 16 additions and 1 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ sources:
- https://github.com/coreos/kube-prometheus
- https://github.com/coreos/prometheus-operator
- https://coreos.com/operators/prometheus
version: 8.2.4
version: 8.3.0
appVersion: 0.34.0
tillerVersion: ">=2.12.0"
home: https://github.com/coreos/prometheus-operator
+1
View File
@@ -341,6 +341,7 @@ The following tables list the configurable parameters of the prometheus-operator
| `alertmanager.alertmanagerSpec.additionalPeers` | AdditionalPeers allows injecting a set of additional Alertmanagers to peer with to form a highly available cluster. | `[]` |
| `alertmanager.alertmanagerSpec.affinity` | Assign custom affinity rules to the alertmanager instance https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ | `{}` |
| `alertmanager.alertmanagerSpec.configMaps` | ConfigMaps is a list of ConfigMaps in the same namespace as the Alertmanager object, which shall be mounted into the Alertmanager Pods. The ConfigMaps are mounted into /etc/alertmanager/configmaps/ | `[]` |
| `alertmanager.alertmanagerSpec.`configSecret | ConfigSecret is the name of a Kubernetes Secret in the same namespace as the Alertmanager object, which contains configuration for this Alertmanager instance. Defaults to 'alertmanager-' The secret is mounted into /etc/alertmanager/config. | `""` |
| `alertmanager.alertmanagerSpec.containers` | Containers allows injecting additional containers. This is meant to allow adding an authentication proxy to an Alertmanager pod. | `[]` |
| `alertmanager.alertmanagerSpec.externalUrl` | The external URL the Alertmanager instances will be available under. This is necessary to generate correct URLs. This is necessary if Alertmanager is not served from root of a DNS name. | `""` |
| `alertmanager.alertmanagerSpec.image.repository` | Base image that is used to deploy pods, without tag. | `quay.io/prometheus/alertmanager` |
@@ -598,6 +598,12 @@ spec:
baseImage:
description: Base image that is used to deploy pods, without tag.
type: string
configSecret:
description: ConfigSecret is the name of a Kubernetes Secret in the same
namespace as the Alertmanager object, which contains configuration for
this Alertmanager instance. Defaults to 'alertmanager-' The secret is
mounted into /etc/alertmanager/config.
type: string
configMaps:
description: ConfigMaps is a list of ConfigMaps in the same namespace
as the Alertmanager object, which shall be mounted into the Alertmanager
@@ -34,6 +34,9 @@ spec:
secrets:
{{ toYaml .Values.alertmanager.alertmanagerSpec.secrets | indent 4 }}
{{- end }}
{{- if .Values.alertmanager.alertmanagerSpec.configSecret }}
configSecret: {{ .Values.alertmanager.alertmanagerSpec.configSecret }}
{{- end }}
{{- if .Values.alertmanager.alertmanagerSpec.configMaps }}
configMaps:
{{ toYaml .Values.alertmanager.alertmanagerSpec.configMaps | indent 4 }}
+5
View File
@@ -254,6 +254,11 @@ alertmanager:
##
configMaps: []
## ConfigSecret is the name of a Kubernetes Secret in the same namespace as the Alertmanager object, which contains configuration for
## this Alertmanager instance. Defaults to 'alertmanager-' The secret is mounted into /etc/alertmanager/config.
##
# configSecret:
## Define Log Format
# Use logfmt (default) or json-formatted logging
logFormat: logfmt