41 lines
968 B
Markdown
41 lines
968 B
Markdown
# Monitoring secrets
|
|
|
|
`grafana-admin.secret.yaml` is generated by Jeannie and encrypted with SOPS/age.
|
|
|
|
Run on the Debian homelab server:
|
|
|
|
```bash
|
|
./jeannie grafana-admin-secret ensure
|
|
```
|
|
|
|
The generated Kubernetes Secret is named `monitoring/grafana-admin-credentials`
|
|
and contains:
|
|
|
|
- `admin-user`
|
|
- `admin-password`
|
|
|
|
The kube-prometheus-stack Helm release is configured to use this existing Secret
|
|
for Grafana admin credentials.
|
|
|
|
Do not commit plaintext credentials. Commit only the SOPS-encrypted
|
|
`grafana-admin.secret.yaml` file after it is generated.
|
|
|
|
To mirror the same login into Bitwarden or Vaultwarden for browser autofill,
|
|
unlock the Bitwarden CLI and run:
|
|
|
|
```bash
|
|
export BW_SESSION="$(bw unlock --raw)"
|
|
./jeannie grafana-admin-secret bw-sync
|
|
```
|
|
|
|
If you use Vaultwarden, configure the CLI first:
|
|
|
|
```bash
|
|
bw config server https://vault.example.com
|
|
```
|
|
|
|
The vault item defaults to:
|
|
|
|
- name: `Homelab Grafana`
|
|
- URI: `https://grafana.lab2025.duckdns.org/`
|