Is Your Cluster Ready for Jenkins X?
In this lesson, we will discuss the risks of using an existing cluster with jx and how we can use compliance tests to check if the existing cluster is ready for Jenkins X.
If you’re reading this, chances are that you do not want to use jx cluster create
to create a new cluster that will host Jenkins X. That is OK and even welcome. That likely means that you are already experienced with Kubernetes and that you already have applications running in Kubernetes. That’s a sign of maturity and your desire to add Jenkins X into the mix of whatever applications you are already running there. After all, it would be silly to create a new cluster for each set of applications.
However, using an existing Kubernetes cluster is risky.
Risks involving the usage of an existing cluster
Many people think they are smart enough to assemble their Kubernetes cluster from scratch. The story goes something like:
“We’re so awesome that we don’t need tools like Rancher to create a cluster for us.”
…or better yet…
“We’ll do it with kubeadm
.”
Then, after a lot of sweat, we announce that the cluster is operational, only to discover that there is no StorageClass
or that networking does not work. If you assembled your own cluster and you want to use Jenkins X inside it, you need to ask yourself whether or not that cluster is set up correctly.
- Does it have everything we need?