• Cloud Container Engine

  1. Help Center
  2. Cloud Container Engine
  3. User Guide 2.0
  4. Reference
  5. Connecting to a Kubernetes Cluster Using Helm

Connecting to a Kubernetes Cluster Using Helm


  • A VM that has a Helm client and a kubectl client installed is available.
  • An EIP has been bound to the target cluster. You can perform the following operations to bind an EIP to the cluster:
    1. Log in to the CCE console. In the navigation pane, choose Resource Management > VM Clusters. Click Kubectl for the target cluster.
    2. Bind an EIP to the cluster by referring to Connecting to a Kubernetes Cluster Using kubectl.


  1. Log in to the VM and run the following command to create a file named tiller_service_account.yaml:

    vi tiller_service_account.yaml

    Copy the following content to the file. Parameter values do not need to be modified.

    apiVersion: v1
    kind: ServiceAccount
      name: tiller
      namespace: kube-system
    apiVersion: rbac.authorization.k8s.io/v1beta1
    kind: ClusterRoleBinding
      name: tiller
      apiGroup: rbac.authorization.k8s.io
      kind: ClusterRole
      name: cluster-admin
      - kind: ServiceAccount
        name: tiller
        namespace: kube-system

  2. Run the following command to create a service account for Tiller:

    kubectl create -f tiller_service_account.yaml

  3. Install Helm and Tiller.

    helm init --service-account tiller

  4. After you have connected to the target Kubernetes cluster using Helm, you can use Helm to deploy charts. In the following steps, fc-tank-0.1.0.tgz is deployed as an example.

    1. Log in to the VM where the Helm client is installed. Run the following commands to check the version of the installed Helm.

      helm version

      Information similar to the following is displayed:

    2. Deploy fc-tank-0.1.0.tgz.

      helm install fc-tank-0.1.0.tgz

      Run the kubectl get pods command to check the pod status. If the status is Running, the deployment is successful.

    3. View all releases of the chart.

      helm list

      If you want to delete or uninstall the solid-grizzly release, run the following command:

      helm delete solid-grizzly


      For more information about how to use Helm, visit the official Helm website.