How Can I Speed Up My Kubespray Runs for Cluster Upgrades?

0
17
Asked By CloudyBreeze7 On

I'm currently in the process of upgrading my Kubernetes cluster using the unsafe upgrade procedure with kubespray (specifically, cluster.yml with the -e upgrade_cluster_setup=true flag). However, this is taking way too long—around 1-2 hours for a 50+ node cluster. I've tried increasing the ansible forks to 30, but it doesn't seem to make a significant difference. For anyone who uses kubespray, have you discovered any effective methods to speed up this process safely?

5 Answers

Answered By DataDrivenDev On

Are you suggesting that using cluster.yml somehow takes more time than upgrade-cluster.yml? I figured upgrade-cluster.yml would be slower because it handles pod evacuations in stages.

Answered By TechieTom567 On

One option you might want to consider is using Molecule to manage your playbooks. It's not officially supported anymore, but it tends to still work for many users looking for ways to speed up their processes.

Answered By NetworkNerd22 On

In the past, people found that using Mitogen could significantly cut down on run times. However, it has struggled to keep pace with new Ansible versions, leading to its removal from many setups. It seems to be getting updates again, so it might be worth a look now.

Answered By ClusterThinker99 On

You're opting for the unsafe upgrade, which is infamous for not being the fastest option out there. Trying to speed up that process with safety in mind could be a challenge. Just a heads up!

Answered By SpeedyUpgradePro On

Have you checked if pipelining and connection control are enabled in your ansible.cfg? These tweaks might help improve performance.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.