mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[stable/prometheus] Add Telemetry port to Kube-state-metrics (#20072)
* [stable/prometheus] Add Telemetry port to Kube-state-metrics Signed-off-by: Yong Wen Chua <lawliet89@users.noreply.github.com> * Bump kubestatemetrics to 1.9.1 Fixes SegFault with HPA Signed-off-by: Yong Wen Chua <lawliet89@users.noreply.github.com> * Add Values for Service Signed-off-by: Yong Wen Chua <lawliet89@users.noreply.github.com>
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
bd0d9ed6c0
commit
334d459fe5
@@ -1,6 +1,6 @@
|
||||
apiVersion: v1
|
||||
name: prometheus
|
||||
version: 10.1.0
|
||||
version: 10.2.0
|
||||
appVersion: 2.15.2
|
||||
description: Prometheus is a monitoring system and time series database.
|
||||
home: https://prometheus.io/
|
||||
|
||||
@@ -115,7 +115,7 @@ spec:
|
||||
|
||||
You should adjust `prometheus.io/path` based on the URL that your pod serves metrics from.
|
||||
`prometheus.io/port` should be set to the port that your pod serves metrics from.
|
||||
Note that the values for `prometheus.io/scrape` and `prometheus.io/port` must be
|
||||
Note that the values for `prometheus.io/scrape` and `prometheus.io/port` must be
|
||||
enclosed in double quotes.
|
||||
|
||||
## Configuration
|
||||
@@ -216,6 +216,7 @@ Parameter | Description | Default
|
||||
`kubeStateMetrics.service.loadBalancerIP` | IP address to assign to load balancer (if supported) | `""`
|
||||
`kubeStateMetrics.service.loadBalancerSourceRanges` | list of IP CIDRs allowed access to load balancer (if supported) | `[]`
|
||||
`kubeStateMetrics.service.servicePort` | kube-state-metrics service port | `80`
|
||||
`kubeStateMetrics.service.serviceTelemetryPort` | kube-state-metrics service port for self Telemetry | `81`
|
||||
`kubeStateMetrics.service.type` | type of kube-state-metrics service to create | `ClusterIP`
|
||||
`nodeExporter.enabled` | If true, create node-exporter | `true`
|
||||
`nodeExporter.name` | node-exporter container name | `node-exporter`
|
||||
|
||||
@@ -43,6 +43,8 @@ spec:
|
||||
ports:
|
||||
- name: metrics
|
||||
containerPort: 8080
|
||||
- name: telemetry
|
||||
containerPort: 8081
|
||||
resources:
|
||||
{{ toYaml .Values.kubeStateMetrics.resources | indent 12 }}
|
||||
{{- if .Values.imagePullSecrets }}
|
||||
|
||||
@@ -34,6 +34,10 @@ spec:
|
||||
port: {{ .Values.kubeStateMetrics.service.servicePort }}
|
||||
protocol: TCP
|
||||
targetPort: 8080
|
||||
- name: telemetry
|
||||
port: {{ .Values.kubeStateMetrics.service.serviceTelemetryPort }}
|
||||
protocol: TCP
|
||||
targetPort: 8081
|
||||
selector:
|
||||
{{- include "prometheus.kubeStateMetrics.matchLabels" . | nindent 4 }}
|
||||
type: "{{ .Values.kubeStateMetrics.service.type }}"
|
||||
|
||||
@@ -353,7 +353,7 @@ kubeStateMetrics:
|
||||
##
|
||||
image:
|
||||
repository: quay.io/coreos/kube-state-metrics
|
||||
tag: v1.9.0
|
||||
tag: v1.9.1
|
||||
pullPolicy: IfNotPresent
|
||||
|
||||
## kube-state-metrics priorityClassName
|
||||
@@ -442,6 +442,8 @@ kubeStateMetrics:
|
||||
loadBalancerIP: ""
|
||||
loadBalancerSourceRanges: []
|
||||
servicePort: 80
|
||||
# Port for Kubestatemetric self telemetry
|
||||
serviceTelemetryPort: 81
|
||||
type: ClusterIP
|
||||
|
||||
nodeExporter:
|
||||
|
||||
Reference in New Issue
Block a user