apiVersion: v1 kind: Service metadata: name: output-influx namespace: birbnetes spec: type: ClusterIP ports: - port: 8086 targetPort: 8086 protocol: TCP selector: app: output-influx --- apiVersion: apps/v1 kind: Deployment metadata: name: output-influxdb namespace: birbnetes spec: selector: matchLabels: app: output-influx strategy: type: Recreate replicas: 1 template: metadata: labels: app: output-influx spec: containers: - name: output-influx image: influxdb imagePullPolicy: "IfNotPresent" ports: - containerPort: 8086 envFrom: - configMapRef: name: output-influx-config volumeMounts: - mountPath: /var/lib/influxdb name: output-influx-storage volumes: - name: output-influx-storage persistentVolumeClaim: claimName: output-influx-storage-pv-claim --- kind: PersistentVolumeClaim apiVersion: v1 metadata: name: output-influx-storage-pv-claim labels: app: output-influx namespace: birbnetes spec: storageClassName: longhorn accessModes: - ReadWriteOnce resources: requests: storage: 2Gi --- apiVersion: v1 kind: ConfigMap metadata: name: output-influx-config labels: app: output-influx namespace: birbnetes data: INFLUXDB_DB: output-service INFLUXDB_USER: output-service INFLUXDB_USER_PASSWORD: output-service-supersecret INFLUXDB_READ_USER: grafana INFLUXDB_READ_USER_PASSWORD: CorrectHorseBatteryStaple