Getting started with DevOps Plan Helm Chart on IBM OpenShift

This quick start guide shows you how to deploy DevOps Plan on IBM OpenShift.

Before you begin

Before you can deploy DevOps Plan on IBM OpenShift, you must first:
  • Setup your environment by installing OpenShift CLI, Helm CLI and having access to OpenShift Cluster. For more information about how to get started with OpenShift and Helm, see Getting started with OpenShift and Getting Started with Helm. Setup the environment with OpenShift 4.13 and higher, the OpenShift CLI, and Helm 3.16 and higher.
  • DevOps Plan requires a PostgreSQL database and a Keycloak to create TeamSpace, Applications, and add users to sign in. The PostgreSQL database may be running in your cluster or on hardware that resides outside of your cluster. The values used to connect to the database and Keycloak are required when installing DevOps Plan. The helm chart provides the PostgreSQL database and Keycloak by default. You can disable and use your own PostgreSQL database and Keycloak.
  • Configure IBM License Service on OpenShift and copy the upload secret and configmap to the namespace/project where the DevOps Plan server will be installed. For more information, see DevOps Plan Licensing Requirements.

About this task

This guide shows you how to access DevOps Plan Helm Chart and install it in your own OpenShift cluster environment.

Procedure

  1. Download the Helm Chart.
  2. Get a key to the entitled registry.
    1. Log in the MyIBM Container Software Library with the IBMid and password that are associated with the entitled software.
    2. In the Entitlement Keys section, select Copy Key to the entitlement key to the clipboard.
    3. An imagePullSecret must be created to be able to authenticate and pull images from the Entitled Registry. If the secret is named ibm-entitlement-key, it will be used as the default pull secret and no value needs to be specified in the global.imagePullSecret field.
      After this secret has been created, you will use the secret name as the value for the imagePullSecret parameter in the values.yaml file that you provide to helm install.
      Note: Secrets are namespace scoped, so they must be created in every namespace that you plan to install DevOps Plan into. The following example is a command to create an imagePullSecret named ibm-entitlement-key:
      oc create secret docker-registry ibm-entitlement-key \
        --namespace [namespace_name] \
        --docker-username=cp \
        --docker-password=<EntitlementKey> \
        --docker-server=cp.icr.io
  3. Add the DevOps Plan helm chart repository to the local client. and verify that devops-plan/hcl-devopsplan-prod has been added:
    helm repo add ibm-helm https://raw.githubusercontent.com/IBM/charts/master/repo/ibm-helm/
    helm repo update
    $ helm search repo ibm-helm/ibm-devopsplan
  4. Install the helm chart with the default parameters into the namespace devopsplan with the release name ibm-devopsplan.
    helm install ibm-devopsplan ibm-helm/ibm-devopsplan-prod \
      -f ibm-devopsplan/values-openshift.yaml \
      --namespace devopsplan \
      --set global.imagePullSecrets={ibm-entitlement-key} \
      --set global.domain=[openshift-cluster-dns-name] \
      --timeout 10m

    You can adjust the timeout value based on the performance and responsiveness of your OpenShift cluster.

    If you plan to install the latest version of DevOps Plan, you do not need to add --version [CHART VERSION].

  5. Run helm status hcl-devopsplan -n devopsplan to retrieve the username and password for the Opensearch Dashboard, KeyCloak, and PostgreSQL databases.
  6. Start the Keycloak home page by using https://ibm-devopsplan-keycloak.[openshift-cluster-dns-name]/ and trust the keycloak certificate.
  7. Start the DevOps Plan home page in your browser by using https://ibm-devopsplan.[openshift-cluster-dns-name].
  8. To install with Customize Parameters setting:
    1. Get a copy of the values.yaml file from the helm chart so that you can update it with values used by the install.
      $ helm inspect values ibm-helm/ibm-devopsplan-prod --version [CHART VERSION] > myvalues.yaml 
    2. Edit the file myvalues.yaml to specify the parameter values to use when installing the DevOps Plan instance.
    3. Install the chart into the namespace devopsplan with the release name ibm-devopsplan and use the values from the myvalues.yaml file.
      helm install ibm-devopsplan ibm-helm/ibm-devopsplan-prod \
        -f ibm-devopsplan/values-openshift.yaml \
        --namespace devopsplan \
        --values myvalues.yaml \
        --timeout 10m

      You can list all releases by using helm list.

      If you plan to install the latest version of DevOps Plan, you do not need to add --version [CHART VERSION].

  9. Enable License Metrics.
    By default, the global.licenseMetric parameter is set to false. You must set it to to true during the helm install/upgrade.
    --set global.licenseMetric=true 
    Note: Before you can enable license metrics, you must have IBM License Service installed on your OpenShift environment. For more information on installing IBM License Service, see DevOps Plan Licensing Requirements.
  10. You can uninstall and delete the chart by using the helm delete command:
    helm delete ibm-devopsplan \
      --namespace devopsplan