Create cluster documentation

How to create a new Kubernetes cluster with Jenkins X installed

To create a new Kubernetes cluster with Jenkins X installed use the jx create cluster command.

A number of different public cloud providers are supported as shown below.

For the best getting started experience we currently recommend using Google Container Engine (GKE). The Google Cloud Platform offers a $300 free credit if you don’t have a Google Cloud account. See

Here’s a little demo showing GKE, AKS and Minikube (not supported anymore) in parallel. It can take some time to start on different machines/clouds so please be patient!

Using Google Cloud (GKE)

First make sure you have created/selected a Project in the Google Cloud Console.

Currently the best experience for running Jenkins X is on Google Container Engine (GKE).

Now download the jx CLI which is used to create and interact with the Jenkins X cluster.

Now use the jx create cluster gke command:

jx create cluster gke

If you wish to name your cluster and provide your own admin password you can run:

jx create cluster gke --default-admin-password=mySecretPassWord123 -n myclustername

Then follow all the prompts on the console (mostly just hitting enter will do).

Using the Google Cloud Shell

The simplest way to install Jenkins X on Google Cloud is using the Google Cloud Shell as it already comes with most of the things you may need to install (git, gcloud, kubectl etc).

First you need to open the Google Cloud Shell via the button in the toolbar:

Then you need to download the jx binary:

curl -L | tar xzv
sudo mv jx /usr/local/bin

Now use the jx create cluster gke command:

jx create cluster gke --skip-login

If you wish to name your cluster and provide your own admin password you can run:

jx create cluster gke --skip-login  --default-admin-password=mySecretPassWord123 -n myclustername

The jx create cluster gke process

The Jenkins X cluster creation process is a multi-step interactive process performed via command-line interface and your desktop web browser.

  1. Open a terminal or command prompt window (or the GCP Cloud Shell in your web browser) and commence the Jenkins X installation process. In this example, the Google Kubernetes Engine is used as the Kubernetes provider:
jx create cluster gke
  1. The installation is interactive, stepping you through the entire installation and configuration of the Kubernetes cluster creation process.

    After automatically installing the helm command for package management and gcloud command for cluster configuration on kubernetes, the installer prompts you for your administrative password to complete the installation process.

  2. A browser window appears prompting you to choose the email address associated with your Google Cloud Platform account, then prompts you to accept rights permission to associate your GCP account

  3. The installer prompts you to choose a regional or zonal cluster:

    • Regional clusters spread kubernetes resources in a region to multiple zones with each zone having a cluster master.

    • Zonal clusters run multiple kubernetes resources to multiple cluster nodes using one cluster master.

  4. The installer prompts you for your Cloud node machine type:

    • Standard: a machine that scales CPU and Memory evenly, (1 vCPU with 3.75GB RAM, 2 vCPU with 7.5GB RAM, and so on).

    • High-memory: a machine with higher memory allocation for each CPU (2 vCPU with 13GB RAM, 4 vCPU with 26GB RAM, and so on).

    • High-CPU: a machine with higher vCPU allocation relative to Memory (2 vCPU 1.8GB RAM, 4 vCPU 3.6GB RAM, and so on).

  5. The installer asks to enter the minimum quantity of nodes for the cluster. The recommended minimum for a Jenkins X cluster is 3 nodes for each cluster zone.

  6. The installer asks you to enter the maximum quantity of nodes per zone. The recommended maximum for Jenkins X is 5 nodes per cluster

  7. The installer asks if you want to use preemptible VMs. Preemptible VMs are used typically for less than 24 hours for specific tasks such as short-term compute cluster calculations, media rendering or transcoding, financial industry asset performance modeling, and others. It is not recommended for typical Jenkins X deployments.

  8. The installer asks if you want access to Google Cloud Storage or Google Container Registry. If you enter Y for yes, the installer creates Oauth enabled scopes for accessing Google Cloud Storage and Google Cloud Registry API authentication and access. Default is no.

  9. The installer asks if you want to enable Kaniko for building container images. kaniko is used to create Docker Images without access to a docker daemon. Jenkins X default is no.

  10. The installer continues the installation process to post-installation configuration. The first post-installation prompt searches for a configured ingress controller. An ingress controller works with an external load balancer (such as Google Cloud Load Balancing) to control various traffic types such as HTTP(S), SSL, TCP and others on any externally accessible network port. Jenkins X requires this in typical deployments, so the default is yes.

  11. You are then prompted with creating a DNS service to use for your cluster load balancer. If your network does not provide custom DNS, the Jenkins X installer will create a simple wildcard DNS services to translate to your cluster load balancer and allow access to the nodes from the Internet. By default, the installer uses to create a domain based on your IP address.

    For example, if your external internet IP address is, the installer will assign the domain name so that users and Jenkins X administrators can access the cluster.

  12. The installer asks for a local git user for GitHub access:

    1. Enter the GitHub User Name you want to associate to the cluster

    2. Choose whether or not you want to use GitHub as the CI/CD pipeline git server. The default is yes.

    3. When prompted, copy and paste the provided URL into a browser and create a GitHub API token for use in your cluster.

    4. Choose whether you want to use Serverless Jenkins X Pipelines with Tekton or traditional Jenkins with Jenkinsfile. Choose Serverless Jenkins X Pipelines with Tekton, as that method supports cloud native CI/CD declarative pipelines for kubernetes clusters using Tekton custom resources.

    5. The installer creates an autogenerated password for administrative access to the cluster. Copy that password and paste it for later access.

Now develop apps faster with Jenkins X.

Connecting to the cluster from your laptop

If you wish to work with the Jenkins X cluster from your laptop then click on the Connect button on the Kubernetes Engine page in the Google Console

You should now be able to use the kubectl and jx CLI tools on your laptop to talk to the GKE cluster.

Using Google Cloud from your laptop

Use the jx create cluster gke command:

jx create cluster gke --verbose

Or if you are already logged in by previously using gcloud init or gcloud auth login:

jx create cluster gke --skip-login --verbose

Those commands assume you have a google account and you’ve set up a default project that you can use to create the kubernetes cluster within. Now develop apps faster with Jenkins X.

Using Amazon (AWS)

If you are using AWS be sure to check out the detailed blog on Continuous Delivery with Amazon EKS and Jenkins X by Henryk Konsek which goes into lots of detail on how to setup AWS + EKS with Jenkins X.

We support both kops or eks to create your Kubernetes cluster with Jenkins X where EKS is the most strategic direction; increasingly AWS will manage more of the kubernetes side for you with EKS.

Ingress options

On AWS the ideal setup is to use a Route 53 DNS wildcard CNAME to point *.somedomain at your ELB or NLB host name; then when prompted by jx you install somedomain (where somedomain is an actual DNS domain/subdomain you own).

Then all the Ingress resources for any exposed service in any namespace will appear as mysvc.myns.somedomain - whether for things like Jenkins or Nexus or for your own microservices or Preview Environments.

Using wildcard DNS pointing to your ELB/NLB also means you’ll be able to use all the availability zones on AWS.

The jx command will ask you if you want to automate the setup fo the Route 53 wildcard CNAME. If you want to do it yourself you need to point to the ELB host name defined via:

kubectl get service -n kube-system jxing-nginx-ingress-controller  -oyaml | grep hostname

Avoiding DNS

If you want to kick the tires of Jenkins X without going to the trouble of getting a DNS domain name to use and setting up wildcard DNS you can instead use an NLP and use one of the IP addresses of one of the availability zones as your domain via $IP.ip.

This is not really intended for real production installations; but can be a quick way to get started trying out Jenkins X.

When using jx create cluster aws, jx create cluster eks or jx install --provider=(aws|eks) you are prompted if you want to use DNS and optionally setup a wildcard DNS CNAME record on Route 53; if not we are assuming you’re gonna avoid DNS to kick the tires on a single availability zone IP address by resolving the NLB host name to one of the availability zone IP addresses.


Use the jx create cluster eks command:

jx create cluster eks

Under the covers this will download and use the eksctl tool to create a new EKS cluster, then it’ll install Jenkins X on top.


Use the jx create cluster aws command:

jx create cluster aws

This will use kops on your Amazon account to create a new kubernetes cluster and install Jenkins X.

To try this out we recommend you follow the AWS Workshop for Kubernetes to set up an AWS Cloud9 IDE session.

Then create a new terminal in Cloud9 and try these commands:

curl -L{{.Site.Params.release}}/jx-linux-amd64.tar.gz | tar xzv
sudo mv jx /usr/local/bin
jx create cluster aws

Now develop apps faster with Jenkins X.

Using Azure (AKS)

Before you start you may find this blog helpful.

Use the jx create cluster aks command:

jx create cluster aks

Now develop apps faster with Jenkins X.

Using Oracle (OKE)

Use the jx create cluster oke command:

jx create cluster oke

This will use oci on your Oracle Cloud Infrastructure account to create a new OKE cluster and install Jenkins X.

Please add your $HOME/bin to $PATH otherwise jx will have issue invoking OCI CLI command. If you have already installed OCI CLI, please make sure it is in $PATH.

Now develop apps faster with Jenkins X.

Using IBM Cloud Kubernetes Service (IKS)

Use the jx create cluster iks command:

jx create cluster iks --apikey=<IBM Cloud API Key>

This will use IBM Cloud CLI on your IBM Cloud Infrastructure account to create a new IKS cluster and install Jenkins X.

You need to make sure you have the $HOME/.jx/bin folder in your $PATH.

Now develop apps faster with Jenkins X.


If you hit any issues installing Jenkins X then please check out our troubleshooting guide or let us know and we’ll try our best to help.