add credentials for metrics

This commit is contained in:
2025-05-14 17:32:24 -05:00
parent 069e61078b
commit c5af012552
2 changed files with 27 additions and 2 deletions

View File

@@ -28,3 +28,28 @@ spec:
key: /cl01tl/home-assistant/code-server/auth
metadataPolicy: None
property: SUDO_PASSWORD
---
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: home-assistant-token-secret
namespace: {{ .Release.Namespace }}
labels:
app.kubernetes.io/name: home-assistant-token-secret
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/version: {{ .Chart.AppVersion }}
app.kubernetes.io/component: web
app.kubernetes.io/part-of: {{ .Release.Name }}
spec:
secretStoreRef:
kind: ClusterSecretStore
name: vault
data:
- secretKey: bearer-token
remoteRef:
conversionStrategy: Default
decodingStrategy: None
key: /cl01tl/home-assistant/auth
metadataPolicy: None
property: bearer-token

View File

@@ -20,5 +20,5 @@ spec:
scrapeTimeout: 1m
path: /api/prometheus
bearerTokenSecret:
name: secretName
key: secretKey
name: home-assistant-token-secret
key: bearer-token