Deploying Spinnaker to Kubernetes using Helm chart

Introduction

The recommended way to deploy Spinnaker is in a Kubernetes environment. In this tutorial, we will show you how easy it is to setup a Spinnaker instance in Kubernetes using helm charts. You can have a Spinnaker up and running in less than 20 minutes. To be successful, the Kubernetes cluster needs to support:

18G of memory and 6 CPU cores

persistent storage volumes

loadbalancers

Pre-requisites

You have kubernetes cluster ready and kubectl can connect to that cluster

You have helm v3 installed

Deploy Spinnaker

Note: if you are using Openshift, you can replace kubectl with oc commands

Note: In Openshift, you may need to grant additional permission to the service account. For example, if you are installing the helm chart below using name mychart, you should grant the following to the service account mychart-spinnaker-halyard

oc adm policy add-scc-to-user anyuid -z mychart-spinnaker-halyard

We will install Spinnaker using the published stable Helm chart. If you want to customize the installation, get the values,yaml file and customize it.

Your Spinnaker is deployed but how do you access it? You could always create port-forwards as mentioned in the output of the helm install used to deploy Spinnaker. But that works when you are using your local laptop. If your Kubernetes cluster supports loadbalancer services, it is easier to create a loadbalancer and access Spinnaker. This best option to make it available to everyone.

Create a file spinsvcs.yml to create the loadbalancer service to Spinnaker.