Merge pull request #3743 from vishh/heapster

Update monitoring components to the latest released versions.
pull/6/head
Dawn Chen 2015-01-23 11:10:14 -08:00
commit b4f9d2ae9b
6 changed files with 23 additions and 5 deletions

View File

@ -1,7 +1,7 @@
apiVersion: "v1beta1" apiVersion: "v1beta1"
kind: "Service" kind: "Service"
id: "monitoring-grafana" id: "monitoring-grafana"
port: 8087 port: 80
containerPort: 80 containerPort: 80
selector: selector:
name: "influxGrafana" name: "influxGrafana"

View File

@ -12,7 +12,11 @@ desiredState:
id: "monitoring-heapsterController" id: "monitoring-heapsterController"
containers: containers:
- name: "heapster" - name: "heapster"
image: "kubernetes/heapster:v0.5" image: "kubernetes/heapster:v0.6"
env:
- name: "INFLUXDB_HOST"
value: "monitoring-influxdb"
labels: labels:
name: "heapster" name: "heapster"
uses: "monitoring-influxdb" uses: "monitoring-influxdb"

View File

@ -0,0 +1,7 @@
apiVersion: "v1beta1"
kind: "Service"
id: "monitoring-heapster"
port: 80
containerPort: 8082
selector:
name: "heapster"

View File

@ -14,14 +14,14 @@ desiredState:
id: "monitoring-influxGrafanaController" id: "monitoring-influxGrafanaController"
containers: containers:
- name: "influxdb" - name: "influxdb"
image: "kubernetes/heapster_influxdb:v0.2" image: "kubernetes/heapster_influxdb:v0.3"
ports: ports:
- containerPort: 8083 - containerPort: 8083
hostPort: 8083 hostPort: 8083
- containerPort: 8086 - containerPort: 8086
hostPort: 8086 hostPort: 8086
- name: "grafana" - name: "grafana"
image: "kubernetes/heapster_grafana:v0.2" image: "kubernetes/heapster_grafana:v0.3"
ports: ports:
- containerPort: 80 - containerPort: 80
hostPort: 80 hostPort: 80

View File

@ -1,7 +1,7 @@
apiVersion: "v1beta1" apiVersion: "v1beta1"
kind: "Service" kind: "Service"
id: "monitoring-influxdb" id: "monitoring-influxdb"
port: 8085 port: 80
containerPort: 8086 containerPort: 8086
selector: selector:
name: "influxGrafana" name: "influxGrafana"

View File

@ -51,6 +51,10 @@ function setup {
function cleanup { function cleanup {
"${KUBECFG}" resize monitoring-influxGrafanaController 0 &> /dev/null || true "${KUBECFG}" resize monitoring-influxGrafanaController 0 &> /dev/null || true
"${KUBECFG}" resize monitoring-heapsterController 0 &> /dev/null || true "${KUBECFG}" resize monitoring-heapsterController 0 &> /dev/null || true
while kubectl.sh get pods -l "name=influxGrafana" -o template -t {{range.items}}{{.id}}:{{end}} | grep -c . &> /dev/null \
|| kubectl.sh get pods -l "name=heapster" -o template -t {{range.items}}{{.id}}:{{end}} | grep -c . &> /dev/null; do
sleep 2
done
"${KUBECTL}" delete -f "${MONITORING}/" &> /dev/null || true "${KUBECTL}" delete -f "${MONITORING}/" &> /dev/null || true
# This only has work to do on gce and gke # This only has work to do on gce and gke
@ -104,6 +108,9 @@ function wait-for-pods {
trap cleanup EXIT trap cleanup EXIT
# Remove any pre-existing monitoring services.
cleanup
# Start monitoring pods and services. # Start monitoring pods and services.
setup setup