diff --git a/cmd/minikube/cmd/config/enable.go b/cmd/minikube/cmd/config/enable.go index e3d28969ba80..d3b7956250c9 100644 --- a/cmd/minikube/cmd/config/enable.go +++ b/cmd/minikube/cmd/config/enable.go @@ -41,6 +41,15 @@ var addonsEnableCmd = &cobra.Command{ if err != nil { exit.WithError("enable failed", err) } + if addon == "dashboard" { + out.T(out.Waiting, "enabling metrics-server addon along with dashboard") + err = addons.SetAndSave(ClusterFlagValue(), "metrics-server", "true") + if err != nil { + exit.WithError("enable failed", err) + } + out.T(out.AddonEnable, "The 'metrics-server' addon is enabled") + } + out.T(out.AddonEnable, "The '{{.addonName}}' addon is enabled", out.V{"addonName": addon}) }, }