Reputation: 39
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
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