Compare commits

...

2 Commits

Author SHA1 Message Date
kongfei605
bde522e0c4 Merge pull request #139 from logic3579/master
Update templates database and prometheus statefuset.yaml; fix prometh…
2025-11-04 19:59:16 +08:00
logic
f83cfe085e Update templates database and prometheus statefuset.yaml; fix prometheus and database errors 2025-11-03 20:45:08 +08:00
2 changed files with 9 additions and 0 deletions

View File

@@ -55,6 +55,8 @@ spec:
terminationGracePeriodSeconds: 120
containers:
- name: mysql
args:
- "--ignore-db-dir=lost+found"
image: {{ .Values.database.internal.image.repository }}:{{ .Values.database.internal.image.tag }}
imagePullPolicy: {{ .Values.imagePullPolicy }}
ports:

View File

@@ -40,6 +40,13 @@ spec:
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
initContainers:
- name: fix-permission
image: busybox
command: ["sh", "-c", "chown -R 65534:65534 /prometheus"]
volumeMounts:
- name: prometheus-data
mountPath: /prometheus
containers:
- args:
- --config.file=/etc/prometheus/prometheus.yml