We recommend that you use a managed Kubernetes installation. Some options are:
-
Switch to the
cd-kubernetes
branch in the repository -
Login to your Jenkins Build Agent and authenticate to your Docker registry using
docker login [registry]
-
Install Kubectl on your Jenkins build agent.
-
Put your kubernetes credentials into
~/.kube/config
on your Jenkins agent. Ensure that the commandkubectl get deployments
works on your Jenkins Agent -
Edit the
Jenkinsfile
- under theDeploy to Kubernetes
stage, update the registry URL to point at your Docker registry. -
Run Jenkins Blue Ocean against the
cd-kubernetes
branch to deploy to your kubernetes cluster.