apiVersion: apps/v1 kind: Deployment metadata: namespace: influx labels: app: influxdb name: influxdb spec: replicas: 1 selector: matchLabels: app: influxdb template: metadata: labels: app: influxdb spec: containers: - name: influxdb image: docker.io/influxdb:2.3.0 volumeMounts: - mountPath: /var/lib/influxdb2 name: var-lib-influxdb ports: - containerPort: 8086 volumes: - name: var-lib-influxdb persistentVolumeClaim: claimName: influxdb-pvc