简体   繁体   中英

upgrading kubernetes operator/controller code

wanted to get some advice /best practices on maintaining and upgrading operators. We have an operator based on operator-sdk framework. We are looking at day 2 use cases like upgrading our custom controller code. what are the best practices of upgrading the operators? How do you handle rollback if the upgrade operation fails? any pointers?

One option could be to use OLM ( Operator lifecycle manager ) it will enable you to deliver your operators with packaging mechanisms. OLM will help you with installation, versioning, upgrades and downgrades. It will also serve as a catalog of installed Operators in your cluster and a set of metadata about them.

You can read about the OLM's architecture in the documentation.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM