fix(home-assistant): add podmonitor (with given bearerTokenSecret)
This commit is contained in:
parent
e22b40e8e4
commit
48c65fe19f
6 changed files with 47 additions and 5 deletions
|
@ -2,7 +2,7 @@ apiVersion: v2
|
|||
name: home-assistant
|
||||
description: Home Assistant with tooling to run on an k3s pi
|
||||
type: application
|
||||
version: 0.1.31
|
||||
version: 0.2.0
|
||||
# renovate: image=ghcr.io/home-assistant/home-assistant
|
||||
appVersion: "2024.10.2"
|
||||
maintainers:
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
= home-assistant
|
||||
|
||||
image::https://img.shields.io/badge/Version-0.1.31-informational?style=flat-square[Version: 0.1.31]
|
||||
image::https://img.shields.io/badge/Version-0.2.0-informational?style=flat-square[Version: 0.2.0]
|
||||
image::https://img.shields.io/badge/Version-application-informational?style=flat-square[Type: application]
|
||||
image::https://img.shields.io/badge/AppVersion-2024.10.2-informational?style=flat-square[AppVersion: 2024.10.2]
|
||||
== Maintainers
|
||||
|
@ -282,6 +282,21 @@ helm uninstall home-assistant-release
|
|||
| `{}`
|
||||
|
|
||||
|
||||
| prometheus.podmonitor.bearerTokenSecret
|
||||
| object
|
||||
| `{}`
|
||||
|
|
||||
|
||||
| prometheus.podmonitor.enabled
|
||||
| bool
|
||||
| `false`
|
||||
|
|
||||
|
||||
| prometheus.podmonitor.labels
|
||||
| object
|
||||
| `{}`
|
||||
|
|
||||
|
||||
| readinessProbe.httpGet.path
|
||||
| string
|
||||
| `"/"`
|
||||
|
|
|
@ -11,7 +11,7 @@ spec:
|
|||
selector:
|
||||
matchLabels:
|
||||
{{- include "home-assistant.selectorLabels" . | nindent 6 }}
|
||||
type: main
|
||||
app.kubernetes.io/component: home-assistant
|
||||
template:
|
||||
metadata:
|
||||
{{- with .Values.podAnnotations }}
|
||||
|
@ -20,7 +20,7 @@ spec:
|
|||
{{- end }}
|
||||
labels:
|
||||
{{- include "home-assistant.labels" . | nindent 8 }}
|
||||
type: main
|
||||
app.kubernetes.io/component: home-assistant
|
||||
{{- with .Values.podLabels }}
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
|
|
21
home-assistant/templates/podmonitor.yaml
Normal file
21
home-assistant/templates/podmonitor.yaml
Normal file
|
@ -0,0 +1,21 @@
|
|||
{{- if .Values.prometheus.podmonitor.enabled }}
|
||||
apiVersion: monitoring.coreos.com/v1
|
||||
kind: PodMonitor
|
||||
metadata:
|
||||
name: {{ include "home-assistant.fullname" . }}
|
||||
labels:
|
||||
{{- include "home-assistant.labels" . | nindent 4 }}
|
||||
{{- with .Values.prometheus.podmonitor.labels }}
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
{{- include "home-assistant.selectorLabels" . | nindent 6 }}
|
||||
app.kubernetes.io/component: home-assistant
|
||||
podMetricsEndpoints:
|
||||
- port: http
|
||||
path: "/api/prometheus"
|
||||
bearerTokenSecret:
|
||||
{{- toYaml .Values.prometheus.podmonitor.bearerTokenSecret | nindent 8 }}
|
||||
{{- end }}
|
|
@ -8,7 +8,7 @@ spec:
|
|||
type: {{ .Values.service.type }}
|
||||
selector:
|
||||
{{- include "home-assistant.selectorLabels" . | nindent 4 }}
|
||||
type: main
|
||||
app.kubernetes.io/component: home-assistant
|
||||
ports:
|
||||
- port: {{ .Values.service.port }}
|
||||
targetPort: http
|
||||
|
|
|
@ -61,6 +61,12 @@ zigbee2mqtt:
|
|||
serial:
|
||||
port: /dev/ttyACM0
|
||||
|
||||
prometheus:
|
||||
podmonitor:
|
||||
enabled: false
|
||||
labels: {}
|
||||
bearerTokenSecret: {}
|
||||
|
||||
persistence:
|
||||
enabled: false
|
||||
annotations: {}
|
||||
|
|
Loading…
Add table
Reference in a new issue