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 apiVersion: v1
kind: PersistentVolumeClaim kind: PersistentVolumeClaim
metadata: metadata:
@ -57,15 +80,25 @@ spec:
timeoutSeconds: 1 timeoutSeconds: 1
resources: resources:
requests: requests:
cpu: 250m cpu: 50m
memory: 750Mi memory: 750Mi
volumeMounts: 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: volumes:
- name: grafana-pv - name: grafana-pv
persistentVolumeClaim: persistentVolumeClaim:
claimName: grafana-pvc claimName: grafana-pvc
- name: grafana-cm
configMap:
name: grafana-cm
items:
- key: grafana-ini
path: grafana.ini
--- ---
apiVersion: v1 apiVersion: v1
kind: Service kind: Service