apiVersion: apps/v1
kind: Deployment
metadata:
  name: influxdb-jmeter
  labels:
    app: influxdb-jmeter
spec:
  replicas: 1
  selector:
    matchLabels:
      app: influxdb-jmeter
  template:
    metadata:
      labels:
        app: influxdb-jmeter
    spec:
      containers:
        - image: influxdb:1.8.10
          imagePullPolicy: IfNotPresent
          name: influxdb
          env:
            - name: INFLUXDB_DB
              value: jmeter
          volumeMounts:
            - name: config-volume
              mountPath: /etc/influxdb
          ports:
            - containerPort: 8083
              name: influx
            - containerPort: 8086
              name: api
            - containerPort: 2003
              name: graphite
      volumes:
        - name: config-volume
          configMap:
            name: influxdb-config
