question:
Having trouble deploying pods
# helm install chart.tgz
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
Solution:
Find the offending apiservice and delete it.
//View the problematic apiservice
# kubectl get apiservice
NAME SERVICE AVAILABLE
v1. Local True
v1.admissionregistration.k8s.io Local True
v1.apiextensions.k8s.io Local True
v1.apps Local True
v1.authentication.k8s.io Local True
v1.authorization.k8s.io Local True
v1.autoscaling Local True
v1.batch Local True
v1.coordination.k8s.io Local True
v1.crd.projectcalico.org Local True
v1.networking.k8s.io Local True
v1.rbac.authorization.k8s.io Local True
v1.scheduling.k8s.io Local True
v1.storage.k8s.io Local True
v1beta1.admissionregistration.k8s.io Local True
v1beta1.apiextensions.k8s.io Local True
v1beta1.authentication.k8s.io Local True
v1beta1.authorization.k8s.io Local True
v1beta1.batch Local True
v1beta1.certificates.k8s.io Local True
v1beta1.coordination.k8s.io Local True
v1beta1.discovery.k8s.io Local True
v1beta1.events.k8s.io Local True
v1beta1.extensions Local True
v1beta1.metrics.k8s.io default/unm-k8s-metrics-server False (FailedDiscoveryCheck) <<< 删除
v1beta1.networking.k8s.io Local True
v1beta1.node.k8s.io Local True
v1beta1.policy Local True
v1beta1.rbac.authorization.k8s.io Local True
v1beta1.scheduling.k8s.io Local True
v1beta1.storage.k8s.io Local True
v2beta1.autoscaling Local True
v2beta2.autoscaling Local True
//Delete the problematic apiservice
# kubectl delete apiservice v1beta1.metrics.k8s.io
apiservice.apiregistration.k8s.io "v1beta1.metrics.k8s.io" deleted
Read More:
- [Solved] Kubernetes ingress-srv. error: failed calling webhook “validate.nginx.ingress.kubernetes.io”
- kubernetes Error from server (AlreadyExists): error when creating “kubernetes-dashboard.yaml”: serv
- k8s kubernetes ingress error: endpoints “default-http-backend“ not found
- [Solved] Internal error occurred: failed calling webhook “validate.nginx.ingress.kubernetes.io”:
- Kubernetes create secret Error: Error from server (InternalError): Internal error occurred…
- Error reporting and resolution of kubernetes installation
- [Solved] Kubernetes Error: failed to list *core.Secret: unable to transform key
- Kubernetes reported an error: matchexpressions: [] v1. Labelselector requirement (NIL)}: field is immutable
- [Solved] kubectl error: sou-bash: _get_comp_words_by_ref: command not found
- [Solved] jedis Error: Could not get a resource from the pool
- Docker Build Error: Failed to get D-Bus connection: Operation not permitted [Solved]
- [Solved] Go Get Download Dependency Error: is not using a known version control system
- [Solved] K8s cluster build error: error: kubectl get csr No resources found.
- Kubernetes Error: Error in configuration: unable to read client-cert* unable to read client-key*
- [Solved] kubectl top pod error: error: Metrics API not available
- Docker Error response from daemon: Get https://registry-1.docker.io/v2/: x509: certificate has expired or is not yet valid
- How to Solve npm Error: unable to get local issuer certificate
- Android Phone Record Screen Error: failed to get surface
- Crawler: crawls news websites with cookies to get web content
- [Solved] K8s Initialize Error: failed with error: Get “http://localhost:10248/healthz“