bala n
bala n

Reputation: 39

apis/metrics.k8s.io/v1beta1/nodes Not found

I have created the kubernetes cluster with the version 1.19.11. Here, the metric-server installed by default. Now, I had hit the below queries,

kubectl get --raw "/apis/metrics.k8s.io/v1beta1/nodes"

it return "Error from server (NotFound): the server could not find the requested resource". So, Please help me to resolve the issues?.

Upvotes: 1

Views: 1285

Answers (1)

yucer
yucer

Reputation: 5049

If you are using minikube, try starting with the addon enabled --addons="metrics-server". For example:

minikube start \
    --kubernetes-version=v1.25.2 \
    --addons="dashboard" \
    --addons="metrics-server" \
    --addons="ingress" \
    --addons="ingress-dns" \
    --feature-gates=EphemeralContainers=true

Upvotes: 1

Related Questions