cert-manager: unable to retrieve the complete list of server APIs: webhook.cert-manager.io/v1beta1
What I ran
kubectl apply -f https://raw.githubusercontent.com/jetstack/cert-manager/release-0.11/deploy/manifests/00-crds.yaml --validate=false -n kube-system
helm dep update charts/cert-manager/cert-manager/
helm install cert-manager charts/cert-manager/cert-manager --set ingressShim.extraArgs='{--default-issuer-name=ca-issuer,--default-issuer-kind=ClusterIssuer}' --set ingressShim.enabled=false --namespace kube-system
kubectl apply -f charts/cert-manager/pre-reqs/issuer.yaml -n kube-system
Describe the bug:
helm install cert-manager charts/cert-manager/cert-manager --set ingressShim.extraArgs='{--default-issuer-name=ca-issuer,--default-issuer-kind=ClusterIssuer}' --set ingressShim.enabled=false --namespace kube-system
Error: could not get apiVersions from Kubernetes: unable to retrieve the complete list of server APIs: webhook.cert-manager.io/v1beta1: the server is currently unable to handle the request```
**Expected behaviour**:
I would expect the resource to work out of the chart?
**Steps to reproduce the bug**:
See above.
**Anything else we need to know?**:
**Environment details:**:
- Kubernetes version (e.g. v1.10.2): head
- Cloud-provider/provisioner (e.g. GKE, kops AWS, etc): GKE
- cert-manager version (e.g. v0.4.0): 0.11.0
- Install method (e.g. helm or static manifests): helm (v3.0.0-beta.4)
/kind bug
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 15
- Comments: 21 (1 by maintainers)
My problem was that I was applying the full cert-manager.yaml before running the helm chart, not the CRDs-only version. Most of you appear not to have made this mistake, but I’m posting this here because this is the first result I hit when trying to find answers.
“Good” one for helm: https://raw.githubusercontent.com/jetstack/cert-manager/v0.11.0/deploy/manifests/00-crds.yaml
What worked for me:
Same issue here:
I was able to solve the problem by deleting resource
kubectl delete apiservices v1beta1.webhook.cert-manager.io
After I also performed full clean up of previously installed cert-manager by looping through all the resources and looking for resources with my release name.
After that everything seems to work fine.
Same issue while installing
cert-manager 0.11.0
withhelm v3.0.0-rc.3
:I also had to remove other global objects before the uninstall was complete, and I could reinstall:
I’m seeing this on a brand-new cluster setup (no previously installed CRDs):
helm version:
@imkane :
I am having the same issue as @pavdmyt with
helm v3.0.0-rc.3
. Anyone got any ideas?https://stackoverflow.com/questions/62442679/could-not-get-apiversions-from-kubernetes-unable-to-retrieve-the-complete-list