Skip to content

Commit

Permalink
v1beta3 api json for grafana example
Browse files Browse the repository at this point in the history
  • Loading branch information
sub-mod committed Feb 26, 2015
1 parent e3af23e commit fc21144
Show file tree
Hide file tree
Showing 5 changed files with 104 additions and 0 deletions.
13 changes: 13 additions & 0 deletions cluster/addons/cluster-monitoring/v1beta3/grafana-service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: v1beta3
kind: Service
metadata:
labels:
name: influxGrafana
name: monitoring-grafana
spec:
containerPort: 80
port: 80
selector:
name: influxGrafana


27 changes: 27 additions & 0 deletions cluster/addons/cluster-monitoring/v1beta3/heapster-controller.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
apiVersion: v1beta3
kind: ReplicationController
metadata:
labels:
name: heapster
kubernetes.io/cluster-service: "true"
name: monitoring-heapster-controller
spec:
replicas: 1
selector:
name: heapster
template:
metadata:
labels:
name: heapster
kubernetes.io/cluster-service: "true"
spec:
containers:
- image: kubernetes/heapster:v0.8
name: heapster
env:
- name: "INFLUXDB_HOST"
value: "monitoring-influxdb"
ports:
- containerPort: 5701
name: heapster

13 changes: 13 additions & 0 deletions cluster/addons/cluster-monitoring/v1beta3/heapster-service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: v1beta3
kind: Service
metadata:
labels:
name: heapster
name: monitoring-heapster
spec:
containerPort: 8082
port: 80
selector:
name: heapster


Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
apiVersion: v1beta3
kind: ReplicationController
metadata:
labels:
name: influxGrafana
kubernetes.io/cluster-service: "true"
name: monitoring-influx-grafana
spec:
replicas: 1
selector:
name: influxGrafana
template:
metadata:
labels:
name: influxGrafana
kubernetes.io/cluster-service: "true"
spec:
containers:
- image: kubernetes/heapster_influxdb:v0.3
name: influxdb
ports:
- containerPort: 8083
hostPort: 8083
- containerPort: 8086
hostPort: 8086
- name: grafana
image: kubernetes/heapster_grafana:v0.4
env:
- name: "HTTP_USER"
value: "admin"
- name: "HTTP_PASS"
value: "**None**"
- name: "INFLUXDB_PROTO"
value: "https"
- name: "INFLUXDB_HOST"
value: '"+window.location.hostname+"/api/v1beta1/proxy/services/monitoring-influxdb'
- name: "INFLUXDB_PORT"
value: ""
13 changes: 13 additions & 0 deletions cluster/addons/cluster-monitoring/v1beta3/influxdb-service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: v1beta3
kind: Service
metadata:
labels:
name: influxGrafana
name: monitoring-influxdb
spec:
containerPort: 8086
port: 80
selector:
name: influxGrafana


0 comments on commit fc21144

Please sign in to comment.