Can't Scale Down Kubernetes Deployment (Overscaled)

8/5/2018

I've got kubernetes running via docker (Running linux containers on a windows host). I created a deployment (1 pod with 1 container, simple hello world node app) scaled to 3 replicas.

Scaled to 3 just fine, cool, lets scale to 20, nice, still fine. So I decided to take it to the extreme to see what happens with 200 replicas (Now I know).

CPU is now 80%, the dashboard wont run, and I can't even issue a powershell command to scale the deployment back down.

I've tried restarting docker and seeing if I can sneak in a powershell command as soon as docker and kubernetes are available, and it doesn't seem to be taking.

Are the kubernetes deployment configurations on disk somewhere so I can modify them when kubernetes is down so it definitely picks up the new settings?

If not, is there any other way I can scale down the deployment?

Thanks

-- Steviebob
docker
kubectl
kubernetes

1 Answer

8/5/2018

https://github.com/docker/for-mac/issues/2536 is a useful thread on this as it gives tips for getting logs, increasing resources or if necessary doing a factory reset (as discussed in the comments)

-- Ryan Dawson
Source: StackOverflow