Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable Google Cloud Monitoring and Google Cloud Logging instead of
Influxdb for Google Compute Engine deployments.
- Loading branch information
Showing
24 changed files
with
165 additions
and
247 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
cluster/addons/cluster-monitoring/google/heapster-controller.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
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: "gcr.io/google_containers/heapster:v0.11.0" | ||
name: "heapster" | ||
env: | ||
- name: "FLAGS" | ||
value: "--poll_duration=2m --stats_resolution=1m --sink=gcm --sink=gcl" | ||
volumeMounts: | ||
- name: "ssl-certs" | ||
mountPath: "/etc/ssl/certs" | ||
readOnly: true | ||
volumes: | ||
- name: "ssl-certs" | ||
hostPath: | ||
path: "/etc/ssl/certs" | ||
|
This file was deleted.
Oops, something went wrong.
36 changes: 0 additions & 36 deletions
36
cluster/addons/cluster-monitoring/heapster-controller.yaml
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
35 changes: 0 additions & 35 deletions
35
cluster/addons/cluster-monitoring/influxdb-grafana-controller.yaml
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
14 changes: 14 additions & 0 deletions
14
cluster/addons/cluster-monitoring/influxdb/grafana-service.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
apiVersion: "v1beta3" | ||
kind: "Service" | ||
metadata: | ||
labels: | ||
name: "influxGrafana" | ||
kubernetes.io/cluster-service: "true" | ||
name: "monitoring-grafana" | ||
spec: | ||
ports: | ||
- port: 80 | ||
targetPort: 8080 | ||
selector: | ||
name: "influxGrafana" | ||
|
32 changes: 32 additions & 0 deletions
32
cluster/addons/cluster-monitoring/influxdb/heapster-controller.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
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: "gcr.io/google_containers/heapster:v0.11.0" | ||
name: "heapster" | ||
env: | ||
- name: "FLAGS" | ||
value: "--poll_duration=2m --stats_resolution=1m --sink influxdb:http://monitoring-influxdb.default.kubernetes.local:8086" | ||
volumeMounts: | ||
- name: "ssl-certs" | ||
mountPath: "/etc/ssl/certs" | ||
readOnly: true | ||
volumes: | ||
- name: "ssl-certs" | ||
hostPath: | ||
path: "/etc/ssl/certs" | ||
|
35 changes: 35 additions & 0 deletions
35
cluster/addons/cluster-monitoring/influxdb/influxdb-grafana-controller.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
apiVersion: "v1beta3" | ||
kind: "ReplicationController" | ||
metadata: | ||
labels: | ||
name: "influxGrafana" | ||
kubernetes.io/cluster-service: "true" | ||
name: "monitoring-influx-grafana-controller" | ||
spec: | ||
replicas: 1 | ||
selector: | ||
name: "influxGrafana" | ||
template: | ||
metadata: | ||
labels: | ||
name: "influxGrafana" | ||
kubernetes.io/cluster-service: "true" | ||
spec: | ||
containers: | ||
- image: "gcr.io/google_containers/heapster_influxdb:v0.3" | ||
name: "influxdb" | ||
ports: | ||
- containerPort: 8083 | ||
hostPort: 8083 | ||
- containerPort: 8086 | ||
hostPort: 8086 | ||
- image: "gcr.io/google_containers/heapster_grafana:v0.7" | ||
name: "grafana" | ||
env: | ||
- name: "INFLUXDB_EXTERNAL_URL" | ||
value: "/api/v1beta1/proxy/services/monitoring-grafana/db/" | ||
- name: "INFLUXDB_HOST" | ||
value: "monitoring-influxdb" | ||
- name: "INFLUXDB_PORT" | ||
value: "80" | ||
|
18 changes: 18 additions & 0 deletions
18
cluster/addons/cluster-monitoring/influxdb/influxdb-service.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
apiVersion: "v1beta3" | ||
kind: "Service" | ||
metadata: | ||
labels: | ||
name: "influxGrafana" | ||
kubernetes.io/cluster-service: "true" | ||
name: "monitoring-influxdb" | ||
spec: | ||
ports: | ||
- name: "http" | ||
port: 8083 | ||
targetPort: 8083 | ||
- name: "api" | ||
port: 8086 | ||
targetPort: 8086 | ||
selector: | ||
name: "influxGrafana" | ||
|
16 changes: 0 additions & 16 deletions
16
cluster/addons/cluster-monitoring/v1beta3/grafana-service.yaml
This file was deleted.
Oops, something went wrong.
35 changes: 0 additions & 35 deletions
35
cluster/addons/cluster-monitoring/v1beta3/heapster-controller.yaml
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
cluster/addons/cluster-monitoring/v1beta3/heapster-service.yaml
This file was deleted.
Oops, something went wrong.
34 changes: 0 additions & 34 deletions
34
cluster/addons/cluster-monitoring/v1beta3/influxdb-grafana-controller.yaml
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
cluster/addons/cluster-monitoring/v1beta3/influxdb-service.yaml
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
cluster/addons/cluster-monitoring/v1beta3/influxdb-ui-service.yaml
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.