apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app: influxdb
  name: influxdb
spec:
  replicas: 1
  selector:
    matchLabels:
      app: influxdb
  template:
    metadata:
      labels:
        app: influxdb
    spec:
      containers:
      - env:
        - name: INFLUXDB_ADMIN_PASSWORD
          value: admin
        - name: INFLUXDB_ADMIN_USER
          value: admin
        - name: INFLUXDB_DB
          value: galaxy
        - name: INFLUXDB_REPORTING_DISABLED
          value: "true"
        - name: INFLUXDB_WRITE_USER
          value: galaxy
        - name: INFLUXDB_WRITE_USER_PASSWORD
          value: galaxy
        image: influxdb:latest
        imagePullPolicy: "Always"
        name: influxdb
        resources: {}
      restartPolicy: Always