Pre-installation requirements for OpenShift

2 minute read

The following items are required to install CloudBees CI on modern cloud platforms on OpenShift:

OpenShift requirements

An OpenShift cluster with the following specifications is required:

  • A currently supported version of OpenShift. See Supported platforms for CloudBees CI on modern cloud platforms

  • Network access to container images (public Docker Hub or a private Docker Registry).

  • A project with permissions to create Role and RoleBinding objects.

  • Access to the DNS record that points to your installation and TLS certificates for the CloudBees CI on modern cloud platforms deployment.

  • A defined Default Storage Class. See the Storage Requirements section in the AWS or On-premise Reference Architectures for more information.

Additionally, there are some security considerations when running Jenkins agents on OpenShift:

  • Containers must run as a non-root user and group.

  • Containers must not be privileged.

Make sure to read Why do my applications run as a random user ID? and instructions to create images to make sure you are running Docker images that behave correctly on this platform.

Preparing your environment

Before you begin the CloudBees CI on modern cloud platforms installation, you should complete the following steps.

  1. Create an OpenShift project, then set it as the current OpenShift project:

    $ oc new-project cjoc
    $ oc project cjoc
  2. Set up an administrative workstation. The workstation may be either the CloudBees CI administrative workstation or a Kubernetes administrative workstation. It must be a workstation on which you have full command privileges for the following utilities:

    • The OpenShift CLI, installed and configured to work with your OpenShift cluster.

    • The Helm client.

  3. Set up the Helm client. Follow the instructions in the Helm project README to install the Helm client. Detailed instructions for specific operating systems are provided in the installation section.

    If you intend to use the Helm template option, after installing the Helm client, you can skip to Using Helm template command to install CloudBees CI.
  4. Add the CloudBees Helm Chart Repository.

    helm repo add cloudbees https://charts.cloudbees.com/public/cloudbees (1)
    helm repo update (2)
    1The helm repo add adds a new Helm Chart Repository to your Helm installation.
    2The helm repo update updates your local Helm Chart Repository cache. Your local Helm Chart Repository cache is used by Helm commands like helm search to improve performance.
    Always run helm repo update before you execute a Helm search using helm search. This ensures your cache is up to date.