37 lines
761 B
YAML
37 lines
761 B
YAML
|
|
---
|
||
|
|
apiVersion: secrets.hashicorp.com/v1beta1
|
||
|
|
kind: VaultAuth
|
||
|
|
metadata:
|
||
|
|
name: vso-auth
|
||
|
|
namespace: monitoring
|
||
|
|
spec:
|
||
|
|
method: kubernetes
|
||
|
|
mount: kubernetes
|
||
|
|
kubernetes:
|
||
|
|
role: vso
|
||
|
|
serviceAccount: default
|
||
|
|
---
|
||
|
|
# Grafana admin password from OpenBao KV at secret/grafana.
|
||
|
|
apiVersion: secrets.hashicorp.com/v1beta1
|
||
|
|
kind: VaultStaticSecret
|
||
|
|
metadata:
|
||
|
|
name: grafana-admin
|
||
|
|
namespace: monitoring
|
||
|
|
spec:
|
||
|
|
vaultAuthRef: vso-auth
|
||
|
|
mount: secret
|
||
|
|
type: kv-v2
|
||
|
|
path: grafana
|
||
|
|
refreshAfter: 30s
|
||
|
|
destination:
|
||
|
|
name: grafana-admin
|
||
|
|
create: true
|
||
|
|
overwrite: true
|
||
|
|
transformation:
|
||
|
|
excludeRaw: true
|
||
|
|
templates:
|
||
|
|
admin-password:
|
||
|
|
text: "{{ index .Secrets \"admin-password\" }}"
|
||
|
|
admin-user:
|
||
|
|
text: "admin"
|