Skip to content
This repository has been archived by the owner on Nov 1, 2021. It is now read-only.

Doesn't work with statefulsets #4

Open
daudn opened this issue May 31, 2019 · 1 comment
Open

Doesn't work with statefulsets #4

daudn opened this issue May 31, 2019 · 1 comment

Comments

@daudn
Copy link

daudn commented May 31, 2019

Why does this not work with statefulsets? I editted autoscale.sh to "statefulsets" instead of "deployments" but it doesn't seem to work, even though the command work outside of autoscale.sh

I simple keep getting:
Fri May 31 14:33:49 UTC 2019 -- Failed to get current pods number for [statefulset-name]

@emalihin
Copy link

Apologies for the late reply @daudn,

The reason you're getting "Failed to get current pods number for [statefulset-name]" is because deployment is currently hardcoded, and your cluster doesn't have [statefulset-name] deployment

You could easily adapt this script by finding all kubectl commands that currently manipulate deployment, and replace deployment with statefulset.

I had a brief look and think that kubectl describe statefulset and kubectl scale statefulset should both work out of the box.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants