Skip to content

Commit b835bcf

Browse files
committed
add section about upgrading vCluster Standalone
Signed-off-by: Paweł Bojanowski <[email protected]>
1 parent 62a1474 commit b835bcf

File tree

1 file changed

+32
-1
lines changed

1 file changed

+32
-1
lines changed

vcluster/deploy/control-plane/binary/manage.mdx

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,37 @@ import TenancySupport from '../../../_fragments/tenancy-support.mdx';
1919

2020
<DeployChangesStandalone />
2121

22+
## Upgrading vCluster Standalone version
23+
24+
To upgrade a vCluster Standalone to the new version, download the binary from the releases page, and then restart the vCluster systemD service.
25+
26+
<Flow>
27+
<Step>
28+
On the control-plane node, download the binary for the target version:
29+
```shell title="Download vCluster standalone binary"
30+
export VCLUSTER_VERSION="vX.Y.Z" # modify to the target version
31+
export TARGETARCH="amd64" # amd64 / arm64
32+
curl -fsSLk -o /tmp/vcluster-new "https://github.com/loft-sh/vcluster/releases/download/${VCLUSTER_VERSION}/vcluster-linux-${TARGETARCH}-standalone"
33+
```
34+
then, copy it to the `/var/lib/vcluster/bin/vcluster`:
35+
36+
```shell title="Upgrade binary"
37+
chmod +x /tmp/vcluster-new
38+
# copy old version as a backup
39+
cp /var/lib/vcluster/bin/vcluster /tmp/vcluster-old.bak
40+
cp /tmp/vcluster-new /var/lib/vcluster/bin/vcluster
41+
```
42+
</Step>
43+
<Step>
44+
Restart vCluster systemD service to deploy your changes.
45+
46+
```bash title="Restart vCluster"
47+
systemctl restart vcluster.service
48+
```
49+
50+
</Step>
51+
</Flow>
52+
2253
## Removing nodes
2354

2455
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.
230261
</Step>
231262
</Flow>
232263
</TabItem>
233-
</Tabs>
264+
</Tabs>

0 commit comments

Comments
 (0)