update grafana-oss

main
ycz008 2024-04-15 18:59:25 +08:00
parent 5627c841a5
commit 69680e5ab5
1 changed files with 36 additions and 3 deletions

View File

@ -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