convert home-assistant to app-template

This commit is contained in:
2024-05-27 21:55:08 -05:00
parent 8aeb31e05e
commit fecc5387f3
7 changed files with 236 additions and 53 deletions

View File

@@ -0,0 +1,24 @@
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: home-assistant
namespace: {{ .Release.Namespace }}
labels:
app.kubernetes.io/name: home-assistant
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/version: {{ .Chart.AppVersion }}
app.kubernetes.io/component: metrics
app.kubernetes.io/part-of: {{ .Release.Name }}
spec:
selector:
matchLabels:
app.kubernetes.io/name: home-assistant
app.kubernetes.io/instance: {{ .Release.Name }}
endpoints:
- port: http
interval: 1m
scrapeTimeout: 30s
path: /api/prometheus
bearerTokenSecret:
name: home-assistant-token-secret
key: bearerToken