如何在MicroK8s中更新Helm3至新版本?当前版本为v3.0.2
Hey there! You’re running version v3.0.2 of Helm3 in MicroK8s, which is quite outdated. Since Helm3 is managed as an official MicroK8s plugin, updating it is straightforward. Follow these steps:
Step 1: Disable the existing Helm3 plugin
First, we need to turn off the old Helm3 plugin to clear the way for the new version:
microk8s disable helm3
Step 2: Refresh MicroK8s plugin repository
This ensures MicroK8s pulls the latest plugin metadata, so it knows where to get the newest Helm3 build:
microk8s refresh
Step 3: Re-enable Helm3 to install the latest version
When you re-enable the plugin, MicroK8s will automatically fetch and set up the most recent stable Helm3 release:
microk8s enable helm3
Step 4: Verify the update worked
Check the new version to confirm everything went well:
microk8s helm3 version
Troubleshooting if the above steps don’t work
If the update doesn’t take effect, try manually removing the old Helm3 directory before re-enabling the plugin:
sudo rm -rf /var/snap/microk8s/current/helm3 microk8s enable helm3
Also, make sure your MicroK8s itself is up to date—sometimes plugin updates depend on the base MicroK8s version. Update MicroK8s first if needed:
sudo snap refresh microk8s
That’s it! Your Helm3 should now be running the latest stable version.
内容的提问来源于stack exchange,提问作者xRobot

