Helm on GKE cluster — quick hands-on guide

Image for post
Image for post

This quick guide helps with some practicalities on getting helm running on Google Kubernetes Engine (GKE) cluster. This article assumes that the reader:

  • Has prior knowledge about helm, kubernetes and gke.
  • Has a local installation ofkubectl andhelm also a GKE cluster with atleast 3 nodes (including master node).
  • This was tested with the following versions:

Create service account for helm

Image for post
Image for post
Create service account for helm and clusterrolebinding

Elevate privileges for creating ClusterRoleBindings (if necessary)

  • Obtain your admin password with gcloud describe
Image for post
Image for post
Admin password with describe
  • Use those credentials and create the service account and cluster role binding of the previous section. One way would be to modify your $HOME/.kube/config to add a new user entry and provide it to your context and then revert back after initialising helm .
Image for post
Image for post
  • Revert back if you happen to elevate privileges, you do not need it anymore.

Initialise helm

Image for post
Image for post

Verify helm

Image for post
Image for post

Create a samplechart and install it with name helm-test . This is going to install a simple nginx pod. Set the service type as LoadBalancer .

Image for post
Image for post

There you go!

Common errors

References

  1. More about helm — https://docs.helm.sh/
  2. Kubernetes docs — http://kubernetes.io/
  3. Google kubernetes Engine (GKE) — https://console.cloud.google.com/kubernetes/

Google Cloud - Community

Google Cloud community articles and blogs

anoop vijayan maniankara

Written by

Devops, Kubernetes, GKE, On-premise

Google Cloud - Community

A collection of technical articles and blogs published or curated by Google Cloud Developer Advocates. The views expressed are those of the authors and don't necessarily reflect those of Google.

anoop vijayan maniankara

Written by

Devops, Kubernetes, GKE, On-premise

Google Cloud - Community

A collection of technical articles and blogs published or curated by Google Cloud Developer Advocates. The views expressed are those of the authors and don't necessarily reflect those of Google.

Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore

If you have a story to tell, knowledge to share, or a perspective to offer — welcome home. It’s easy and free to post your thinking on any topic. Write on Medium

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store