This repository has been archived by the owner on Feb 22, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[stable/prometheus-operator] Resolve scraping controller-manager and …
…scheduler outside out the cluster (#10366) * [stable/prometheus-operator] Resolve scraping controller-manager and scheduler outside out the cluster Signed-off-by: Sébastien Prud'homme <sebastien.prudhomme@gmail.com> * [stable/prometheus-operator] Bump version Signed-off-by: Sébastien Prud'homme <sebastien.prudhomme@gmail.com>
- Loading branch information
1 parent
692daad
commit 7be0b80
Showing
8 changed files
with
92 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
stable/prometheus-operator/templates/exporters/kube-controller-manager/endpoints.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{{- if and .Values.kubeControllerManager.enabled .Values.kubeControllerManager.endpoints }} | ||
apiVersion: v1 | ||
kind: Endpoints | ||
metadata: | ||
name: {{ template "prometheus-operator.fullname" . }}-kube-controller-manager | ||
labels: | ||
app: {{ template "prometheus-operator.name" . }}-kube-controller-manager | ||
k8s-app: kube-controller-manager | ||
{{ include "prometheus-operator.labels" . | indent 4 }} | ||
namespace: kube-system | ||
subsets: | ||
- addresses: | ||
{{- range .Values.kubeControllerManager.endpoints }} | ||
- ip: {{ . }} | ||
{{- end }} | ||
ports: | ||
- name: http-metrics | ||
port: {{ .Values.kubeControllerManager.service.port }} | ||
protocol: TCP | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
stable/prometheus-operator/templates/exporters/kube-scheduler/endpoints.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{{- if and .Values.kubeScheduler.enabled .Values.kubeScheduler.endpoints }} | ||
apiVersion: v1 | ||
kind: Endpoints | ||
metadata: | ||
name: {{ template "prometheus-operator.fullname" . }}-kube-scheduler | ||
labels: | ||
app: {{ template "prometheus-operator.name" . }}-kube-scheduler | ||
k8s-app: kube-scheduler | ||
{{ include "prometheus-operator.labels" . | indent 4 }} | ||
namespace: kube-system | ||
subsets: | ||
- addresses: | ||
{{- range .Values.kubeScheduler.endpoints }} | ||
- ip: {{ . }} | ||
{{- end }} | ||
ports: | ||
- name: http-metrics | ||
port: {{ .Values.kubeScheduler.service.port }} | ||
protocol: TCP | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters