diff --git a/cmd/minikube/cmd/config/addons.go b/cmd/minikube/cmd/config/addons.go index e176f7dfc2e6..ddcf9ae07616 100644 --- a/cmd/minikube/cmd/config/addons.go +++ b/cmd/minikube/cmd/config/addons.go @@ -25,7 +25,7 @@ import ( var AddonsCmd = &cobra.Command{ Use: "addons SUBCOMMAND [flags]", Short: "Modify minikube's kubernetes addons", - Long: `addons modifies minikube addons files using subcommands like "minikube addons enable heapster"`, + Long: `addons modifies minikube addons files using subcommands like "minikube addons enable dashboard"`, Run: func(cmd *cobra.Command, args []string) { if err := cmd.Help(); err != nil { glog.Errorf("help: %v", err) diff --git a/cmd/minikube/cmd/config/config.go b/cmd/minikube/cmd/config/config.go index 66779daec9a7..cf410e2e3eb3 100644 --- a/cmd/minikube/cmd/config/config.go +++ b/cmd/minikube/cmd/config/config.go @@ -159,12 +159,6 @@ var settings = []Setting{ validations: []setFn{IsValidAddon}, callbacks: []setFn{EnableOrDisableStorageClasses}, }, - { - name: "heapster", - set: SetBool, - validations: []setFn{IsValidAddon}, - callbacks: []setFn{EnableOrDisableAddon}, - }, { name: "efk", set: SetBool, diff --git a/cmd/minikube/cmd/config/util_test.go b/cmd/minikube/cmd/config/util_test.go index 0f0cf189c83a..b9ae0d2c4843 100644 --- a/cmd/minikube/cmd/config/util_test.go +++ b/cmd/minikube/cmd/config/util_test.go @@ -91,10 +91,6 @@ func TestIsAddonAlreadySet(t *testing.T) { addonName: "ingress", expectErr: "addon ingress was already ", }, - { - addonName: "heapster", - expectErr: "addon heapster was already ", - }, } for _, test := range testCases { diff --git a/deploy/addons/heapster/grafana-svc.yaml.tmpl b/deploy/addons/heapster/grafana-svc.yaml.tmpl deleted file mode 100644 index 61341604ab11..000000000000 --- a/deploy/addons/heapster/grafana-svc.yaml.tmpl +++ /dev/null @@ -1,34 +0,0 @@ -# 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: - labels: - kubernetes.io/name: monitoring-grafana - kubernetes.io/minikube-addons: heapster - kubernetes.io/minikube-addons-endpoint: heapster - addonmanager.kubernetes.io/mode: Reconcile - name: monitoring-grafana - namespace: kube-system -spec: - type: NodePort - ports: - - port: 80 - nodePort: 30002 - protocol: TCP - targetPort: ui - selector: - addonmanager.kubernetes.io/mode: Reconcile - k8s-app: influx-grafana diff --git a/deploy/addons/heapster/heapster-rc.yaml.tmpl b/deploy/addons/heapster/heapster-rc.yaml.tmpl deleted file mode 100644 index 3eeb3cc2029e..000000000000 --- a/deploy/addons/heapster/heapster-rc.yaml.tmpl +++ /dev/null @@ -1,54 +0,0 @@ -# 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: - k8s-app: heapster - kubernetes.io/minikube-addons: heapster - addonmanager.kubernetes.io/mode: Reconcile - version: v1.5.3 - name: heapster - namespace: kube-system -spec: - replicas: 1 - selector: - k8s-app: heapster - version: v1.5.3 - addonmanager.kubernetes.io/mode: Reconcile - template: - metadata: - labels: - k8s-app: heapster - version: v1.5.3 - addonmanager.kubernetes.io/mode: Reconcile - spec: - containers: - - name: heapster - image: {{default "k8s.gcr.io" .ImageRepository}}/heapster-{{.Arch}}:v1.5.3 - imagePullPolicy: IfNotPresent - command: - - /heapster - - --source=kubernetes.summary_api:'' - - --sink=influxdb:http://monitoring-influxdb:8086 - - --metric_resolution=60s - volumeMounts: - - name: ssl-certs - mountPath: /etc/ssl/certs - readOnly: true - volumes: - - name: ssl-certs - hostPath: - path: /etc/ssl/certs diff --git a/deploy/addons/heapster/heapster-svc.yaml.tmpl b/deploy/addons/heapster/heapster-svc.yaml.tmpl deleted file mode 100644 index 9322781cfbae..000000000000 --- a/deploy/addons/heapster/heapster-svc.yaml.tmpl +++ /dev/null @@ -1,31 +0,0 @@ -# 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: - labels: - kubernetes.io/name: heapster - kubernetes.io/minikube-addons: heapster - addonmanager.kubernetes.io/mode: Reconcile - kubernetes.io/minikube-addons-endpoint: heapster - name: heapster - namespace: kube-system -spec: - ports: - - port: 80 - targetPort: 8082 - selector: - addonmanager.kubernetes.io/mode: Reconcile - k8s-app: heapster diff --git a/deploy/addons/heapster/influx-grafana-rc.yaml.tmpl b/deploy/addons/heapster/influx-grafana-rc.yaml.tmpl deleted file mode 100644 index bfd2bcdd1bb3..000000000000 --- a/deploy/addons/heapster/influx-grafana-rc.yaml.tmpl +++ /dev/null @@ -1,75 +0,0 @@ -# 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: - name: influxdb-grafana - labels: - k8s-app: influx-grafana - kubernetes.io/minikube-addons: heapster - addonmanager.kubernetes.io/mode: Reconcile - namespace: kube-system -spec: - replicas: 1 - selector: - k8s-app: influx-grafana - addonmanager.kubernetes.io/mode: Reconcile - template: - metadata: - labels: - k8s-app: influx-grafana - addonmanager.kubernetes.io/mode: Reconcile - spec: - containers: - - name: influxdb - image: {{default "k8s.gcr.io" .ImageRepository}}/heapster-influxdb-{{.Arch}}:v1.3.3 - imagePullPolicy: IfNotPresent - ports: - - name: http - containerPort: 8083 - - name: api - containerPort: 8086 - volumeMounts: - - mountPath: /data - name: influxdb-storage - - name: grafana - image: {{default "k8s.gcr.io" .ImageRepository}}/heapster-grafana-{{.Arch}}:v4.4.3 - imagePullPolicy: IfNotPresent - env: - - name: INFLUXDB_SERVICE_URL - value: http://localhost:8086 - # The following env variables are required to make Grafana accessible via - # the kubernetes api-server proxy. On production clusters, we recommend - # removing these env variables, setup auth for grafana, and expose the grafana - # service using a LoadBalancer or a public IP. - - name: GF_AUTH_BASIC_ENABLED - value: "false" - - name: GF_AUTH_ANONYMOUS_ENABLED - value: "true" - - name: GF_AUTH_ANONYMOUS_ORG_ROLE - value: Admin - - name: GF_SERVER_ROOT_URL - value: / - ports: - - name: ui - containerPort: 3000 - volumeMounts: - - mountPath: /var - name: grafana-storage - volumes: - - name: influxdb-storage - emptyDir: {} - - name: grafana-storage - emptyDir: {} diff --git a/deploy/addons/heapster/influxdb-svc.yaml.tmpl b/deploy/addons/heapster/influxdb-svc.yaml.tmpl deleted file mode 100644 index 701bfee282c5..000000000000 --- a/deploy/addons/heapster/influxdb-svc.yaml.tmpl +++ /dev/null @@ -1,34 +0,0 @@ -# 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: - labels: - kubernetes.io/name: monitoring-influxdb - kubernetes.io/minikube-addons: heapster - addonmanager.kubernetes.io/mode: Reconcile - name: monitoring-influxdb - namespace: kube-system -spec: - ports: - - name: http - port: 8083 - targetPort: 8083 - - name: api - port: 8086 - targetPort: 8086 - selector: - addonmanager.kubernetes.io/mode: Reconcile - k8s-app: influx-grafana diff --git a/go.sum b/go.sum index a835ad1629c6..5a11f0546679 100644 --- a/go.sum +++ b/go.sum @@ -649,7 +649,6 @@ grpc.go4.org v0.0.0-20170609214715-11d0a25b4919/go.mod h1:77eQGdRu53HpSqPFJFmuJd honnef.co/go/tools v0.0.0-20180728063816-88497007e858/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= k8s.io/gengo v0.0.0-20190116091435-f8a0810f38af/go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8IAqLxYwwyPxAX1Pzy0ii0= -k8s.io/heapster v1.2.0-beta.1/go.mod h1:h1uhptVXMwC8xtZBYsPXKVi8fpdlYkTs6k949KozGrM= k8s.io/klog v0.3.1 h1:RVgyDHY/kFKtLqh67NvEWIgkMneNoIrdkN0CxDSQc68= k8s.io/klog v0.3.1/go.mod h1:Gq+BEi5rUBO/HRz0bTSXDUcqjScdoY3a9IHpCEIOOfk= k8s.io/kube-openapi v0.0.0-20190228160746-b3a7cee44a30 h1:TRb4wNWoBVrH9plmkp2q86FIDppkbrEXdXlxU3a3BMI= diff --git a/site/content/en/docs/Reference/Commands/addons.md b/site/content/en/docs/Reference/Commands/addons.md index d15f38173bbe..3331fbd10027 100644 --- a/site/content/en/docs/Reference/Commands/addons.md +++ b/site/content/en/docs/Reference/Commands/addons.md @@ -4,7 +4,7 @@ linkTitle: "addons" weight: 1 date: 2019-08-01 description: > - Modifies minikube addons files using subcommands like "minikube addons enable heapster" + Modifies minikube addons files using subcommands like "minikube addons enable dashboard" --- ## Overview diff --git a/site/content/en/docs/Reference/Commands/config.md b/site/content/en/docs/Reference/Commands/config.md index 7dd514c8c113..12f70c52bf8d 100644 --- a/site/content/en/docs/Reference/Commands/config.md +++ b/site/content/en/docs/Reference/Commands/config.md @@ -36,7 +36,6 @@ Configurable fields: * dashboard * addon-manager * default-storageclass - * heapster * efk * ingress * registry diff --git a/site/content/en/docs/Reference/Configuration/minikube.md b/site/content/en/docs/Reference/Configuration/minikube.md index 9b8a6f6d3901..ce6a3cf227c0 100644 --- a/site/content/en/docs/Reference/Configuration/minikube.md +++ b/site/content/en/docs/Reference/Configuration/minikube.md @@ -77,7 +77,6 @@ Configurable fields: * dashboard * addon-manager * default-storageclass - * heapster * efk * ingress * registry diff --git a/site/content/en/docs/Tasks/addons.md b/site/content/en/docs/Tasks/addons.md index b00ee229d8f1..6e980f94f31f 100644 --- a/site/content/en/docs/Tasks/addons.md +++ b/site/content/en/docs/Tasks/addons.md @@ -11,7 +11,6 @@ minikube has a set of built-in addons that, when enabled, can be used within Kub ## Available addons * [Kubernetes Dashboard](https://github.com/kubernetes/kubernetes/tree/master/cluster/addons/dashboard) -* [Heapster](https://github.com/kubernetes/heapster): [Troubleshooting Guide](https://github.com/kubernetes/heapster/blob/master/docs/influxdb.md) Note:You will need to login to Grafana as admin/admin in order to access the console * [EFK](https://github.com/kubernetes/kubernetes/tree/master/cluster/addons/fluentd-elasticsearch) * [Registry](https://github.com/kubernetes/minikube/tree/master/deploy/addons/registry) * [Registry Credentials](https://github.com/upmc-enterprises/registry-creds) @@ -37,7 +36,6 @@ Example output: - freshpod: disabled - addon-manager: enabled - dashboard: enabled -- heapster: disabled - efk: disabled - ingress: disabled - default-storageclass: enabled