Skip to content
This repository has been archived by the owner on Jul 14, 2019. It is now read-only.

Fixes to update for master and worker nodes #92

Merged
merged 1 commit into from
Sep 20, 2018

Conversation

oneilcin
Copy link
Contributor

This allows kubernetes upgrades from versions 1.10.x to 1.11.x.
I did a slight refactor (getMasterSSHClient) to avoid code duplication.

Upgrade version on the controlplane machine first.
Upgrade each worker node machine version individually.
Wait for each machine to be upgraded before upgrading the next one. You can use kubectl get nodes to see the version of each node. You can also do kubectl describe machine <> --namespace <> to look for a successful Upgrade event:
Events:
Type Reason Age From Message


Normal Created 30m ssh-machine-controller Created Machine ssh-controlplane-mqn7f
Normal Updated 17m ssh-machine-controller Updated Machine ssh-controlplane-mqn7f

Copy link
Contributor

@davidewatson davidewatson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@@ -21,7 +21,21 @@ const (
deleteEventAction = "Delete"
noEventAction = ""
// TODO should this move to the cluster controller?
apiServerPort = 443
apiServerPort = 443
upgradeControlPlaneCmd = "sudo curl -o /usr/bin/kubeadm -sSL https://dl.k8s.io/release/v%[1]s/bin/linux/amd64/kubeadm && " +
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would these be easier to read if you used backticks instead of double quotes?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd rather keep quotes, I have two level of quoting (", and ') in some commands.

@davidewatson davidewatson merged commit d90167e into samsung-cnct:master Sep 20, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants