ibm-devops-solution-workbench

by joaquinito2051

Helm chartv5.2.3App 5.2.3Apache-2.0

A Helm chart for IBM DevOps Solution Workbench (DSW)

About this chart

IBM DevOps Solution Workbench

Introduction

IBM DevOps Solution Workbench helps you to accelerate design and development of enterprise-grade cloud solutions.

IBM DevOps Solution Workbench provides access to a specialized collection of tools and project stacks to automate and streamline recurring solution patterns using industry best practices and modern architecture principles. It enables the quick initiation of development projects with tools tailored for various services and allows customization to meet specific solution needs. Users can leverage a consistent foundation of platform services and standards across all projects, enhancing efficiency and reusability.

IBM DevOps Solution Workbench offers a collaborative design environment that brings together domain experts, developers, architects, and operations teams to work efficiently. It allows teams to capture requirements iteratively and transform them into machine-readable design models, ensuring standardization across projects with specialized design tools. This shared environment enhances collaboration and streamlines the design process.

IBM DevOps Solution Workbench accelerates development by automatically generating up to 70% of the required code, seamlessly transforming design models into cloud-native microservices. It allows developers to concentrate on business logic while adhering to best practices, thus maximizing creativity and productivity.

OpenShift Installation Instructions

Prerequisites

  1. OpenShift, Keycloak, OpenShift CLI (oc), and Helm 3.

  2. Image and Helm Chart - The DevOps Solution Workbench images, and helm chart can be accessed via the Entitled Registry and public Helm repository.

    • The public Helm chart repository can be accessed at https://github.com/IBM/charts/tree/master/repo/ibm-helm and directions for accessing the DevOps Solution Workbench chart will be discussed later in this README.

    • Get a key to the entitled registry

      • Log in to MyIBM Container Software Library with the IBMid and password that are associated with the entitled software.
      • In the Entitlement keys section, select Copy key to copy the entitlement key to the clipboard.
      • An imagePullSecret must be created to be able to authenticate and pull images from the Entitled Registry. Note: Secrets are namespace scoped, so they must be created in every namespace you plan to install DevOps Solution Workbench into. Following is an example 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=icr.io
      

Licensing

DevOps Solution Workbench requires an installed IBM Rational License Key Server (RLKS). You must specify this RLKS server during installation.

See IBM Rational License Key Server documentation for more details.

Install

Before you begin, follow requisite steps and configuration at Installation of DevOps Solution Workbench: https://docs-devops-solution-workbench.knowis.net/5.2/docs/installing-upgrading/

Fetch chart for install:

helm repo add ibm-helm https://raw.githubusercontent.com/IBM/charts/master/repo/ibm-helm --force-update
helm pull --untar ibm-helm/ibm-devops-solution-workbench --version 5.2.3
#Pull ibm helm charts
CHART_VERSION=5.2.3
helm repo add ibm-helm https://raw.githubusercontent.com/IBM/charts/master/repo/ibm-helm --force-update
helm pull --untar ibm-helm/ibm-devops-solution-workbench --version ${CHART_VERSION}
#
#Required
#External fully qualified domain name of the cluster
#See Installation of DevOps Solution Workbench documentation for more details:
#https://docs-devops-solution-workbench.knowis.net/5.2/docs/installing-upgrading/
CLUSTER_DOMAIN=$(oc get -n openshift-ingress-operator ingresscontroller default -o jsonpath='{.status.domain}')
#E.g.: DOMAIN="k5-designer.apps.openshift.cluster.cloud"
DOMAIN="k5-designer.${CLUSTER_DOMAIN}"

#Optional
#External fully qualified url of openshift console
#E.g.: OPENSHIFT_CONSOLE_URL="https://console-openshift-console.apps.openshift.cluster.cloud"
OPENSHIFT_CONSOLE_URL="https://console-openshift-console.${CLUSTER_DOMAIN}"

#Required
#Set value to 'true' to accept the license.
ACCEPT_LICENSE=

#Required
#Hostname of IBM Rational license server
#E.g.: "@license.domain"
LICENSE_SERVER=

#Required
#Secure seed required to generate passwords
#A random string
#Unrecoverable so keep it safe
PASSWORD_SEED=

#Required
NAMESPACE=devops-solution-workbench
HELM_NAME=devops-solution-workbench

#Optional
#if you are using an own or external mongoDB
#E.g.: "mongodb://mongo:[email protected]:27017/admin"
MONGODB_CONNECTION_STRING=

#Required
#Keycloak Config (including /auth path if required)
#e.g.: "https://keycloak.apps.openshift.cluster.cloud/auth
KEYCLOAK_URL=
KEYCLOAK_REALM="devops-solution-workbench"
KEYCLOAK_ADMIN_USERNAME=
KEYCLOAK_ADMIN_PW=

#Optional Additional Helm options
ADDITIONAL_HELM_OPTIONS=""

ROOT_DIR=./ibm-devops-solution-workbench

run_install() {

  if ! oc get namespace ${NAMESPACE} > /dev/null 2>&1; then
    oc create namespace ${NAMESPACE} || { echo "Failed to create namespace"; return 1; }
  fi
  
      
  if [ -n "${MONGODB_CONNECTION_STRING}" ]; then 
      if ! oc get secret mongodb-url-secret --namespace ${NAMESPACE} > /dev/null 2>&1; then
        oc create secret generic mongodb-url-secret --namespace ${NAMESPACE} --from-literal=connectionString="${MONGODB_CONNECTION_STRING}" 1> /dev/null || { echo "Failed to create MongoDB secret"; return 1; }
      fi
      HELM_OPTIONS="${HELM_OPTIONS} --set database.enabled=false"
  fi
  

   HELM_OPTIONS="${HELM_OPTIONS:-} \
   --set global.domain=${DOMAIN} \
   --set-literal global.passwordSeed=${PASSWORD_SEED} \
   --set global.rationalLicenseKeyServer=${LICENSE_SERVER} \
   --set global.k5.identity.url=${KEYCLOAK_URL} \
   --set global.k5.identity.realm=${KEYCLOAK_REALM} \
   --set global.k5.identity.username=${KEYCLOAK_ADMIN_USERNAME} \
   --set global.k5.identity.password=${KEYCLOAK_ADMIN_PW} \
   --set global.openshiftConsole=${OPENSHIFT_CONSOLE_URL} \
   --set k5-pipeline-manager.tekton.initialize=false \
   --set license="${ACCEPT_LICENSE}" 
   "

  HELM_OPTIONS="${HELM_OPTIONS} ${ADDITIONAL_HELM_OPTIONS}"

  helm upgrade --install ${HELM_NAME} ${ROOT_DIR} ${HELM_OPTIONS} -n ${NAMESPACE} --force-conflicts  || return 1

}

run_install

Uninstall

Delete the product:

NAMESPACE=devops-solution-workbench
HELM_NAME=devops-solution-workbench
helm uninstall $HELM_NAME -n $NAMESPACE

If you uninstall the helm deployment also the Custom Resource Definitions might be deleted (in case they were included in the helm deployment)!!!

The claims and persistent volumes that contain user data are not automatically be deleted. If you re-install the product these resources will be re-used if present.

To delete EVERYTHING, including user data contained in claims and persistent volumes

NAMESPACE=devops-model
oc delete project $NAMESPACE

Note: This will hang if the namespace contains workload which has not terminated.

Configuration

ParameterDescriptionDefault
licenseConfirmation that the EULA has been accepted. For example trueREQUIRED
global.domainDomain is the ingress domain which is used to create routes.REQUIRED
global.rationalLicenseKeyServerWhere floating licenses are hosted to entitle use of the product. For example @ip-addressREQUIRED
global.k5.identity.urlKeycloak URL (including /auth path if needed)REQUIRED
global.k5.identity.realmKeycloak Realm that will be created during installationREQUIRED
global.k5.identity.usernameKeycloak Admin usernameREQUIRED
global.k5.identity.passwordKeycloak Admin passwordREQUIRED
global.k5.autoscaling.enabledEnable/disable Horizontal Pod Autoscaling (if disabled 1 pod per service is created)true
global.k5.network.routing.routes.enabledEnable/disable creation of Routestrue
global.k5.runtime.enabledEnable/disable default runtime componentstrue
k5-pipeline-manager.tekton.initializeEnable/disable creation of tekton pipeline resources (if set to true OpenShift Pipelines needs to be installed before)true
database.enabledEnable/disable deployment and usage of included database (if set to false a own mongoDB instance must be provided)true
rbac.createEnable/disable creation of needed ServiceAccounts, RoleBindings and Rolestrue
runtime.aggregateRoles.createEnable/disable creation of aggregation roles (needed for runtime)true
runtime.crds.createEnable/disable creation of CustomResourceDefinitions (needed for runtime)true
runtime.scc.createEnable/disable creation of Security Context Constraints (needed for runtime)true
networkPolicy.createEnable/disable default Ingress Network Policyfalse
truststore.createEnable/disable creation of Default Truststoretrue

Routes Configuration

On OpenShift, the chart creates the following routes. They use the same host derived from global.domain (e.g. k5-designer.<cluster-domain>) except where a route has its own host.

In case the Routes need to be created manually the creation can be disabled via the helm chart setting: global.k5.network.routing.routes.enabled=false

The following table shows the required Routes:

Route NamePathTarget ServiceRewrite targetTarget portTLS policyTLS termination
k5-designer-frontend-route/k5-designer-frontend-service—httpsRedirectreencrypt
k5-designer-backend-route/backendk5-designer-backend-service/httpsRedirectreencrypt
k5-diagram-modeller-route/diagramk5-diagram-modeller-service/httpsRedirectreencrypt
k5-code-generation-provider-route/codegenk5-code-generation-provider-service/httpsRedirectreencrypt
k5-git-integration-controller-route/gick5-git-integration-controller-service/httpsRedirectreencrypt
k5-configuration-management/cfgk5-configuration-management—httpsRedirectreencrypt
k5-hub-backend-route/hubk5-hub-backend-service/httpsRedirectreencrypt
k5-shortlink-route/shortlinkk5-shortlink-service/httpsRedirectreencrypt
k5-pipeline-triggerwebhook— (own host)el-k5-git-trigger—http-listener—edge
  • Rewrite target: haproxy.router.openshift.io/rewrite-target annotation; — means not set.
  • k5-pipeline-triggerwebhook Route is only needed for "auto trigger" feature of Tekton Pipelines.

Solution Documentation

[DevOps Solution Workbench](https://docs-devops-solution-workbench.knowis.

Deploy ibm-devops-solution-workbench with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has ibm-devops-solution-workbench on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartibm-devops-solution-workbench is pinned at v5.2.3 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply