Container Service for Kubernetes (ACK) has upgraded Helm to V3 for newly created clusters. The Tiller server component for Helm V2 has known security issues among community users. Attackers can use Tiller to install unauthorized applications in the cluster. We recommend that you upgrade to Helm V3 at your earliest opportunity.
- Whether the kubeconfig file of your ACK cluster is provided to external users.
- Whether external access to the ACK console is allowed.
- Whether your ACK cluster is used in a multi-tenancy scenario and whether privilege isolation is enabled among users.
If one of the preceding conditions is met, we recommend that you upgrade to Helm V3.
Unaffected scenarios or scenarios where upgrade to Helm V3 is unavailable
If the scenario does not meet the preceding conditions or you cannot upgrade to Helm V3, we recommend that you manually upgrade Tiller of Helm V2 to the latest version for higher security. Perform the following steps to upgrade Tiller of Helm V2 to the latest version:
- Run the following command:
helm init --tiller-image registry.cn-hangzhou.aliyuncs.com/acs/tiller:v2.16.3 --upgrade
- After Tiller passes the health check, you can run the helm version command to query the upgrade result.
The preceding command upgrades only the server component of Helm. To download the client components for different operating systems, click the download link.
Before you upgrade Helm V2, perform the following steps for a precheck.
- Check whether Tiller is installed in your ACK cluster. Run the kubectl get deploy -n kube-system tiller-deploy command to check whether a tiller Deployment exists.
- If a tiller Deployment exists, run the helm ls -a command to check whether applications are installed.
- If applications are installed, you must first delete these applications due to the
data incompatibility between Helm V2 and V3. Notice The Helm community provides a plug-in to migrate Helm V2 configurations and releases to Helm V3. To prevent data loss, proceed with caution when you use the plug-in. For more information about the plug-in, see helm-2to3.
- Make sure that you have passed the Precheck.
- Run the kubectl delete deploy tiller-deploy -n kube-system command.
- Download the Helm V3 client component to install new applications. NoticeBefore you install new applications, take note of the following items:
- You must use Helm V3 to reinstall the applications that were installed by using Helm V2. Evaluate the impacts on your workloads.
- When you reinstall an application, the original data will be lost. Back up your data in advance.