This repository has been archived by the owner on Sep 30, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 294
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow major Etcd upgrades with safe roll-back (#1773)
* Safer major etcd upgrades by spinning up new etcds and preforming a migration (copy of all kubernetes data) Simialr to the approach used during the stack migration but this time the major/minor version of etcd is used to control migration e.g 3.2.x -> 3.3.x will cause a migration. It is safer because should the CF roll fail the previous etcd's should still be available to fall-back to. Bring all new etcds up at same time during a migration. Correct looking up of configsets now that the instance name has changed. When an etcd has an attached NIC use that address rather than the machine's private dnsname Update Etcd to 3.3.17 release Fix etcdadm so that it can still detect cluster healthy now written to stderr Update etcd migration to respect keys with leases Fix building etcd endpoints where the interfaces are listed in different orders Move to a two export process for retrieving keys and values using etcdctl 'json' export type for key/value data, and then again using its 'fields' export type in order to successfully extract key/lease data. Process the two files back together with a nod to performance. * Fix tests by specifying etcdversion (I added some code to throw an error if the default etcd version hadn't been correctly linked into the binary - which it isn't during testing). * Only announce the migration if the lookup of etcd endpoints have succeeded.
- Loading branch information
1 parent
6971be4
commit ea799be
Showing
11 changed files
with
318 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.