-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from zufardhiyaulhaq/v1.21.7
upgrade to v1.21.7
- Loading branch information
Showing
4 changed files
with
43 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,43 @@ | ||
# Upgrade Kubernetes | ||
|
||
### Upgrade from v1.20.12 to v1.21.7 | ||
|
||
#### Upgrade step | ||
* SSH to deployer node | ||
```bash | ||
ssh [email protected] | ||
``` | ||
|
||
* Go to `kubernetes-hardway-ansible` directory, checkout to master | ||
``` | ||
git fetch --all | ||
git checkout --track origin/v1.21.7 | ||
``` | ||
|
||
* Adjust variable in the group_vars | ||
``` | ||
vi group_vars/all.yml | ||
``` | ||
|
||
* Adjust Kubernetes host and nodes | ||
``` | ||
vi hosts/hosts | ||
``` | ||
|
||
* Run ansible | ||
``` | ||
ansible-playbook upgrade-kubernetes.yml -i hosts/hosts | ||
``` | ||
|
||
* Verify version | ||
``` | ||
kubectl version | ||
kubectl get nodes | ||
kubectl describe deployment coredns --namespace kube-system | grep Image | ||
kubectl get daemonset kube-flannel-ds --namespace kube-system -o=jsonpath='{$.spec.template.spec.containers[:1].image}' | ||
``` | ||
|
||
### Upgrade from v1.19.10 to 1.20.12 | ||
|
||
Please note that upgrading from v1.19.10 to v1.20.12 will also upgrade flannel, coredns, and metrics-server. Please test in staging or testing cluster before upgrading. | ||
|
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