apiVersion: apps/v1
kind: Deployment
metadata:
  name: influxdb
  labels:
    app: influxdb
spec:
  replicas: 1
  selector:
    matchLabels:
      app: influxdb
  template:
    metadata:
      labels:
        app: influxdb
    spec:
      containers:
        - name: influxdb
          image: influxdb:2.1
          resources: {}
          volumeMounts:
            - mountPath: /var/lib/influxdb
              name: influxdb
      restartPolicy: Always
      volumes:
        - name: influxdb
          hostPath:
            path: /var/k8s/volumes/default/influxdb
