K9s: Feature Request: Quick Scale

Created on 4 Feb 2019  路  5Comments  路  Source: derailed/k9s

I would love to see a quick scale feature, where you can scale a deployment without having to edit the deployment. Like kubectl scale --replicas x service-name.

Just a couple features like this, and k9s could replace kubectl for me.

enhancement

Most helpful comment

Hey guys, I just submitted a PR to add a scale action for deployments, stateful sets and replication controllers.

I wasn't quite sure how to test it properly, given the existing tests.

Any help would be much appreciated!

All 5 comments

@alairock What if there's an HPA? (or any other type of autoscaler)

The deployment would be re-scaled accordingly shortly after.

@TwinProduction For those who have autoscaler, that seems like that correct behavior and I would either not use it or acknowledge that consequence. For those who don't have it, being able to scale without editing the deployment or using kubectl would be nice.

We use HPAs and I'd take this as intended behaviour. It's often useful to force a cycle of containers, for example if you want your deployment to use a new image version now rather than wait for them to cycle.

Hey guys, I just submitted a PR to add a scale action for deployments, stateful sets and replication controllers.

I wasn't quite sure how to test it properly, given the existing tests.

Any help would be much appreciated!

@alairock @TwinProduction @burythehammer. Fixed 0.8.0! Thank you @nathanpiper!!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cdunford picture cdunford  路  3Comments

ChrisCooney picture ChrisCooney  路  3Comments

rahilb picture rahilb  路  3Comments

brentco picture brentco  路  4Comments

stk0vrfl0w picture stk0vrfl0w  路  3Comments