Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Upgrade kubernetes to 1.6

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Try to upgrade smoothly to ensure the stability of the cluster online.

1. Etcd

Through the official documents, we found. Starting from 1.6, the cluster needs etcd version 3.0. at present, the data between etcd2.0 and 3.0are not interoperable.

Known issues:

1. The version of etcd and go

V3.0.x should use Go 1.6.x

V3.1.x should use Go 1.7.x

Github url

Https://github.com/coreos/etcd/issues/6951

Etcd cluster will be changed to 3. 0 only if all nodes are above version 3.

Therefore, it can be smoothly upgraded to 1.6.

Use a self-written script to call kubernetes api to read the data and save it to a database (such as mysql)

Then, when the etcd cluster is upgraded to 3.0, the script is used to call kubernetes api to write the data back to etcd3.0.

It is a good idea to back up etcd data before upgrading. If there is a problem, just downgrade the etcd cluster to version 2.x.

Because the data of etcd2.x and 3.x coexist, but they don't communicate with each other.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report