influxdb+2

This commit is contained in:
zhangkun9038@dingtalk.com 2026-02-17 18:53:38 +08:00
parent 1b587cef6b
commit 8916c27a64

View File

@ -15,6 +15,15 @@ spec:
labels:
app: influxdb
spec:
initContainers:
- name: copy-config
image: busybox
command: ['sh', '-c', 'cp -r /config/* /etc/influxdb2/']
volumeMounts:
- name: influxdb-config-volume
mountPath: /config
- name: influxdb-config-writable
mountPath: /etc/influxdb2
containers:
- name: influxdb
image: influxdb:2.7-alpine
@ -31,7 +40,7 @@ spec:
volumeMounts:
- name: influxdb-data-volume
mountPath: /var/lib/influxdb
- name: influxdb-config-volume
- name: influxdb-config-writable
mountPath: /etc/influxdb2
- name: timezone
mountPath: /etc/localtime
@ -43,6 +52,8 @@ spec:
- name: influxdb-config-volume
configMap:
name: influxdb-config
- name: influxdb-config-writable
emptyDir: {}
- name: timezone
hostPath:
path: /usr/share/zoneinfo/Asia/Shanghai