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

helm install failed if k8s doesn't have metrics api implementation #6439

Closed
neverseek opened this issue Sep 17, 2019 · 3 comments
Closed

helm install failed if k8s doesn't have metrics api implementation #6439

neverseek opened this issue Sep 17, 2019 · 3 comments
Labels
bug Categorizes issue or PR as related to a bug. v3.x Issues and Pull Requests related to the major version v3

Comments

@neverseek
Copy link

Output of helm version:
version.BuildInfo{Version:"v3.0.0-beta.3", GitCommit:"5cb923eecbe80d1ad76399aee234717c11931d9a", GitTreeState:"clean", GoVersion:"go1.12.9"}

Output of kubectl version:
Client Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.2", GitCommit:"66049e3b21efe110454d67df4fa62b08ea79a19b", GitTreeState:"clean", BuildDate:"2019-05-16T16:23:09Z", GoVersion:"go1.12.5", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.2", GitCommit:"66049e3b21efe110454d67df4fa62b08ea79a19b", GitTreeState:"clean", BuildDate:"2019-05-16T16:14:56Z", GoVersion:"go1.12.5", Compiler:"gc", Platform:"linux/amd64"}

Error: could not get apiVersions from Kubernetes: unable to retrieve the complete list of server APIs: metrics.k8s.io/v1beta1: the server is currently unable to handle the request
helm.go:81: [debug] unable to retrieve the complete list of server APIs: metrics.k8s.io/v1beta1: the server is currently unable to handle the request
could not get apiVersions from Kubernetes
helm.sh/helm/pkg/action.(*Configuration).getCapabilities
/go/src/helm.sh/helm/pkg/action/action.go:100
helm.sh/helm/pkg/action.(*Install).Run
/go/src/helm.sh/helm/pkg/action/install.go:185
main.runInstall
/go/src/helm.sh/helm/cmd/helm/install.go:219
main.newInstallCmd.func1
/go/src/helm.sh/helm/cmd/helm/install.go:109
helm.sh/helm/vendor/github.com/spf13/cobra.(*Command).execute
/go/src/helm.sh/helm/vendor/github.com/spf13/cobra/command.go:762
helm.sh/helm/vendor/github.com/spf13/cobra.(*Command).ExecuteC
/go/src/helm.sh/helm/vendor/github.com/spf13/cobra/command.go:850
helm.sh/helm/vendor/github.com/spf13/cobra.(*Command).Execute
/go/src/helm.sh/helm/vendor/github.com/spf13/cobra/command.go:800
main.main
/go/src/helm.sh/helm/cmd/helm/helm.go:80
runtime.main
/usr/local/go/src/runtime/proc.go:200
runtime.goexit
/usr/local/go/src/runtime/asm_amd64.s:1337

@neverseek
Copy link
Author

Actually, I was installing stable/prometheus-adapter with helm3 to give k8s a metrics api implementation.

@neverseek neverseek changed the title helm3 install failed if k8s doesn't have metrics api implementation helm install failed if k8s doesn't have metrics api implementation Sep 17, 2019
@bacongobbler bacongobbler added v3.x Issues and Pull Requests related to the major version v3 bug Categorizes issue or PR as related to a bug. labels Sep 17, 2019
@djpicard
Copy link

djpicard commented Oct 4, 2019

I fixed those issues on my cluster by running this:
( GKE 1.14.3-gke.11 )

kubectl create clusterrolebinding cluster-admin-binding \
    --clusterrole cluster-admin \
    --user "$(gcloud config get-value account)"
kubectl create -f https://raw.githubusercontent.com/GoogleCloudPlatform/k8s-stackdriver/master/custom-metrics-stackdriver-adapter/deploy/production/adapter.yaml

@bacongobbler
Copy link
Member

duplicate of #6361.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Categorizes issue or PR as related to a bug. v3.x Issues and Pull Requests related to the major version v3
Projects
None yet
Development

No branches or pull requests

3 participants