From 69680e5ab5fe54ba4a3894cec4d8d284bc70fc0b Mon Sep 17 00:00:00 2001 From: ycz008 Date: Mon, 15 Apr 2024 18:59:25 +0800 Subject: [PATCH] update grafana-oss --- prod-upgrade/prom/grafana.yaml | 39 +++++++++++++++++++++++++++++++--- 1 file changed, 36 insertions(+), 3 deletions(-) diff --git a/prod-upgrade/prom/grafana.yaml b/prod-upgrade/prom/grafana.yaml index 46d81fd..1085a07 100644 --- a/prod-upgrade/prom/grafana.yaml +++ b/prod-upgrade/prom/grafana.yaml @@ -1,4 +1,27 @@ --- +apiVersion: v1 +kind: ConfigMap +metadata: + name: grafana-cm +data: + grafana-ini: |- + app_mode = production + [database] + type = mysql + host = mysql-nacos.base.svc:3306 + name = grafana + user = root + password = Admin@2099 + [smtp] + enabled = true + host = smtp.gmail.com:587 + user = do-not-reply@beaconfireinc.com + password = Beaconfire2024! + skip_verify = true + from_address = do-not-reply@beaconfireinc.com + from_name = Bfs-Grafana + startTLS_policy = NoStartTLS + apiVersion: v1 kind: PersistentVolumeClaim metadata: @@ -57,15 +80,25 @@ spec: timeoutSeconds: 1 resources: requests: - cpu: 250m + cpu: 50m memory: 750Mi volumeMounts: - - mountPath: /var/lib/grafana - name: grafana-pv + - name: grafana-pv + mountPath: /var/lib/grafana + - name: grafana-cm + mountPath: /etc/grafana/grafana.ini + subPath: grafana.ini + readOnly: true volumes: - name: grafana-pv persistentVolumeClaim: claimName: grafana-pvc + - name: grafana-cm + configMap: + name: grafana-cm + items: + - key: grafana-ini + path: grafana.ini --- apiVersion: v1 kind: Service