feat(prometheus): install Prometheus
This commit is contained in:
22
prometheus/grafana-admin-external-secret.gomplate.yaml
Normal file
22
prometheus/grafana-admin-external-secret.gomplate.yaml
Normal file
@@ -0,0 +1,22 @@
|
||||
apiVersion: external-secrets.io/v1
|
||||
kind: ExternalSecret
|
||||
metadata:
|
||||
name: grafana-admin-credentials
|
||||
namespace: {{ .Env.PROMETHEUS_NAMESPACE }}
|
||||
spec:
|
||||
refreshInterval: 1h
|
||||
secretStoreRef:
|
||||
name: vault-secret-store
|
||||
kind: ClusterSecretStore
|
||||
target:
|
||||
name: grafana-admin-credentials
|
||||
creationPolicy: Owner
|
||||
template:
|
||||
data:
|
||||
admin-user: "admin"
|
||||
admin-password: "{{ `{{ .password }}` }}"
|
||||
data:
|
||||
- secretKey: password
|
||||
remoteRef:
|
||||
key: grafana/admin
|
||||
property: password
|
||||
Reference in New Issue
Block a user