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
, then install the official GoCD Helm chart as follows:
- Add the GoCD helm chart repository:
helm repo add gocd https://gocd.github.io/helm-chart
helm repo update
- Run the install command:
helm install gocd gocd/gocd --namespace gocd --create-namespace
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
minikube ip
-
For other Kubernetes offerings like GKE and EKS:
ip=$(kubectl get ingress --namespace gocd gocd-server -o jsonpath="{.status.loadBalancer.ingress[0].ip}") 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:
kubectl get deployments --namespace gocd
The GoCD server starts with a sample “Hello World” pipeline that looks like: