Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[addon] Update heapster to v1.5.0 #2182

Merged
merged 1 commit into from
Nov 16, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion deploy/addons/heapster/grafana-svc.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# Copyright 2017 The Kubernetes Authors All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

apiVersion: v1
kind: Service
metadata:
Expand All @@ -17,4 +31,4 @@ spec:
targetPort: ui
selector:
addonmanager.kubernetes.io/mode: Reconcile
name: influxGrafana
k8s-app: influx-grafana
25 changes: 19 additions & 6 deletions deploy/addons/heapster/heapster-rc.yaml
Original file line number Diff line number Diff line change
@@ -1,31 +1,44 @@
# Copyright 2017 The Kubernetes Authors All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

apiVersion: v1
kind: ReplicationController
metadata:
labels:
addonmanager.kubernetes.io/mode: Reconcile
k8s-app: heapster
name: heapster
kubernetes.io/minikube-addons: heapster
addonmanager.kubernetes.io/mode: Reconcile
name: heapster
namespace: kube-system
spec:
replicas: 1
selector:
addonmanager.kubernetes.io/mode: Reconcile
k8s-app: heapster
addonmanager.kubernetes.io/mode: Reconcile
template:
metadata:
labels:
addonmanager.kubernetes.io/mode: Reconcile
k8s-app: heapster
addonmanager.kubernetes.io/mode: Reconcile
spec:
containers:
- name: heapster
image: gcr.io/google_containers/heapster:v1.4.3
image: gcr.io/google_containers/heapster-amd64:v1.5.0-beta.0
imagePullPolicy: IfNotPresent
command:
- /heapster
- --source=kubernetes
- --source=kubernetes.summary_api:''
- --sink=influxdb:http://monitoring-influxdb:8086
- --metric_resolution=60s
volumeMounts:
Expand Down
15 changes: 14 additions & 1 deletion deploy/addons/heapster/heapster-svc.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# Copyright 2017 The Kubernetes Authors All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

apiVersion: v1
kind: Service
metadata:
Expand All @@ -8,7 +22,6 @@ metadata:
name: heapster
namespace: kube-system
spec:
type: NodePort
ports:
- port: 80
targetPort: 8082
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2016 The Kubernetes Authors All rights reserved.
# Copyright 2017 The Kubernetes Authors All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -15,21 +15,21 @@
apiVersion: v1
kind: ReplicationController
metadata:
name: influxdb-grafana
labels:
name: influxGrafana
addonmanager.kubernetes.io/mode: Reconcile
k8s-app: influx-grafana
kubernetes.io/minikube-addons: heapster
name: influxdb-grafana
addonmanager.kubernetes.io/mode: Reconcile
namespace: kube-system
spec:
replicas: 1
selector:
k8s-app: influx-grafana
addonmanager.kubernetes.io/mode: Reconcile
name: influxGrafana
template:
metadata:
labels:
name: influxGrafana
k8s-app: influx-grafana
addonmanager.kubernetes.io/mode: Reconcile
spec:
containers:
Expand Down
16 changes: 15 additions & 1 deletion deploy/addons/heapster/influxdb-svc.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# Copyright 2017 The Kubernetes Authors All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

apiVersion: v1
kind: Service
metadata:
Expand All @@ -17,4 +31,4 @@ spec:
targetPort: 8086
selector:
addonmanager.kubernetes.io/mode: Reconcile
name: influxGrafana
k8s-app: influx-grafana
2 changes: 1 addition & 1 deletion pkg/minikube/assets/addons.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ var Addons = map[string]*Addon{
}, true, "kube-dns"),
"heapster": NewAddon([]*BinDataAsset{
NewBinDataAsset(
"deploy/addons/heapster/influxGrafana-rc.yaml",
"deploy/addons/heapster/influx-grafana-rc.yaml",
constants.AddonsPath,
"influxGrafana-rc.yaml",
"0640"),
Expand Down