summaryrefslogtreecommitdiffstats
path: root/roles/openshift_cluster_metrics/files/cluster-metrics/influxdb.yaml
blob: 6f67c3d7c1f1b58474cdb45a13900fcd7633b9f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
apiVersion: "v1"
kind: "List"
items:
  -
    apiVersion: "v1"
    kind: "Service"
    metadata:
      labels:
        provider: "fabric8"
        component: "influxdb-monitoring"
      name: "influxdb-monitoring"
    spec:
      ports:
        -
          port: 8086
          targetPort: "http"
      selector:
        provider: "fabric8"
        component: "influxdb-monitoring"
  -
    apiVersion: "v1"
    kind: "ReplicationController"
    metadata:
      labels:
        provider: "fabric8"
        component: "influxdb-monitoring"
      name: "influxdb-monitoring"
    spec:
      replicas: 1
      selector:
        provider: "fabric8"
        component: "influxdb-monitoring"
      template:
        metadata:
          labels:
            provider: "fabric8"
            component: "influxdb-monitoring"
        spec:
          containers:
            -
              env:
                -
                  name: "PRE_CREATE_DB"
                  value: "k8s;grafana"
              image: "fabric8/influxdb:0.8.8"
              name: "influxdb"
              ports:
                -
                  containerPort: 8090
                  name: "raft"
                -
                  containerPort: 8099
                  name: "protobuf"
                -
                  containerPort: 8083
                  name: "admin"
                -
                  containerPort: 8086
                  name: "http"
              volumeMounts:
                -
                  mountPath: "/data"
                  name: "influxdb-data"
          volumes:
            -
              emptyDir:
              name: "influxdb-data"