add grafana secret
ci / build (push) Waiting to run Details

This commit is contained in:
CJ_Clippy 2024-06-20 15:33:27 -08:00
parent aa1bf33856
commit 89da424887
2 changed files with 10 additions and 4 deletions

View File

@ -2,14 +2,14 @@
apiVersion: v1 apiVersion: v1
kind: Namespace kind: Namespace
metadata: metadata:
name: grafana name: monitoring
--- ---
apiVersion: source.toolkit.fluxcd.io/v1 apiVersion: source.toolkit.fluxcd.io/v1
kind: HelmRepository kind: HelmRepository
metadata: metadata:
name: grafana name: grafana
namespace: grafana namespace: monitoring
spec: spec:
interval: 24h interval: 24h
url: https://grafana.github.io/helm-charts url: https://grafana.github.io/helm-charts
@ -19,7 +19,7 @@ apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease kind: HelmRelease
metadata: metadata:
name: grafana name: grafana
namespace: grafana namespace: monitoring
spec: spec:
interval: 30m interval: 30m
chart: chart:
@ -29,9 +29,11 @@ spec:
sourceRef: sourceRef:
kind: HelmRepository kind: HelmRepository
name: grafana name: grafana
namespace: grafana namespace: monitoring
interval: 12h interval: 12h
values: values:
admin:
existingSecret: grafana
dashboardProviders: dashboardProviders:
dashboardproviders.yaml: dashboardproviders.yaml:
apiVersion: 1 apiVersion: 1

View File

@ -23,6 +23,10 @@ data:
aws_secret_access_key: $(echo -n $VELERO_S3_ACCESS_KEY | base64) aws_secret_access_key: $(echo -n $VELERO_S3_ACCESS_KEY | base64)
EOF EOF
kubectl --namespace monitoring delete secret grafana --ignore-not-found
kubectl --namespace monitoring create secret generic grafana \
--from-literal=admin-user=${GRAFANA_USERNAME} \
--from-literal=admin-password=${GRAFANA_PASSWORD}
kubectl --namespace futureporn delete secret frp --ignore-not-found kubectl --namespace futureporn delete secret frp --ignore-not-found
kubectl --namespace futureporn create secret generic frp \ kubectl --namespace futureporn create secret generic frp \