Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation On How To Upgrade Antrea CNI #5695

Closed
gbonazzoli opened this issue Nov 11, 2023 · 4 comments · Fixed by #5708
Closed

Documentation On How To Upgrade Antrea CNI #5695

gbonazzoli opened this issue Nov 11, 2023 · 4 comments · Fixed by #5708
Assignees
Labels
kind/support Categorizes issue or PR as related to a support question.

Comments

@gbonazzoli
Copy link

Can someone help me in finding the document that describes the procedure to upgrade Antrea CNI.

I find only documentation regarding its installation.

I think it is only a matter to run kubectl apply -f .... as the installation but I've a doubt if it must be preceded by a deletion with the same yaml file that was used during the cluster's installation.

Thank you.

@gbonazzoli gbonazzoli added the kind/support Categorizes issue or PR as related to a support question. label Nov 11, 2023
@luolanzone
Copy link
Contributor

Hi @gbonazzoli you can check this section https://github.com/antrea-io/antrea/blob/main/docs/versioning.md#antrea-upgrade-and-supported-version-skew to see if this can help you or not. Could you let us know what's the old version and new version for your upgrade? Antrea didn't support "graceful" upgrades if the versions gap are large.

cc @tnqn @antoninbas @jianjuns

@antoninbas
Copy link
Contributor

I guess we could rename this section from Installation to Installation and Upgrade.
But yes, the steps are the same for installation and upgrade.
For production workloads for which it may be important to minimize disruptions, we would recommend upgrading the Controller first and the Agent last, as described in the documentation. However, we do not provide "split" manifests to do that.

@gbonazzoli
Copy link
Author

gbonazzoli commented Nov 14, 2023

@antoninbas @luolanzone

Thanks a lot, I upgraded Antrea CNI with the following:

govc snapshot.create -vm=vm.kube.master bonaz-snapshot
kubectl apply -f https://github.com/antrea-io/antrea/releases/download/v1.13.2/antrea.yml
govc snapshot.remove -vm=vm.kube.master bonaz-snapshot

Looking at the upgrade process I was lucky. It was first upgraded the controller and then, one by one, the agents on the three node cluster.

The version I was coming was 1.13-dev-something and I was only worried by the "dev" string.

@antoninbas
Copy link
Contributor

antoninbas commented Nov 14, 2023

Looking at the upgrade process I was lucky. It was first upgraded the controller and then, one by one, the agents on the three node cluster.

I believe the controller and the "first" agent will usually upgrade concurrently. But once again, as far as we know, nothing breaks when some agents upgrade after the controller, which is why we haven't provided separate manifests. When using the Helm chart to install / upgrade, there is no specific order being enforced either.

The version I was coming was 1.13-dev-something and I was only worried by the "dev" string.

That doesn't sound right. Where do you get this version string? This should only happen if you use the current dev version of Antrea and apply https://raw.githubusercontent.com/antrea-io/antrea/main/build/yamls/antrea.yml. Even then, you would get 1.14-dev, since we are currently working on Antrea v1.14.

antoninbas added a commit to antoninbas/antrea that referenced this issue Nov 15, 2023
The same `kubectl apply` command that is used for first-time
installation can also be used for upgrading to a more recent version.

Fixes antrea-io#5695

Signed-off-by: Antonin Bas <abas@vmware.com>
@antoninbas antoninbas self-assigned this Nov 15, 2023
antoninbas added a commit that referenced this issue Nov 30, 2023
The same `kubectl apply` command that is used for first-time
installation can also be used for upgrading to a more recent version.

Fixes #5695

Signed-off-by: Antonin Bas <abas@vmware.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/support Categorizes issue or PR as related to a support question.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants