From 52a5f64b8307df18308edefc4cdec1efb7f1eba0 Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Tue, 17 Feb 2026 18:59:42 +0800 Subject: [PATCH] influxdb+4 --- influxdb/influxdb-deployment.yaml | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/influxdb/influxdb-deployment.yaml b/influxdb/influxdb-deployment.yaml index 5f41570..ca26228 100644 --- a/influxdb/influxdb-deployment.yaml +++ b/influxdb/influxdb-deployment.yaml @@ -15,15 +15,6 @@ 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 @@ -40,20 +31,15 @@ spec: volumeMounts: - name: influxdb-data-volume mountPath: /var/lib/influxdb - - name: influxdb-config-writable - mountPath: /etc/influxdb2 - name: timezone mountPath: /etc/localtime readOnly: true + command: ["influxd"] + args: ["--bolt-path=/var/lib/influxdb/influxd.bolt", "--engine-path=/var/lib/influxdb/engine"] volumes: - name: influxdb-data-volume persistentVolumeClaim: claimName: influxdb-data-pvc - - name: influxdb-config-volume - configMap: - name: influxdb-config - - name: influxdb-config-writable - emptyDir: {} - name: timezone hostPath: path: /usr/share/zoneinfo/Asia/Shanghai \ No newline at end of file