mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
Include Release.Namespace within each object, this is used when specifying --namespace with Helm (#17689)
Signed-off-by: Damian Myerscough <Damian.Myerscough@gmail.com>
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
37b518965d
commit
ffb76a7323
@@ -10,7 +10,7 @@ name: prometheus-operator
|
||||
sources:
|
||||
- https://github.com/coreos/prometheus-operator
|
||||
- https://coreos.com/operators/prometheus
|
||||
version: 6.14.1
|
||||
version: 6.14.2
|
||||
appVersion: 0.32.0
|
||||
home: https://github.com/coreos/prometheus-operator
|
||||
keywords:
|
||||
|
||||
@@ -3,6 +3,7 @@ apiVersion: {{ printf "%s/v1" (.Values.prometheusOperator.crdApiGroup | default
|
||||
kind: Alertmanager
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-alertmanager
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-alertmanager
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
|
||||
@@ -7,6 +7,7 @@ apiVersion: extensions/v1beta1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: {{ $serviceName }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
{{- if .Values.alertmanager.ingress.annotations }}
|
||||
annotations:
|
||||
{{ toYaml .Values.alertmanager.ingress.annotations | indent 4 }}
|
||||
|
||||
@@ -3,6 +3,7 @@ apiVersion: policy/v1beta1
|
||||
kind: PodDisruptionBudget
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-alertmanager
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-alertmanager
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
@@ -17,4 +18,4 @@ spec:
|
||||
matchLabels:
|
||||
app: alertmanager
|
||||
alertmanager: {{ template "prometheus-operator.fullname" . }}-alertmanager
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
@@ -3,6 +3,7 @@ kind: ClusterRole
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-alertmanager
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-alertmanager
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
|
||||
@@ -3,6 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRoleBinding
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-alertmanager
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-alertmanager
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
|
||||
@@ -3,6 +3,7 @@ apiVersion: policy/v1beta1
|
||||
kind: PodSecurityPolicy
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-alertmanager
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-alertmanager
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
|
||||
@@ -3,6 +3,7 @@ apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: alertmanager-{{ template "prometheus-operator.fullname" . }}-alertmanager
|
||||
namespace: {{ .Release.Namespace }}
|
||||
{{- if .Values.alertmanager.secret.annotations }}
|
||||
annotations:
|
||||
{{ toYaml .Values.alertmanager.secret.annotations | indent 4 }}
|
||||
|
||||
@@ -3,6 +3,7 @@ apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-alertmanager
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-alertmanager
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
|
||||
@@ -3,6 +3,7 @@ apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.alertmanager.serviceAccountName" . }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-alertmanager
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
|
||||
@@ -3,6 +3,7 @@ apiVersion: {{ printf "%s/v1" (.Values.prometheusOperator.crdApiGroup | default
|
||||
kind: ServiceMonitor
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-alertmanager
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-alertmanager
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
|
||||
@@ -3,6 +3,7 @@ apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-coredns
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-coredns
|
||||
jobLabel: coredns
|
||||
@@ -17,4 +18,4 @@ spec:
|
||||
targetPort: {{ .Values.coreDns.service.targetPort }}
|
||||
selector:
|
||||
{{ include "prometheus-operator.rangeskipempty" .Values.coreDns.service.selector | indent 4 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
@@ -3,6 +3,7 @@ apiVersion: {{ printf "%s/v1" (.Values.prometheusOperator.crdApiGroup | default
|
||||
kind: ServiceMonitor
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-coredns
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-coredns
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
|
||||
@@ -3,6 +3,7 @@ apiVersion: {{ printf "%s/v1" (.Values.prometheusOperator.crdApiGroup | default
|
||||
kind: ServiceMonitor
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-apiserver
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-apiserver
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
|
||||
+2
-1
@@ -3,6 +3,7 @@ apiVersion: v1
|
||||
kind: Endpoints
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-kube-controller-manager
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-kube-controller-manager
|
||||
k8s-app: kube-controller-manager
|
||||
@@ -17,4 +18,4 @@ subsets:
|
||||
- name: http-metrics
|
||||
port: {{ .Values.kubeControllerManager.service.port }}
|
||||
protocol: TCP
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
@@ -3,6 +3,7 @@ apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-kube-controller-manager
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-kube-controller-manager
|
||||
jobLabel: kube-controller-manager
|
||||
@@ -20,4 +21,4 @@ spec:
|
||||
{{ include "prometheus-operator.rangeskipempty" .Values.kubeControllerManager.service.selector | indent 4 }}
|
||||
{{- end }}
|
||||
type: ClusterIP
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
+1
@@ -3,6 +3,7 @@ apiVersion: {{ printf "%s/v1" (.Values.prometheusOperator.crdApiGroup | default
|
||||
kind: ServiceMonitor
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-kube-controller-manager
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-kube-controller-manager
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
|
||||
@@ -3,6 +3,7 @@ apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-kube-dns
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-kube-dns
|
||||
jobLabel: kube-dns
|
||||
@@ -21,4 +22,4 @@ spec:
|
||||
targetPort: 10055
|
||||
selector:
|
||||
{{ include "prometheus-operator.rangeskipempty" .Values.kubeDns.service.selector | indent 4 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
@@ -3,6 +3,7 @@ apiVersion: {{ printf "%s/v1" (.Values.prometheusOperator.crdApiGroup | default
|
||||
kind: ServiceMonitor
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-kube-dns
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-kube-dns
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
|
||||
@@ -3,6 +3,7 @@ apiVersion: v1
|
||||
kind: Endpoints
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-kube-etcd
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-kube-etcd
|
||||
k8s-app: etcd-server
|
||||
@@ -17,4 +18,4 @@ subsets:
|
||||
- name: http-metrics
|
||||
port: {{ .Values.kubeEtcd.service.port }}
|
||||
protocol: TCP
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
@@ -3,6 +3,7 @@ apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-kube-etcd
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-kube-etcd
|
||||
jobLabel: kube-etcd
|
||||
@@ -20,4 +21,4 @@ spec:
|
||||
{{ include "prometheus-operator.rangeskipempty" .Values.kubeEtcd.service.selector | indent 4 }}
|
||||
{{- end }}
|
||||
type: ClusterIP
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
@@ -3,6 +3,7 @@ apiVersion: {{ printf "%s/v1" (.Values.prometheusOperator.crdApiGroup | default
|
||||
kind: ServiceMonitor
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-kube-etcd
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-kube-etcd
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
|
||||
@@ -3,6 +3,7 @@ apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-kube-proxy
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-kube-proxy
|
||||
jobLabel: kube-proxy
|
||||
@@ -18,4 +19,4 @@ spec:
|
||||
selector:
|
||||
{{ include "prometheus-operator.rangeskipempty" .Values.kubeProxy.service.selector | indent 4 }}
|
||||
type: ClusterIP
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
@@ -3,6 +3,7 @@ apiVersion: {{ printf "%s/v1" (.Values.prometheusOperator.crdApiGroup | default
|
||||
kind: ServiceMonitor
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-kube-proxy
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-kube-proxy
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
|
||||
@@ -3,6 +3,7 @@ apiVersion: v1
|
||||
kind: Endpoints
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-kube-scheduler
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-kube-scheduler
|
||||
k8s-app: kube-scheduler
|
||||
@@ -17,4 +18,4 @@ subsets:
|
||||
- name: http-metrics
|
||||
port: {{ .Values.kubeScheduler.service.port }}
|
||||
protocol: TCP
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
@@ -3,6 +3,7 @@ apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-kube-scheduler
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-kube-scheduler
|
||||
jobLabel: kube-scheduler
|
||||
@@ -20,4 +21,4 @@ spec:
|
||||
{{ include "prometheus-operator.rangeskipempty" .Values.kubeScheduler.service.selector | indent 4 }}
|
||||
{{- end }}
|
||||
type: ClusterIP
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
@@ -3,6 +3,7 @@ apiVersion: {{ printf "%s/v1" (.Values.prometheusOperator.crdApiGroup | default
|
||||
kind: ServiceMonitor
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-kube-scheduler
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-kube-scheduler
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
|
||||
@@ -3,6 +3,7 @@ apiVersion: {{ printf "%s/v1" (.Values.prometheusOperator.crdApiGroup | default
|
||||
kind: ServiceMonitor
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-kube-state-metrics
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-kube-state-metrics
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
|
||||
@@ -3,6 +3,7 @@ apiVersion: {{ printf "%s/v1" (.Values.prometheusOperator.crdApiGroup | default
|
||||
kind: ServiceMonitor
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-kubelet
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-kubelet
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
|
||||
@@ -3,6 +3,7 @@ apiVersion: {{ printf "%s/v1" (.Values.prometheusOperator.crdApiGroup | default
|
||||
kind: ServiceMonitor
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-node-exporter
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-node-exporter
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
|
||||
@@ -10,6 +10,7 @@ items:
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: {{ printf "%s-%s" (include "prometheus-operator.fullname" $) $dashboardName | trunc 63 | trimSuffix "-" }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
{{- if $.Values.grafana.sidecar.dashboards.label }}
|
||||
{{ $.Values.grafana.sidecar.dashboards.label }}: "1"
|
||||
|
||||
@@ -3,6 +3,7 @@ apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-grafana-datasource
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
{{ $.Values.grafana.sidecar.datasources.label }}: "1"
|
||||
app: {{ template "prometheus-operator.name" $ }}-grafana
|
||||
|
||||
@@ -3,6 +3,7 @@ apiVersion: {{ printf "%s/v1" (.Values.prometheusOperator.crdApiGroup | default
|
||||
kind: ServiceMonitor
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-grafana
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-grafana
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
|
||||
+2
-1
@@ -3,6 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRole
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-admission
|
||||
namespace: {{ .Release.Namespace }}
|
||||
annotations:
|
||||
"helm.sh/hook": pre-install,pre-upgrade,post-install,post-upgrade
|
||||
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
|
||||
@@ -25,4 +26,4 @@ rules:
|
||||
resourceNames:
|
||||
- {{ template "prometheus-operator.fullname" . }}-admission
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
+2
-1
@@ -3,6 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRoleBinding
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-admission
|
||||
namespace: {{ .Release.Namespace }}
|
||||
annotations:
|
||||
"helm.sh/hook": pre-install,pre-upgrade,post-install,post-upgrade
|
||||
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
|
||||
@@ -17,4 +18,4 @@ subjects:
|
||||
- kind: ServiceAccount
|
||||
name: {{ template "prometheus-operator.fullname" . }}-admission
|
||||
namespace: {{ .Release.Namespace }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
+1
@@ -3,6 +3,7 @@ apiVersion: batch/v1
|
||||
kind: Job
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-admission-create
|
||||
namespace: {{ .Release.Namespace }}
|
||||
annotations:
|
||||
"helm.sh/hook": pre-install,pre-upgrade
|
||||
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
|
||||
|
||||
+1
@@ -3,6 +3,7 @@ apiVersion: batch/v1
|
||||
kind: Job
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-admission-patch
|
||||
namespace: {{ .Release.Namespace }}
|
||||
annotations:
|
||||
"helm.sh/hook": post-install,post-upgrade
|
||||
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
|
||||
|
||||
+1
@@ -3,6 +3,7 @@ apiVersion: policy/v1beta1
|
||||
kind: PodSecurityPolicy
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-admission
|
||||
namespace: {{ .Release.Namespace }}
|
||||
annotations:
|
||||
"helm.sh/hook": pre-install,pre-upgrade,post-install,post-upgrade
|
||||
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
|
||||
|
||||
+2
-1
@@ -3,6 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: Role
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-admission
|
||||
namespace: {{ .Release.Namespace }}
|
||||
annotations:
|
||||
"helm.sh/hook": pre-install,pre-upgrade,post-install,post-upgrade
|
||||
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
|
||||
@@ -17,4 +18,4 @@ rules:
|
||||
verbs:
|
||||
- get
|
||||
- create
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
+2
-1
@@ -3,6 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: RoleBinding
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-admission
|
||||
namespace: {{ .Release.Namespace }}
|
||||
annotations:
|
||||
"helm.sh/hook": pre-install,pre-upgrade,post-install,post-upgrade
|
||||
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
|
||||
@@ -17,4 +18,4 @@ subjects:
|
||||
- kind: ServiceAccount
|
||||
name: {{ template "prometheus-operator.fullname" . }}-admission
|
||||
namespace: {{ .Release.Namespace }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
+2
-1
@@ -3,10 +3,11 @@ apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-admission
|
||||
namespace: {{ .Release.Namespace }}
|
||||
annotations:
|
||||
"helm.sh/hook": pre-install,pre-upgrade,post-install,post-upgrade
|
||||
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" $ }}-admission
|
||||
{{- include "prometheus-operator.labels" $ | indent 4 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
+2
-1
@@ -3,6 +3,7 @@ apiVersion: admissionregistration.k8s.io/v1beta1
|
||||
kind: MutatingWebhookConfiguration
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-admission
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" $ }}-admission
|
||||
{{- include "prometheus-operator.labels" $ | indent 4 }}
|
||||
@@ -28,4 +29,4 @@ webhooks:
|
||||
namespace: {{ .Release.Namespace }}
|
||||
name: {{ template "prometheus-operator.operator.fullname" $ }}
|
||||
path: /admission-prometheusrules/mutate
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
+2
-1
@@ -3,6 +3,7 @@ apiVersion: admissionregistration.k8s.io/v1beta1
|
||||
kind: ValidatingWebhookConfiguration
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-admission
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" $ }}-admission
|
||||
{{- include "prometheus-operator.labels" $ | indent 4 }}
|
||||
@@ -28,4 +29,4 @@ webhooks:
|
||||
namespace: {{ .Release.Namespace }}
|
||||
name: {{ template "prometheus-operator.operator.fullname" $ }}
|
||||
path: /admission-prometheusrules/validate
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
@@ -3,6 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRole
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-operator
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-operator
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
|
||||
@@ -3,6 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRoleBinding
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-operator
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-operator
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
|
||||
@@ -5,6 +5,7 @@ kind: CustomResourceDefinition
|
||||
metadata:
|
||||
creationTimestamp: null
|
||||
name: {{ printf "alertmanagers.%s" (.Values.prometheusOperator.crdApiGroup | default "monitoring.coreos.com") }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-operator
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
|
||||
@@ -5,6 +5,7 @@ kind: CustomResourceDefinition
|
||||
metadata:
|
||||
creationTimestamp: null
|
||||
name: {{ printf "podmonitors.%s" (.Values.prometheusOperator.crdApiGroup | default "monitoring.coreos.com") }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-operator
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
|
||||
@@ -5,6 +5,7 @@ kind: CustomResourceDefinition
|
||||
metadata:
|
||||
creationTimestamp: null
|
||||
name: {{ printf "prometheuses.%s" (.Values.prometheusOperator.crdApiGroup | default "monitoring.coreos.com") }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-operator
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
|
||||
@@ -5,6 +5,7 @@ kind: CustomResourceDefinition
|
||||
metadata:
|
||||
creationTimestamp: null
|
||||
name: {{ printf "prometheusrules.%s" (.Values.prometheusOperator.crdApiGroup | default "monitoring.coreos.com") }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-operator
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
|
||||
@@ -5,6 +5,7 @@ kind: CustomResourceDefinition
|
||||
metadata:
|
||||
creationTimestamp: null
|
||||
name: {{ printf "servicemonitors.%s" (.Values.prometheusOperator.crdApiGroup | default "monitoring.coreos.com") }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-operator
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
|
||||
@@ -3,6 +3,7 @@ apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-operator
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-operator
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
|
||||
@@ -3,6 +3,7 @@ kind: ClusterRole
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-operator-psp
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-operator
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
|
||||
@@ -3,6 +3,7 @@ kind: ClusterRoleBinding
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-operator-psp
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-operator
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
|
||||
@@ -3,6 +3,7 @@ apiVersion: policy/v1beta1
|
||||
kind: PodSecurityPolicy
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-operator
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-operator
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
|
||||
@@ -3,6 +3,7 @@ apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-operator
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-operator
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
|
||||
@@ -3,6 +3,7 @@ apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.operator.serviceAccountName" . }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-operator
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
|
||||
@@ -3,6 +3,7 @@ apiVersion: {{ printf "%s/v1" (.Values.prometheusOperator.crdApiGroup | default
|
||||
kind: ServiceMonitor
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-operator
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-operator
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
|
||||
@@ -3,9 +3,10 @@ apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-prometheus-am-relabel-confg
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-prometheus-am-relabel-confg
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
data:
|
||||
additional-alert-relabel-configs.yaml: {{ toYaml .Values.prometheus.prometheusSpec.additionalAlertRelabelConfigs | b64enc | quote }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
@@ -3,9 +3,10 @@ apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-prometheus-am-confg
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-prometheus-am-confg
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
data:
|
||||
additional-alertmanager-configs.yaml: {{ toYaml .Values.prometheus.prometheusSpec.additionalAlertManagerConfigs | b64enc | quote }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
@@ -8,6 +8,7 @@ items:
|
||||
kind: PrometheusRule
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.name" $ }}-{{ $prometheusRuleName }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" $ }}
|
||||
{{ include "prometheus-operator.labels" $ | indent 8 }}
|
||||
@@ -24,6 +25,7 @@ items:
|
||||
kind: PrometheusRule
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.name" $ }}-{{ .name }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" $ }}
|
||||
{{ include "prometheus-operator.labels" $ | indent 8 }}
|
||||
|
||||
@@ -3,9 +3,10 @@ apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-prometheus-scrape-confg
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-prometheus-scrape-confg
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
data:
|
||||
additional-scrape-configs.yaml: {{ toYaml .Values.prometheus.prometheusSpec.additionalScrapeConfigs | b64enc | quote }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
@@ -3,6 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRole
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-prometheus
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-prometheus
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
|
||||
@@ -3,6 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRoleBinding
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-prometheus
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-prometheus
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
|
||||
@@ -11,6 +11,7 @@ metadata:
|
||||
{{ toYaml .Values.prometheus.ingress.annotations | indent 4 }}
|
||||
{{- end }}
|
||||
name: {{ $serviceName }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-prometheus
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
|
||||
@@ -6,12 +6,14 @@ apiVersion: extensions/v1beta1
|
||||
kind: IngressList
|
||||
metadata:
|
||||
name: {{ include "prometheus-operator.fullname" $ }}-prometheus-ingressperreplica
|
||||
namespace: {{ .Release.Namespace }}
|
||||
items:
|
||||
{{ range $i, $e := until $count }}
|
||||
- apiVersion: extensions/v1beta1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: {{ include "prometheus-operator.fullname" $ }}-prometheus-{{ $i }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
app: {{ include "prometheus-operator.name" $ }}-prometheus
|
||||
{{ include "prometheus-operator.labels" $ | indent 8 }}
|
||||
|
||||
@@ -3,6 +3,7 @@ apiVersion: policy/v1beta1
|
||||
kind: PodDisruptionBudget
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-prometheus
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-prometheus
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
@@ -17,4 +18,4 @@ spec:
|
||||
matchLabels:
|
||||
app: prometheus
|
||||
prometheus: {{ template "prometheus-operator.fullname" . }}-prometheus
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
@@ -7,6 +7,7 @@ items:
|
||||
kind: PodMonitor
|
||||
metadata:
|
||||
name: {{ .name }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" $ }}-prometheus
|
||||
{{ include "prometheus-operator.labels" $ | indent 8 }}
|
||||
|
||||
@@ -3,6 +3,7 @@ apiVersion: {{ printf "%s/v1" (.Values.prometheusOperator.crdApiGroup | default
|
||||
kind: Prometheus
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-prometheus
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-prometheus
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
|
||||
@@ -3,6 +3,7 @@ kind: ClusterRole
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-prometheus-psp
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-prometheus
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
|
||||
@@ -3,6 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRoleBinding
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-prometheus-psp
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-prometheus
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
|
||||
@@ -3,6 +3,7 @@ apiVersion: policy/v1beta1
|
||||
kind: PodSecurityPolicy
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-prometheus
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-prometheus
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
|
||||
@@ -3,6 +3,7 @@ apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-prometheus
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-prometheus
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
|
||||
@@ -3,6 +3,7 @@ apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.prometheus.serviceAccountName" . }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-prometheus
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
|
||||
@@ -3,6 +3,7 @@ apiVersion: {{ printf "%s/v1" (.Values.prometheusOperator.crdApiGroup | default
|
||||
kind: ServiceMonitor
|
||||
metadata:
|
||||
name: {{ template "prometheus-operator.fullname" . }}-prometheus
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" . }}-prometheus
|
||||
{{ include "prometheus-operator.labels" . | indent 4 }}
|
||||
|
||||
@@ -7,6 +7,7 @@ items:
|
||||
kind: ServiceMonitor
|
||||
metadata:
|
||||
name: {{ .name }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
app: {{ template "prometheus-operator.name" $ }}-prometheus
|
||||
{{ include "prometheus-operator.labels" $ | indent 8 }}
|
||||
|
||||
@@ -5,12 +5,14 @@ apiVersion: v1
|
||||
kind: ServiceList
|
||||
metadata:
|
||||
name: {{ include "prometheus-operator.fullname" $ }}-prometheus-serviceperreplica
|
||||
namespace: {{ .Release.Namespace }}
|
||||
items:
|
||||
{{ range $i, $e := until $count }}
|
||||
- apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ include "prometheus-operator.fullname" $ }}-prometheus-{{ $i }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
app: {{ include "prometheus-operator.name" $ }}-prometheus
|
||||
{{ include "prometheus-operator.labels" $ | indent 8 }}
|
||||
|
||||
Reference in New Issue
Block a user