From a33ca0ddcf3cb3a816949c676506cb9f4e12d808 Mon Sep 17 00:00:00 2001 From: James Blair Date: Wed, 30 Aug 2023 13:00:18 +1200 Subject: [PATCH] Added setup step for installing OpenShift Serverless. --- .../README.org | 28 +++++++++++++++++-- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/2023-08-31-openshift-rails-workshop/README.org b/2023-08-31-openshift-rails-workshop/README.org index 6108449..075cfca 100644 --- a/2023-08-31-openshift-rails-workshop/README.org +++ b/2023-08-31-openshift-rails-workshop/README.org @@ -1,5 +1,5 @@ #+TITLE: ROSA Ruby On Rails Workshop -#+AUTHOR: James Blair, Shawn Gerrard +#+AUTHOR: James Blair #+DATE: <2023-08-18 Fri 13:30> * Introduction @@ -7,15 +7,17 @@ This document captures the setup steps for a 90-minute, hands-on [[https://rubyonrails.org/][Ruby On Rails]] workshop on [[https://www.redhat.com/en/technologies/cloud-computing/openshift][Openshift]]. Within the session, participants will: + - Gain an understanding of OpenShift and containers. - Work with a Ruby codebase in [[https://bitbucket.org/product/][Bitbucket]]. - - Deploy the application on Openshift. + - Deploy the application on Openshift using several methods. - Create continuous delivery pipelines with [[https://tekton.dev/docs/][Tekton]]. * Pre-requisites This guide assumes you have an existing Openshift 4.10+ cluster with cluster admin permissions. - In my case I have a Red Hat OpenShift on AWS (ROSA) cluster provisioned + In my case I have a Red Hat OpenShift on AWS (ROSA) cluster provisioned through the Red Hat [[https://demo.redhat.com][demo system]]. + * 1 - Preparing the cluster @@ -200,3 +202,23 @@ EOF #+RESULTS: : subscription.operators.coreos.com/web-terminal created + + +* 6 - Install openshift serverless operator + +For our final cluster setup task we will install the [[https://www.redhat.com/en/technologies/cloud-computing/openshift/serverless][OpenShift Serverless]] operator. We'll use this during the workshop to show just how easy it is to convert a traditional Ruby application deployment into a serverless scale to zero application. + +#+begin_src bash :results output +cat << EOF | oc apply --filename - +apiVersion: operators.coreos.com/v1alpha1 +kind: Subscription +metadata: + name: serverless-operator + namespace: openshift-operators +spec: + channel: stable + name: serverless-operator + source: redhat-operators + sourceNamespace: openshift-marketplace +EOF +#+end_src