-
Notifications
You must be signed in to change notification settings - Fork 53
add section about upgrading vCluster Standalone #1195
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,6 +19,37 @@ import TenancySupport from '../../../_fragments/tenancy-support.mdx'; | |
|
|
||
| <DeployChangesStandalone /> | ||
|
|
||
| ## Upgrading vCluster Standalone version | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
|
||
| To upgrade a vCluster Standalone to the new version, download the binary from the releases page, and then restart the vCluster systemD service. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. When upgrading vCluster versions, how does this affect/change k8s versions? |
||
|
|
||
| <Flow> | ||
| <Step> | ||
| On the control-plane node, download the binary for the target version: | ||
| ```shell title="Download vCluster standalone binary" | ||
| export VCLUSTER_VERSION="vX.Y.Z" # modify to the target version | ||
| export TARGETARCH="amd64" # amd64 / arm64 | ||
| curl -fsSLk -o /tmp/vcluster-new "https://github.com/loft-sh/vcluster/releases/download/${VCLUSTER_VERSION}/vcluster-linux-${TARGETARCH}-standalone" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚫 [vale] reported by reviewdog 🐶
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚫 [vale] reported by reviewdog 🐶
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚫 [vale] reported by reviewdog 🐶 |
||
| ``` | ||
| then, copy it to the `/var/lib/vcluster/bin/vcluster`: | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚫 [vale] reported by reviewdog 🐶
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚫 [vale] reported by reviewdog 🐶 |
||
|
|
||
| ```shell title="Upgrade binary" | ||
| chmod +x /tmp/vcluster-new | ||
| # copy old version as a backup | ||
| cp /var/lib/vcluster/bin/vcluster /tmp/vcluster-old.bak | ||
| cp /tmp/vcluster-new /var/lib/vcluster/bin/vcluster | ||
| ``` | ||
| </Step> | ||
| <Step> | ||
| Restart vCluster systemD service to deploy your changes. | ||
|
|
||
| ```bash title="Restart vCluster" | ||
| systemctl restart vcluster.service | ||
| ``` | ||
|
|
||
| </Step> | ||
| </Flow> | ||
|
|
||
| ## Removing nodes | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
|
||
| If you have not enabled joining the control plane nodes as worker nodes, then removing vCluster | ||
|
|
@@ -230,4 +261,4 @@ Run 'kubectl get nodes' on the control-plane to see this node join the cluster. | |
| </Step> | ||
| </Flow> | ||
| </TabItem> | ||
| </Tabs> | ||
| </Tabs> | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Google.Headings] 'Update vCluster Standalone configuration' should use sentence-style capitalization.