Commit 9330bb9e authored by Sergio Gonzalez Diaz's avatar Sergio Gonzalez Diaz
Browse files

add influx manifest

parent f4d5c898
Loading
Loading
Loading
Loading

manifests/influx.yml

0 → 100644
+63 −0
Original line number Diff line number Diff line
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: influxdb
spec:
  selector:
    matchLabels:
      app: influxdb
  replicas: 1
  template:
    metadata:
      labels:
        app: influxdb
        version: v1
    spec:
      containers:
      - name: influxdb
        image: influxdb:1.8
        ports:
        - containerPort: 8086
        env:
        - name: INFLUXDB_DB
          value: "monitoring"
        - name: INFLUXDB_ADMIN_USER
          value: "teraflow"
        - name: INFLUXDB_ADMIN_PASSWORD
          value: "teraflow"
        - name: INFLUXDB_HTTP_AUTH_ENABLED
          value: "True"
---
apiVersion: v1
kind: Service
metadata:
  name: influxdb
  labels:
    app: influxdb
spec:
  type: ClusterIP
  selector:
    app: influxdb
  ports:
  - name: influxdb
    protocol: TCP
    port: 8086
    targetPort: 8086
---
apiVersion: v1
kind: Service
metadata:
  name: influxdb-public
  labels:
    app: influxdb
spec:
  type: NodePort
  selector:
    app: influxdb
  ports:
  - name: influxdb
    protocol: TCP
    port: 8086
    targetPort: 8086
---
 No newline at end of file