MasterScrat
MasterScrat

Reputation: 7386

Performing non-rolling Kubernetes updates

I am new to Kubernetes and kops. I am experimenting and modifying my test cluster a lot.

My problem is that updating the cluster takes forever. For now I am doing:

kops edit cluster test-cluster.k8s.local
# changing some stuff then:
kops update cluster test-cluster.k8s.local --yes

This triggers a rolling update, which takes too long.

I end up destroying and rebuilding the cluster every time as it is faster.

I am wondering if there's a "non-rolling" way to update the cluster, sacrificing availability for speed?

Upvotes: 0

Views: 314

Answers (1)

Daein Park
Daein Park

Reputation: 4703

If you use a deployment object for deploying your pods, you can try Recreate strategy in your deployment yaml.

References

Upvotes: 1

Related Questions