This repository collects invocation scripts for setting up OpenShift cluster for a Quick Start scenario in the Production Deployment Guide.
For more information on Production Deployment Guide, see https://pages.github.ibm.com/cloudpakbringup/production-deployment-guides/.
These are the pre-requisites:
- Provided bash environment
- Install the Github CLI (version 1.14.0+)
- Install the Git CLI
- Install the OpenShift CLI -
oc
(version 4.7 or 4.8) andopenshift-install
- Install the kubeseal CLI
- Install the Tekton CLI
- Install the ArgoCD CLI
- Install jq and yq tools:
- Access to a newly installed cluster or sufficient access to a platfor to setup a new OpenShift cluster
- Setup a sealed secret certificate - Sample Demo secret
GIT Personal Access Token and GitHub Organization instruction can be read at Personal Access Token and GitHub Organization.
Before running the installer setup the necessary environment variables:
export SOURCE_DIR="/path-to-setup-dir"
export GITHUB_TOKEN="ghp_nnnnnnnnnnnnnnnnnnnnn"
export GIT_USER="gituser"
export GIT_TOKEN="ghp_nnnnnnnnnnnnnnnnnnnnn"
export GIT_ORG="git_organization"
export SEALED_SECRET_KEY_FILE=./ss.yaml
export OUTPUT_DIR="gitops"
export RWX_STORAGECLASS="ocs-storagecluster-cephfs"
export IBM_ENTITLEMENT_KEY="xxxxxxxxxxxxxxxxxx"
## component switches
export ADD_INFRA="yes"
export ADD_MQ="yes"
export ADD_MQAPPS="yes"
export ADD_ACE="yes"
export ADD_ACEAPPS="yes"
export ADD_APIC="yes
export ADD_CPD="yes"
export ADD_PROCMINING="yes"
Run the quickstart program
git clone https://github.com/vbudi000/cloudpak-quickstart
echo $GITHUB_TOKEN | gh auth login --with-token
./cloudpak-quickstart/scripts/quickstart.sh
You can initiate the script using the following procedure, on a working directory that is not under git, download startqs.sh
:
curl -sfL https://raw.githubusercontent.com/vbudi000/cloudpak-quickstart/master/startqs.sh > startqs.sh
Edit the environment parameters section of the downloaded script:
###########################################################
# Change the following environment variables
###########################################################
export GIT_USER="gituser"
export GITHUB_TOKEN="ghp_key"
export GIT_ORG="git-org"
export IBM_ENTITLEMENT_KEY="entitlement-key"
export SEALED_SECRET_KEY_FILE=./shared-secret.yaml
export RWX_STORAGECLASS="ocs-storagecluster-cephfs"
###########################################################
# Start deployment of Quick Start - pick and choose the components to enable
###########################################################
export ADD_INFRA=yes
export ADD_MQ=yes
export ADD_MQAPPS=yes
export ADD_ACE=yes
export ADD_ACEAPPS=yes
export ADD_APIC=yes
export ADD_CPD=yes
export ADD_PROCMINING=yes
###########################################################
# End environment variable changes
###########################################################
Either provide the OpenShift environment using oc login
or create install-config.yaml
file in the directory and invoke the script
bash startqs.sh
See it in action: