mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[stable/prometheus-operator] namespace override (#22288)
* [stable/prometheus-operator] namespace override Signed-off-by: yoninl2 <yong.jiang1@hp.com> * bump chart version Signed-off-by: Jeremy <yong.jiang1@hp.com> * revert changes in hack folder Signed-off-by: Jeremy <yong.jiang1@hp.com>
This commit is contained in:
@@ -12,7 +12,7 @@ sources:
|
||||
- https://github.com/coreos/kube-prometheus
|
||||
- https://github.com/coreos/prometheus-operator
|
||||
- https://coreos.com/operators/prometheus
|
||||
version: 8.15.0
|
||||
version: 8.15.1
|
||||
appVersion: 0.38.1
|
||||
tillerVersion: ">=2.12.0"
|
||||
home: https://github.com/coreos/prometheus-operator
|
||||
|
||||
@@ -174,6 +174,7 @@ The following tables list the configurable parameters of the prometheus-operator
|
||||
| `global.rbac.pspAnnotations` | Add annotations to the PSP configurations | `{}` |
|
||||
| `kubeTargetVersionOverride` | Provide a target gitVersion of K8S, in case .Capabilites.KubeVersion is not available (e.g. `helm template`) |`""`|
|
||||
| `nameOverride` | Provide a name in place of `prometheus-operator` |`""`|
|
||||
| `namespaceOverride` | Override the deployment namespace | `""` (`Release.Namespace`) |
|
||||
| `kubeTargetVersionOverride` | Provide a k8s version |`""`|
|
||||
|
||||
### Prometheus Operator
|
||||
@@ -456,6 +457,7 @@ For a full list of configurable values please refer to the [Grafana chart](https
|
||||
| `grafana.ingress.hosts` | Ingress accepted hostnames for Grafana| `[]` |
|
||||
| `grafana.ingress.labels` | Custom labels for Grafana Ingress | `{}` |
|
||||
| `grafana.ingress.tls` | Ingress TLS configuration for Grafana | `[]` |
|
||||
| `grafana.namespaceOverride` | Override the deployment namespace of grafana | `""` (`Release.Namespace`) |
|
||||
| `grafana.rbac.pspUseAppArmor` | Enforce AppArmor in created PodSecurityPolicy (requires rbac.pspEnabled) | `true` |
|
||||
| `grafana.service.portName` | Allow to customize Grafana service portname. Will be used by servicemonitor as well | `service` |
|
||||
| `grafana.serviceMonitor.metricRelabelings` | The `metric_relabel_configs` for scraping the grafana instance. | `` |
|
||||
@@ -479,6 +481,7 @@ For a full list of configurable values please refer to the [Grafana chart](https
|
||||
| `coreDns.serviceMonitor.interval` | Scrape interval. If not set, the Prometheus default scrape interval is used | `nil` |
|
||||
| `coreDns.serviceMonitor.metricRelabelings` | The `metric_relabel_configs` for scraping CoreDns. | `` |
|
||||
| `coreDns.serviceMonitor.relabelings` | The `relabel_configs` for scraping CoreDNS. | `` |
|
||||
| `kube-state-metrics.namespaceOverride` | Override the deployment namespace of kube-state-metrics | `""` (`Release.Namespace`) |
|
||||
| `kube-state-metrics.podSecurityPolicy.enabled` | Create pod security policy resource for kube-state-metrics. | `true` |
|
||||
| `kube-state-metrics.rbac.create` | Create RBAC components in kube-state-metrics. See `global.rbac.create` | `true` |
|
||||
| `kubeApiServer.enabled` | Deploy `serviceMonitor` to scrape the Kubernetes API server | `true` |
|
||||
@@ -569,6 +572,7 @@ For a full list of configurable values please refer to the [Grafana chart](https
|
||||
| `nodeExporter.serviceMonitor.metricRelabelings` | Metric relablings for the `prometheus-node-exporter` ServiceMonitor | `[]` |
|
||||
| `nodeExporter.serviceMonitor.relabelings` | The `relabel_configs` for scraping the `prometheus-node-exporter`. | `` |
|
||||
| `prometheus-node-exporter.extraArgs` | Additional arguments for the node exporter container | `["--collector.filesystem.ignored-mount-points=^/(dev|proc|sys|var/lib/docker/.+)($|/)", "--collector.filesystem.ignored-fs-types=^(autofs|binfmt_misc|cgroup|configfs|debugfs|devpts|devtmpfs|fusectl|hugetlbfs|mqueue|overlay|proc|procfs|pstore|rpc_pipefs|securityfs|sysfs|tracefs)$"]` |
|
||||
| `prometheus-node-exporter.namespaceOverride` | Override the deployment namespace of node exporter | `""` (`Release.Namespace`) |
|
||||
| `prometheus-node-exporter.podLabels` | Additional labels for pods in the DaemonSet | `{"jobLabel":"node-exporter"}` |
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
The Prometheus Operator has been installed. Check its status by running:
|
||||
kubectl --namespace {{ $.Release.Namespace }} get pods -l "release={{ $.Release.Name }}"
|
||||
kubectl --namespace {{ template "prometheus-operator.namespace" . }} get pods -l "release={{ $.Release.Name }}"
|
||||
|
||||
Visit https://github.com/coreos/prometheus-operator for instructions on how
|
||||
to create & configure Alertmanager and Prometheus instances using the Operator.
|
||||
@@ -80,3 +80,14 @@ heritage: {{ $.Release.Service | quote }}
|
||||
{{ default "default" .Values.alertmanager.serviceAccount.name }}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Allow the release namespace to be overridden for multi-namespace deployments in combined charts
|
||||
*/}}
|
||||
{{- define "prometheus-operator.namespace" -}}
|
||||
{{- if .Values.namespaceOverride -}}
|
||||
{{- .Values.namespaceOverride -}}
|
||||
{{- else -}}
|
||||
{{- .Release.Namespace -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
@@ -3,7 +3,7 @@ apiVersion: monitoring.coreos.com/v1
|
||||
kind: Alertmanager
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-alertmanager
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-alertmanager
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
@@ -20,7 +20,7 @@ spec:
|
||||
{{- else if and .Values.alertmanager.ingress.enabled .Values.alertmanager.ingress.hosts }}
|
||||
externalUrl: "http://{{ index .Values.alertmanager.ingress.hosts 0 }}{{ .Values.alertmanager.alertmanagerSpec.routePrefix }}"
|
||||
{{- else }}
|
||||
externalUrl: http://{{ template "prometheus-operator.fullname" . }}-alertmanager.{{ $.Release.Namespace }}:{{ .Values.alertmanager.service.port }}
|
||||
externalUrl: http://{{ template "prometheus-operator.fullname" . }}-alertmanager.{{ template "prometheus-operator.namespace" . }}:{{ .Values.alertmanager.service.port }}
|
||||
{{- end }}
|
||||
{{- if .Values.alertmanager.alertmanagerSpec.nodeSelector }}
|
||||
nodeSelector:
|
||||
|
||||
@@ -11,7 +11,7 @@ apiVersion: extensions/v1beta1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: {{ $serviceName }}
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
{{- if .Values.alertmanager.ingress.annotations }}
|
||||
annotations:
|
||||
{{ toYaml .Values.alertmanager.ingress.annotations | indent 4 }}
|
||||
|
||||
@@ -6,7 +6,7 @@ apiVersion: v1
|
||||
kind: List
|
||||
metadata:
|
||||
name: {{ include "prometheus-operator.fullname" $ }}-alertmanager-ingressperreplica
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
items:
|
||||
{{ range $i, $e := until $count }}
|
||||
- kind: Ingress
|
||||
@@ -17,7 +17,7 @@ items:
|
||||
{{ end -}}
|
||||
metadata:
|
||||
name: {{ include "prometheus-operator.fullname" $ }}-alertmanager-{{ $i }}
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
labels:
|
||||
app: {{ include "prometheus-operator.name" $ }}-alertmanager
|
||||
{{ include "prometheus-operator.labels" $ | indent 8 }}
|
||||
|
||||
@@ -3,7 +3,7 @@ apiVersion: policy/v1beta1
|
||||
kind: PodDisruptionBudget
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-alertmanager
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-alertmanager
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
|
||||
@@ -3,7 +3,7 @@ kind: Role
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-alertmanager
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-alertmanager
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
|
||||
@@ -3,7 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: RoleBinding
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-alertmanager
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-alertmanager
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
@@ -14,5 +14,5 @@ roleRef:
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: {{ template "prometheus-operator.alertmanager.serviceAccountName" . }}
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
{{- end }}
|
||||
|
||||
@@ -3,7 +3,7 @@ apiVersion: policy/v1beta1
|
||||
kind: PodSecurityPolicy
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-alertmanager
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-alertmanager
|
||||
{{- if .Values.global.rbac.pspAnnotations }}
|
||||
|
||||
@@ -3,7 +3,7 @@ apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: alertmanager-{{ template "prometheus-operator.fullname" . }}-alertmanager
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
{{- if .Values.alertmanager.secret.annotations }}
|
||||
annotations:
|
||||
{{ toYaml .Values.alertmanager.secret.annotations | indent 4 }}
|
||||
|
||||
@@ -3,7 +3,7 @@ apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-alertmanager
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-alertmanager
|
||||
self-monitor: {{ .Values.alertmanager.serviceMonitor.selfMonitor | quote }}
|
||||
|
||||
@@ -3,7 +3,7 @@ apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.alertmanager.serviceAccountName" . }}
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-alertmanager
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
|
||||
@@ -3,7 +3,7 @@ apiVersion: monitoring.coreos.com/v1
|
||||
kind: ServiceMonitor
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-alertmanager
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-alertmanager
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
@@ -15,7 +15,7 @@ spec:
|
||||
self-monitor: "true"
|
||||
namespaceSelector:
|
||||
matchNames:
|
||||
- {{ $.Release.Namespace | quote }}
|
||||
- {{ printf "%s" (include "prometheus-operator.namespace" .) | quote }}
|
||||
endpoints:
|
||||
- port: {{ .Values.alertmanager.alertmanagerSpec.portName }}
|
||||
{{- if .Values.alertmanager.serviceMonitor.interval }}
|
||||
|
||||
@@ -5,14 +5,14 @@ apiVersion: v1
|
||||
kind: List
|
||||
metadata:
|
||||
name: {{ include "prometheus-operator.fullname" $ }}-alertmanager-serviceperreplica
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
items:
|
||||
{{- range $i, $e := until $count }}
|
||||
- apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ include "prometheus-operator.fullname" $ }}-alertmanager-{{ $i }}
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
labels:
|
||||
app: {{ include "prometheus-operator.name" $ }}-alertmanager
|
||||
{{ include "prometheus-operator.labels" $ | indent 8 }}
|
||||
|
||||
@@ -3,7 +3,7 @@ apiVersion: monitoring.coreos.com/v1
|
||||
kind: ServiceMonitor
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-coredns
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-coredns
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
|
||||
@@ -3,7 +3,7 @@ apiVersion: monitoring.coreos.com/v1
|
||||
kind: ServiceMonitor
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-apiserver
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-apiserver
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ apiVersion: monitoring.coreos.com/v1
|
||||
kind: ServiceMonitor
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-kube-controller-manager
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-kube-controller-manager
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
|
||||
@@ -3,7 +3,7 @@ apiVersion: monitoring.coreos.com/v1
|
||||
kind: ServiceMonitor
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-kube-dns
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-kube-dns
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
|
||||
@@ -3,7 +3,7 @@ apiVersion: monitoring.coreos.com/v1
|
||||
kind: ServiceMonitor
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-kube-etcd
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-kube-etcd
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
|
||||
@@ -3,7 +3,7 @@ apiVersion: monitoring.coreos.com/v1
|
||||
kind: ServiceMonitor
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-kube-proxy
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-kube-proxy
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
|
||||
@@ -3,7 +3,7 @@ apiVersion: monitoring.coreos.com/v1
|
||||
kind: ServiceMonitor
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-kube-scheduler
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-kube-scheduler
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ apiVersion: monitoring.coreos.com/v1
|
||||
kind: ServiceMonitor
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-kube-state-metrics
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-kube-state-metrics
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
|
||||
@@ -3,7 +3,7 @@ apiVersion: monitoring.coreos.com/v1
|
||||
kind: ServiceMonitor
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-kubelet
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-kubelet
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
|
||||
@@ -3,7 +3,7 @@ apiVersion: monitoring.coreos.com/v1
|
||||
kind: ServiceMonitor
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-node-exporter
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-node-exporter
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
|
||||
@@ -10,7 +10,7 @@ items:
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: {{ printf "%s-%s" (include "prometheus-operator.fullname" $) $dashboardName | trunc 63 | trimSuffix "-" }}
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
labels:
|
||||
{{- if $.Values.grafana.sidecar.dashboards.label }}
|
||||
{{ $.Values.grafana.sidecar.dashboards.label }}: "1"
|
||||
|
||||
@@ -3,7 +3,7 @@ apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-grafana-datasource
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
{{- if .Values.grafana.sidecar.datasources.annotations }}
|
||||
annotations:
|
||||
{{ toYaml .Values.grafana.sidecar.datasources.annotations | indent 4 }}
|
||||
|
||||
@@ -8,7 +8,7 @@ https://github.com/helm/charts/tree/master/stable/prometheus-operator/hack
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
name: {{ printf "%s-%s" (include "prometheus-operator.fullname" $) "apiserver" | trunc 63 | trimSuffix "-" }}
|
||||
labels:
|
||||
{{- if $.Values.grafana.sidecar.dashboards.label }}
|
||||
|
||||
@@ -8,7 +8,7 @@ https://github.com/helm/charts/tree/master/stable/prometheus-operator/hack
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
name: {{ printf "%s-%s" (include "prometheus-operator.fullname" $) "cluster-total" | trunc 63 | trimSuffix "-" }}
|
||||
labels:
|
||||
{{- if $.Values.grafana.sidecar.dashboards.label }}
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@ https://github.com/helm/charts/tree/master/stable/prometheus-operator/hack
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
name: {{ printf "%s-%s" (include "prometheus-operator.fullname" $) "controller-manager" | trunc 63 | trimSuffix "-" }}
|
||||
labels:
|
||||
{{- if $.Values.grafana.sidecar.dashboards.label }}
|
||||
|
||||
@@ -8,7 +8,7 @@ https://github.com/helm/charts/tree/master/stable/prometheus-operator/hack
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
name: {{ printf "%s-%s" (include "prometheus-operator.fullname" $) "etcd" | trunc 63 | trimSuffix "-" }}
|
||||
labels:
|
||||
{{- if $.Values.grafana.sidecar.dashboards.label }}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
name: {{ printf "%s-%s" (include "prometheus-operator.fullname" $) "k8s-coredns" | trunc 63 | trimSuffix "-" }}
|
||||
labels:
|
||||
{{- if $.Values.grafana.sidecar.dashboards.label }}
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@ https://github.com/helm/charts/tree/master/stable/prometheus-operator/hack
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
name: {{ printf "%s-%s" (include "prometheus-operator.fullname" $) "k8s-resources-cluster" | trunc 63 | trimSuffix "-" }}
|
||||
labels:
|
||||
{{- if $.Values.grafana.sidecar.dashboards.label }}
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@ https://github.com/helm/charts/tree/master/stable/prometheus-operator/hack
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
name: {{ printf "%s-%s" (include "prometheus-operator.fullname" $) "k8s-resources-namespace" | trunc 63 | trimSuffix "-" }}
|
||||
labels:
|
||||
{{- if $.Values.grafana.sidecar.dashboards.label }}
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@ https://github.com/helm/charts/tree/master/stable/prometheus-operator/hack
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
name: {{ printf "%s-%s" (include "prometheus-operator.fullname" $) "k8s-resources-node" | trunc 63 | trimSuffix "-" }}
|
||||
labels:
|
||||
{{- if $.Values.grafana.sidecar.dashboards.label }}
|
||||
|
||||
@@ -8,7 +8,7 @@ https://github.com/helm/charts/tree/master/stable/prometheus-operator/hack
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
name: {{ printf "%s-%s" (include "prometheus-operator.fullname" $) "k8s-resources-pod" | trunc 63 | trimSuffix "-" }}
|
||||
labels:
|
||||
{{- if $.Values.grafana.sidecar.dashboards.label }}
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@ https://github.com/helm/charts/tree/master/stable/prometheus-operator/hack
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
name: {{ printf "%s-%s" (include "prometheus-operator.fullname" $) "k8s-resources-workload" | trunc 63 | trimSuffix "-" }}
|
||||
labels:
|
||||
{{- if $.Values.grafana.sidecar.dashboards.label }}
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@ https://github.com/helm/charts/tree/master/stable/prometheus-operator/hack
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
name: {{ printf "%s-%s" (include "prometheus-operator.fullname" $) "k8s-resources-workloads-namespace" | trunc 63 | trimSuffix "-" }}
|
||||
labels:
|
||||
{{- if $.Values.grafana.sidecar.dashboards.label }}
|
||||
|
||||
@@ -8,7 +8,7 @@ https://github.com/helm/charts/tree/master/stable/prometheus-operator/hack
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
name: {{ printf "%s-%s" (include "prometheus-operator.fullname" $) "kubelet" | trunc 63 | trimSuffix "-" }}
|
||||
labels:
|
||||
{{- if $.Values.grafana.sidecar.dashboards.label }}
|
||||
|
||||
@@ -8,7 +8,7 @@ https://github.com/helm/charts/tree/master/stable/prometheus-operator/hack
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
name: {{ printf "%s-%s" (include "prometheus-operator.fullname" $) "namespace-by-pod" | trunc 63 | trimSuffix "-" }}
|
||||
labels:
|
||||
{{- if $.Values.grafana.sidecar.dashboards.label }}
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@ https://github.com/helm/charts/tree/master/stable/prometheus-operator/hack
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
name: {{ printf "%s-%s" (include "prometheus-operator.fullname" $) "namespace-by-workload" | trunc 63 | trimSuffix "-" }}
|
||||
labels:
|
||||
{{- if $.Values.grafana.sidecar.dashboards.label }}
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@ https://github.com/helm/charts/tree/master/stable/prometheus-operator/hack
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
name: {{ printf "%s-%s" (include "prometheus-operator.fullname" $) "node-cluster-rsrc-use" | trunc 63 | trimSuffix "-" }}
|
||||
labels:
|
||||
{{- if $.Values.grafana.sidecar.dashboards.label }}
|
||||
|
||||
@@ -8,7 +8,7 @@ https://github.com/helm/charts/tree/master/stable/prometheus-operator/hack
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
name: {{ printf "%s-%s" (include "prometheus-operator.fullname" $) "node-rsrc-use" | trunc 63 | trimSuffix "-" }}
|
||||
labels:
|
||||
{{- if $.Values.grafana.sidecar.dashboards.label }}
|
||||
|
||||
@@ -8,7 +8,7 @@ https://github.com/helm/charts/tree/master/stable/prometheus-operator/hack
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
name: {{ printf "%s-%s" (include "prometheus-operator.fullname" $) "nodes" | trunc 63 | trimSuffix "-" }}
|
||||
labels:
|
||||
{{- if $.Values.grafana.sidecar.dashboards.label }}
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@ https://github.com/helm/charts/tree/master/stable/prometheus-operator/hack
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
name: {{ printf "%s-%s" (include "prometheus-operator.fullname" $) "persistentvolumesusage" | trunc 63 | trimSuffix "-" }}
|
||||
labels:
|
||||
{{- if $.Values.grafana.sidecar.dashboards.label }}
|
||||
|
||||
@@ -8,7 +8,7 @@ https://github.com/helm/charts/tree/master/stable/prometheus-operator/hack
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
name: {{ printf "%s-%s" (include "prometheus-operator.fullname" $) "pod-total" | trunc 63 | trimSuffix "-" }}
|
||||
labels:
|
||||
{{- if $.Values.grafana.sidecar.dashboards.label }}
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@ https://github.com/helm/charts/tree/master/stable/prometheus-operator/hack
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
name: {{ printf "%s-%s" (include "prometheus-operator.fullname" $) "prometheus-remote-write" | trunc 63 | trimSuffix "-" }}
|
||||
labels:
|
||||
{{- if $.Values.grafana.sidecar.dashboards.label }}
|
||||
|
||||
@@ -8,7 +8,7 @@ https://github.com/helm/charts/tree/master/stable/prometheus-operator/hack
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
name: {{ printf "%s-%s" (include "prometheus-operator.fullname" $) "prometheus" | trunc 63 | trimSuffix "-" }}
|
||||
labels:
|
||||
{{- if $.Values.grafana.sidecar.dashboards.label }}
|
||||
|
||||
@@ -8,7 +8,7 @@ https://github.com/helm/charts/tree/master/stable/prometheus-operator/hack
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
name: {{ printf "%s-%s" (include "prometheus-operator.fullname" $) "proxy" | trunc 63 | trimSuffix "-" }}
|
||||
labels:
|
||||
{{- if $.Values.grafana.sidecar.dashboards.label }}
|
||||
|
||||
@@ -8,7 +8,7 @@ https://github.com/helm/charts/tree/master/stable/prometheus-operator/hack
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
name: {{ printf "%s-%s" (include "prometheus-operator.fullname" $) "scheduler" | trunc 63 | trimSuffix "-" }}
|
||||
labels:
|
||||
{{- if $.Values.grafana.sidecar.dashboards.label }}
|
||||
|
||||
@@ -8,7 +8,7 @@ https://github.com/helm/charts/tree/master/stable/prometheus-operator/hack
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
name: {{ printf "%s-%s" (include "prometheus-operator.fullname" $) "statefulset" | trunc 63 | trimSuffix "-" }}
|
||||
labels:
|
||||
{{- if $.Values.grafana.sidecar.dashboards.label }}
|
||||
|
||||
@@ -8,7 +8,7 @@ https://github.com/helm/charts/tree/master/stable/prometheus-operator/hack
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
name: {{ printf "%s-%s" (include "prometheus-operator.fullname" $) "workload-total" | trunc 63 | trimSuffix "-" }}
|
||||
labels:
|
||||
{{- if $.Values.grafana.sidecar.dashboards.label }}
|
||||
|
||||
@@ -8,7 +8,7 @@ https://github.com/helm/charts/tree/master/stable/prometheus-operator/hack
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
name: {{ printf "%s-%s" (include "prometheus-operator.fullname" $) "etcd" | trunc 63 | trimSuffix "-" }}
|
||||
labels:
|
||||
{{- if $.Values.grafana.sidecar.dashboards.label }}
|
||||
|
||||
@@ -8,7 +8,7 @@ https://github.com/helm/charts/tree/master/stable/prometheus-operator/hack
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
name: {{ printf "%s-%s" (include "prometheus-operator.fullname" $) "k8s-cluster-rsrc-use" | trunc 63 | trimSuffix "-" }}
|
||||
labels:
|
||||
{{- if $.Values.grafana.sidecar.dashboards.label }}
|
||||
|
||||
@@ -8,7 +8,7 @@ https://github.com/helm/charts/tree/master/stable/prometheus-operator/hack
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
name: {{ printf "%s-%s" (include "prometheus-operator.fullname" $) "k8s-node-rsrc-use" | trunc 63 | trimSuffix "-" }}
|
||||
labels:
|
||||
{{- if $.Values.grafana.sidecar.dashboards.label }}
|
||||
|
||||
@@ -8,7 +8,7 @@ https://github.com/helm/charts/tree/master/stable/prometheus-operator/hack
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
name: {{ printf "%s-%s" (include "prometheus-operator.fullname" $) "k8s-resources-cluster" | trunc 63 | trimSuffix "-" }}
|
||||
labels:
|
||||
{{- if $.Values.grafana.sidecar.dashboards.label }}
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@ https://github.com/helm/charts/tree/master/stable/prometheus-operator/hack
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
name: {{ printf "%s-%s" (include "prometheus-operator.fullname" $) "k8s-resources-namespace" | trunc 63 | trimSuffix "-" }}
|
||||
labels:
|
||||
{{- if $.Values.grafana.sidecar.dashboards.label }}
|
||||
|
||||
@@ -8,7 +8,7 @@ https://github.com/helm/charts/tree/master/stable/prometheus-operator/hack
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
name: {{ printf "%s-%s" (include "prometheus-operator.fullname" $) "k8s-resources-pod" | trunc 63 | trimSuffix "-" }}
|
||||
labels:
|
||||
{{- if $.Values.grafana.sidecar.dashboards.label }}
|
||||
|
||||
@@ -8,7 +8,7 @@ https://github.com/helm/charts/tree/master/stable/prometheus-operator/hack
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
name: {{ printf "%s-%s" (include "prometheus-operator.fullname" $) "k8s-resources-workload" | trunc 63 | trimSuffix "-" }}
|
||||
labels:
|
||||
{{- if $.Values.grafana.sidecar.dashboards.label }}
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@ https://github.com/helm/charts/tree/master/stable/prometheus-operator/hack
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
name: {{ printf "%s-%s" (include "prometheus-operator.fullname" $) "k8s-resources-workloads-namespace" | trunc 63 | trimSuffix "-" }}
|
||||
labels:
|
||||
{{- if $.Values.grafana.sidecar.dashboards.label }}
|
||||
|
||||
@@ -8,7 +8,7 @@ https://github.com/helm/charts/tree/master/stable/prometheus-operator/hack
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
name: {{ printf "%s-%s" (include "prometheus-operator.fullname" $) "nodes" | trunc 63 | trimSuffix "-" }}
|
||||
labels:
|
||||
{{- if $.Values.grafana.sidecar.dashboards.label }}
|
||||
|
||||
@@ -8,7 +8,7 @@ https://github.com/helm/charts/tree/master/stable/prometheus-operator/hack
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
name: {{ printf "%s-%s" (include "prometheus-operator.fullname" $) "persistentvolumesusage" | trunc 63 | trimSuffix "-" }}
|
||||
labels:
|
||||
{{- if $.Values.grafana.sidecar.dashboards.label }}
|
||||
|
||||
@@ -8,7 +8,7 @@ https://github.com/helm/charts/tree/master/stable/prometheus-operator/hack
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
name: {{ printf "%s-%s" (include "prometheus-operator.fullname" $) "pods" | trunc 63 | trimSuffix "-" }}
|
||||
labels:
|
||||
{{- if $.Values.grafana.sidecar.dashboards.label }}
|
||||
|
||||
@@ -8,7 +8,7 @@ https://github.com/helm/charts/tree/master/stable/prometheus-operator/hack
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
name: {{ printf "%s-%s" (include "prometheus-operator.fullname" $) "statefulset" | trunc 63 | trimSuffix "-" }}
|
||||
labels:
|
||||
{{- if $.Values.grafana.sidecar.dashboards.label }}
|
||||
|
||||
@@ -3,7 +3,7 @@ apiVersion: monitoring.coreos.com/v1
|
||||
kind: ServiceMonitor
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-grafana
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-grafana
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
@@ -14,7 +14,7 @@ spec:
|
||||
app.kubernetes.io/instance: {{ $.Release.Name | quote }}
|
||||
namespaceSelector:
|
||||
matchNames:
|
||||
- {{ $.Release.Namespace | quote }}
|
||||
- {{ printf "%s" (include "prometheus-operator.namespace" .) | quote }}
|
||||
endpoints:
|
||||
- port: {{ .Values.grafana.service.portName }}
|
||||
{{- if .Values.grafana.serviceMonitor.interval }}
|
||||
|
||||
+2
-2
@@ -3,7 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRoleBinding
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-admission
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
annotations:
|
||||
"helm.sh/hook": pre-install,pre-upgrade,post-install,post-upgrade
|
||||
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
|
||||
@@ -17,5 +17,5 @@ roleRef:
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: {{ template "prometheus-operator.fullname" . }}-admission
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
{{- end }}
|
||||
|
||||
+3
-3
@@ -3,7 +3,7 @@ apiVersion: batch/v1
|
||||
kind: Job
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-admission-create
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
annotations:
|
||||
"helm.sh/hook": pre-install,pre-upgrade
|
||||
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
|
||||
@@ -35,8 +35,8 @@ spec:
|
||||
imagePullPolicy: {{ .Values.prometheusOperator.admissionWebhooks.patch.pullPolicy }}
|
||||
args:
|
||||
- create
|
||||
- --host={{ template "prometheus-operator.operator.fullname" . }},{{ template "prometheus-operator.operator.fullname" . }}.{{ $.Release.Namespace }}.svc
|
||||
- --namespace={{ $.Release.Namespace }}
|
||||
- --host={{ template "prometheus-operator.operator.fullname" . }},{{ template "prometheus-operator.operator.fullname" . }}.{{ template "prometheus-operator.namespace" . }}.svc
|
||||
- --namespace={{ template "prometheus-operator.namespace" . }}
|
||||
- --secret-name={{ template "prometheus-operator.fullname" . }}-admission
|
||||
resources:
|
||||
{{ toYaml .Values.prometheusOperator.admissionWebhooks.patch.resources | indent 12 }}
|
||||
|
||||
+2
-2
@@ -3,7 +3,7 @@ apiVersion: batch/v1
|
||||
kind: Job
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-admission-patch
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
annotations:
|
||||
"helm.sh/hook": post-install,post-upgrade
|
||||
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
|
||||
@@ -36,7 +36,7 @@ spec:
|
||||
args:
|
||||
- patch
|
||||
- --webhook-name={{ template "prometheus-operator.fullname" . }}-admission
|
||||
- --namespace={{ $.Release.Namespace }}
|
||||
- --namespace={{ template "prometheus-operator.namespace" . }}
|
||||
- --secret-name={{ template "prometheus-operator.fullname" . }}-admission
|
||||
- --patch-failure-policy={{ .Values.prometheusOperator.admissionWebhooks.failurePolicy }}
|
||||
resources:
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ apiVersion: policy/v1beta1
|
||||
kind: PodSecurityPolicy
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-admission
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
annotations:
|
||||
"helm.sh/hook": pre-install,pre-upgrade,post-install,post-upgrade
|
||||
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: Role
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-admission
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
annotations:
|
||||
"helm.sh/hook": pre-install,pre-upgrade,post-install,post-upgrade
|
||||
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
|
||||
|
||||
+2
-2
@@ -3,7 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: RoleBinding
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-admission
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
annotations:
|
||||
"helm.sh/hook": pre-install,pre-upgrade,post-install,post-upgrade
|
||||
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
|
||||
@@ -17,5 +17,5 @@ roleRef:
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: {{ template "prometheus-operator.fullname" . }}-admission
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
{{- end }}
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-admission
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
annotations:
|
||||
"helm.sh/hook": pre-install,pre-upgrade,post-install,post-upgrade
|
||||
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
|
||||
|
||||
+1
-1
@@ -25,7 +25,7 @@ webhooks:
|
||||
- UPDATE
|
||||
clientConfig:
|
||||
service:
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
name: {{ template "prometheus-operator.operator.fullname" $ }}
|
||||
path: /admission-prometheusrules/mutate
|
||||
{{- end }}
|
||||
|
||||
+1
-1
@@ -25,7 +25,7 @@ webhooks:
|
||||
- UPDATE
|
||||
clientConfig:
|
||||
service:
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
name: {{ template "prometheus-operator.operator.fullname" $ }}
|
||||
path: /admission-prometheusrules/validate
|
||||
{{- end }}
|
||||
|
||||
@@ -3,7 +3,7 @@ apiVersion: batch/v1
|
||||
kind: Job
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-operator-cleanup
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
annotations:
|
||||
"helm.sh/hook": pre-delete
|
||||
"helm.sh/hook-weight": "3"
|
||||
|
||||
@@ -13,5 +13,5 @@ roleRef:
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: {{ template "prometheus-operator.operator.serviceAccountName" . }}
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
{{- end }}
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
{{- $namespace := printf "%s" (include "prometheus-operator.namespace" .) }}
|
||||
{{- if .Values.prometheusOperator.enabled }}
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-operator
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-operator
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
@@ -52,7 +53,7 @@ spec:
|
||||
{{- with $.Values.prometheusOperator.namespaces }}
|
||||
{{ $ns := .additional }}
|
||||
{{- if .releaseNamespace }}
|
||||
{{- $ns = append $ns $.Release.Namespace }}
|
||||
{{- $ns = append $ns $namespace }}
|
||||
{{- end }}
|
||||
- --namespaces={{ $ns | join "," }}
|
||||
{{- end }}
|
||||
|
||||
+1
-1
@@ -13,5 +13,5 @@ roleRef:
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: {{ template "prometheus-operator.operator.serviceAccountName" . }}
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
{{- end }}
|
||||
|
||||
@@ -3,7 +3,7 @@ apiVersion: policy/v1beta1
|
||||
kind: PodSecurityPolicy
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-operator
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-operator
|
||||
{{- if .Values.global.rbac.pspAnnotations }}
|
||||
|
||||
@@ -3,7 +3,7 @@ apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-operator
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-operator
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
|
||||
@@ -3,7 +3,7 @@ apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.operator.serviceAccountName" . }}
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-operator
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
|
||||
@@ -3,7 +3,7 @@ apiVersion: monitoring.coreos.com/v1
|
||||
kind: ServiceMonitor
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-operator
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-operator
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
@@ -28,5 +28,5 @@ spec:
|
||||
release: {{ $.Release.Name | quote }}
|
||||
namespaceSelector:
|
||||
matchNames:
|
||||
- {{ $.Release.Namespace | quote }}
|
||||
- {{ printf "%s" (include "prometheus-operator.namespace" .) | quote }}
|
||||
{{- end }}
|
||||
|
||||
@@ -3,7 +3,7 @@ apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-prometheus-am-relabel-confg
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
{{- if .Values.prometheus.prometheusSpec.additionalPrometheusSecretsAnnotations }}
|
||||
annotations:
|
||||
{{ toYaml .Values.prometheus.prometheusSpec.additionalPrometheusSecretsAnnotations | indent 4 }}
|
||||
|
||||
@@ -3,7 +3,7 @@ apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-prometheus-am-confg
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
{{- if .Values.prometheus.prometheusSpec.additionalPrometheusSecretsAnnotations }}
|
||||
annotations:
|
||||
{{ toYaml .Values.prometheus.prometheusSpec.additionalPrometheusSecretsAnnotations | indent 4 }}
|
||||
|
||||
@@ -8,7 +8,7 @@ items:
|
||||
kind: PrometheusRule
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.name" $ }}-{{ $prometheusRuleName }}
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" $ }}
|
||||
{{ include "prometheus-operator.labels" $ | indent 8 }}
|
||||
@@ -25,7 +25,7 @@ items:
|
||||
kind: PrometheusRule
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.name" $ }}-{{ .name }}
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" $ }}
|
||||
{{ include "prometheus-operator.labels" $ | indent 8 }}
|
||||
|
||||
@@ -3,7 +3,7 @@ apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-prometheus-scrape-confg
|
||||
namespace: {{ .Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
{{- if .Values.prometheus.prometheusSpec.additionalPrometheusSecretsAnnotations }}
|
||||
annotations:
|
||||
{{ toYaml .Values.prometheus.prometheusSpec.additionalPrometheusSecretsAnnotations | indent 4 }}
|
||||
|
||||
@@ -13,6 +13,6 @@ roleRef:
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: {{ template "prometheus-operator.prometheus.serviceAccountName" . }}
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
{{- end }}
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ metadata:
|
||||
{{ toYaml .Values.prometheus.ingress.annotations | indent 4 }}
|
||||
{{- end }}
|
||||
name: {{ $serviceName }}
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-prometheus
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
|
||||
@@ -6,7 +6,7 @@ apiVersion: v1
|
||||
kind: List
|
||||
metadata:
|
||||
name: {{ include "prometheus-operator.fullname" $ }}-prometheus-ingressperreplica
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
items:
|
||||
{{ range $i, $e := until $count }}
|
||||
- kind: Ingress
|
||||
@@ -17,7 +17,7 @@ items:
|
||||
{{ end -}}
|
||||
metadata:
|
||||
name: {{ include "prometheus-operator.fullname" $ }}-prometheus-{{ $i }}
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
labels:
|
||||
app: {{ include "prometheus-operator.name" $ }}-prometheus
|
||||
{{ include "prometheus-operator.labels" $ | indent 8 }}
|
||||
|
||||
@@ -3,7 +3,7 @@ apiVersion: policy/v1beta1
|
||||
kind: PodDisruptionBudget
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-prometheus
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-prometheus
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
|
||||
@@ -7,7 +7,7 @@ items:
|
||||
kind: PodMonitor
|
||||
metadata:
|
||||
name: {{ .name }}
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" $ }}-prometheus
|
||||
{{ include "prometheus-operator.labels" $ | indent 8 }}
|
||||
|
||||
@@ -3,7 +3,7 @@ apiVersion: monitoring.coreos.com/v1
|
||||
kind: Prometheus
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-prometheus
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-prometheus
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
@@ -17,7 +17,7 @@ spec:
|
||||
{{- if .Values.prometheus.prometheusSpec.alertingEndpoints }}
|
||||
{{ toYaml .Values.prometheus.prometheusSpec.alertingEndpoints | indent 6 }}
|
||||
{{- else if .Values.alertmanager.enabled }}
|
||||
- namespace: {{ $.Release.Namespace }}
|
||||
- namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
name: {{ template "prometheus-operator.fullname" . }}-alertmanager
|
||||
port: {{ .Values.alertmanager.alertmanagerSpec.portName }}
|
||||
{{- if .Values.alertmanager.alertmanagerSpec.routePrefix }}
|
||||
@@ -54,7 +54,7 @@ spec:
|
||||
{{- else if and .Values.prometheus.ingress.enabled .Values.prometheus.ingress.hosts }}
|
||||
externalUrl: "http://{{ tpl (index .Values.prometheus.ingress.hosts 0) . }}{{ .Values.prometheus.prometheusSpec.routePrefix }}"
|
||||
{{- else }}
|
||||
externalUrl: http://{{ template "prometheus-operator.fullname" . }}-prometheus.{{ $.Release.Namespace }}:{{ .Values.prometheus.service.port }}
|
||||
externalUrl: http://{{ template "prometheus-operator.fullname" . }}-prometheus.{{ template "prometheus-operator.namespace" . }}:{{ .Values.prometheus.service.port }}
|
||||
{{- end }}
|
||||
{{- if .Values.prometheus.prometheusSpec.nodeSelector }}
|
||||
nodeSelector:
|
||||
|
||||
@@ -13,6 +13,6 @@ roleRef:
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: {{ template "prometheus-operator.prometheus.serviceAccountName" . }}
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
{{- end }}
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ apiVersion: policy/v1beta1
|
||||
kind: PodSecurityPolicy
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-prometheus
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-prometheus
|
||||
{{- if .Values.global.rbac.pspAnnotations }}
|
||||
|
||||
@@ -7,12 +7,12 @@ https://github.com/helm/charts/tree/master/stable/prometheus-operator/hack
|
||||
{{- if and (semverCompare ">=1.14.0-0" $kubeTargetVersion) (semverCompare "<9.9.9-9" $kubeTargetVersion) .Values.defaultRules.create .Values.defaultRules.rules.alertmanager }}
|
||||
{{- $operatorJob := printf "%s-%s" (include "prometheus-operator.fullname" .) "operator" }}
|
||||
{{- $alertmanagerJob := printf "%s-%s" (include "prometheus-operator.fullname" .) "alertmanager" }}
|
||||
{{- $namespace := .Release.Namespace }}
|
||||
{{- $namespace := printf "%s" (include "prometheus-operator.namespace" .) }}
|
||||
apiVersion: monitoring.coreos.com/v1
|
||||
kind: PrometheusRule
|
||||
metadata:
|
||||
name: {{ printf "%s-%s" (include "prometheus-operator.fullname" .) "alertmanager.rules" | trunc 63 | trimSuffix "-" }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
|
||||
@@ -9,7 +9,7 @@ apiVersion: monitoring.coreos.com/v1
|
||||
kind: PrometheusRule
|
||||
metadata:
|
||||
name: {{ printf "%s-%s" (include "prometheus-operator.fullname" .) "etcd" | trunc 63 | trimSuffix "-" }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
|
||||
@@ -9,7 +9,7 @@ apiVersion: monitoring.coreos.com/v1
|
||||
kind: PrometheusRule
|
||||
metadata:
|
||||
name: {{ printf "%s-%s" (include "prometheus-operator.fullname" .) "general.rules" | trunc 63 | trimSuffix "-" }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
|
||||
@@ -9,7 +9,7 @@ apiVersion: monitoring.coreos.com/v1
|
||||
kind: PrometheusRule
|
||||
metadata:
|
||||
name: {{ printf "%s-%s" (include "prometheus-operator.fullname" .) "k8s.rules" | trunc 63 | trimSuffix "-" }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
|
||||
@@ -9,7 +9,7 @@ apiVersion: monitoring.coreos.com/v1
|
||||
kind: PrometheusRule
|
||||
metadata:
|
||||
name: {{ printf "%s-%s" (include "prometheus-operator.fullname" .) "kube-apiserver-slos" | trunc 63 | trimSuffix "-" }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
namespace: {{ template "prometheus-operator.namespace" . }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user