Kubernetes Deep Dive Room

Sign Up Free or Log In to participate!

the hpa demo yml file is not creating a node

When i run

kubectl apply -f hpademo.yml

and then

kubectl get hpa –namespace acg-ns

i just get back

acg-hpa Deployment/acg-web /50% 1 10 1 18m

(as you can see i let it run for a long time)

I also noticed that

kubectl get nodes

just returned

NAME STATUS ROLES AGE VERSION

docker-desktop Ready control-plane,master 5h20m v1.21.1

there was no node for the pod.

so i never see a %cpu other than unknown and never see any replicas created when i run the stresser.

1 Answers

Docker desktop is a single node cluster, and the hpa is supposed to launch more nodes, so I think it only works with cloud clusters.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?