Getting Started with GoCD on Kubernetes

Step 2: Install the GoCD Helm chart

Helm is a package manager for Kubernetes. Kubernetes packages are called charts. Charts are curated applications for Kubernetes.

First verify your Helm version using command helm version.

For Helm version 3 and bove, install the official GoCD Helm chart with this command:

  1. kubectl create ns gocd
  2. helm install gocd stable/gocd --namespace gocd

If you’re using an older version of Helm, then use this command:

  1. helm install stable/gocd --name gocd --namespace gocd

Access the GoCD server

After you’ve installed the GoCD helm chart, you should be able to access the GoCD server from the Ingress IP.

The Ingress IP address can be obtained as specified below:

  • Minikube

    1. minikube ip
  • For other Kubernetes offerings like GKE and EKS:

    1. ip=$(kubectl get ingress --namespace gocd gocd-server -o jsonpath="{.status.loadBalancer.ingress[0].ip}")
    2. echo "http://$ip"

Note: It might take a few minutes for the GoCD server to come up for the first time. You can check if the GoCD server is available with this command:

  1. kubectl get deployments --namespace gocd

The GoCD server starts with a sample “Hello World” pipeline that looks like:

Install the GoCD Helm chart - 图1