The intention of this repository is to help support practical use of OpenShift for workloads and provide a collection of configurations / demos / workshops.
Please look at the GitOps Catalog if you only need to automate an operator install.
In this repo, look at various kustomized configs and argo apps for ideas.
For issues with oc apply -k see the known issues section below.
- OpenShift 4.16+
Red Hat Demo Platform Options (Tested)
NOTE: The node sizes below are the recommended minimum to select for provisioning
- AWS with OpenShift Open Environment
- 1 x Control Plane -
m6a.2xlarge - 0 x Workers -
m6a.2xlarge
- 1 x Control Plane -
- One Node OpenShift
- 1 x Control Plane -
m6a.2xlarge
- 1 x Control Plane -
- MLOps Demo: Data Science & Edge Practice
Install the OpenShift Web Terminal
The following icon should appear in the top right of the OpenShift web console after you have installed the operator. Clicking this icon launches the web terminal.
NOTE: Reload the page in your browser if you do not see the icon after installing the operator.
Make the enhanced web terminal permanent
# apply the enhanced web terminal
oc apply -k https://github.com/redhat-na-ssa/demo-ai-gitops-catalog/demos/components/install-web-terminal
# delete old web terminal
$(wtoctl | grep 'oc delete')Enhance the terminal for one time use (ephemeral)
# bootstrap the enhanced web terminal
YOLO_URL=https://raw.githubusercontent.com/redhat-na-ssa/demo-ai-gitops-catalog/main/scripts/library/term.sh
. <(curl -s "${YOLO_URL}")
term_initNOTE: open a new terminal to full activate the new configuration
- Verify you are logged into your cluster using
oc. - Clone this repository
NOTE: See the tools section below for more info
# verify oc login
oc whoami
# git clone this repo
git clone https://github.com/redhat-na-ssa/demo-ai-gitops-catalog
cd demo-ai-gitops-catalog
# load functions into a bash shell
. scripts/functions.shSetup basic cluster config
until oc apply -k demo/default; do : ; doneThe following cli tools are required:
bash,gitoc- Download mac, linux, windowskubectl(optional) - Included inocbundlekustomize(optional) - Download mac, linux
NOTE: bash, git, and oc are available in the OpenShift Web Terminal
The following are used to encrypt secrets and are optional:
Please run the following before submitting a PR / commit
scripts/lint.shGeneral
ArgoCD
