apiVersion: apps/v1
kind: Deployment
metadata:
  name: influxdb-deployment
spec:
  replicas: 1
  selector:
    matchLabels:
      app: influxdbs
  template:
    metadata:
      labels:
        app: influxdbs
    spec:
      containers:
        - name: influxdb
          image: influxdb:service
          ports:
            - containerPort: 8086
          volumeMounts:
          - name: data
            mountPath: /var/lib/influxdb
      volumes:
        - name: data
          persistentVolumeClaim:
              claimName: influxdb-pv-claim
