Digital Developer Conference: Hybrid Cloud
  • Introduction
  • Getting Started
    • Pre-work
  • Threat Modeling & Identity Management
    • Lecture
      • Threat Modeling
      • Identity Management
      • Prerequisites
    • Lab 1
      • Clone the repo
      • Creating App ID in IBM Cloud
      • Building the front end service
      • Deploying to OpenShift
      • Test the Simulator
  • Operator Workshop
    • Lecture
      • Introduction
    • Lab 2
      • Install the PostgreSQL Operator
      • Create an instance of a database
      • Load the schema
      • Expose and verify
  • Microservice Workshop
    • Lecture
      • Introduction
      • Prerequisites
    • Lab 3
      • Part 1
      • Part 2
  • Microservice Workshop (OSS)
    • Lecture
      • Introduction
      • Prerequisites
    • Lab
      • Database setup
      • Part 1
      • Part 2
  • Serverless Workshop
    • Introduction
      • Example Bank App Architecture
      • Serverless
      • Prerequisites
      • Quick Install - Identity Management, Operator, Microservices Workshops
    • Lab 4
      • Installing OpenShift Serverless
      • Installing Knative Serving
      • Clone the repo
      • Create an admin scoped user
      • Building the example serverless application
      • Configure Deployment file
      • Deploying to OpenShift Serverless
      • Test the Serverless App
      • Modify Serverless App
      • Conclusion
  • Service Mesh Workshop
    • ServiceMesh Lab
  • Pipelines (Tekton) Workshop
    • Lecture
      • What is tekton?
      • CI/CD
      • Explain tasks and pipelines
    • Lab 6
      • Cluster Setup
      • Install Pipeline
  • Resources
    • IBM Developer
Powered by GitBook
On this page
  • 1. Target your cluster
  • 2. Login to IBM Cloud
  • 3. Clone the repo
  • 4. re-create the example-bank project
  • 5. Install the PostgreSQL Operator and start an instance of a database
  • 6. Create an AppID instance
  • 7. Create Secrets
  • 8. Apply schema

Was this helpful?

  1. Pipelines (Tekton) Workshop
  2. Lab 6

Cluster Setup

Let us get your OpenShift cluster in the correct state.

1. Target your cluster

Log in to your IBM Cloud account and navigate to the overview page for your OpenShift cluster. Click on the OpenShift web console button in the upper right corner. On web console, click the menu in the upper right corner (the label contains your email address), and select Copy Login Command. Paste the command into your local console window. It should resemble the following example:

oc login https://c100-e.us-east.containers.cloud.ibm.com:XXXXX --token=XXXXXXXXXXXXXXXXXXXXXXXXXX

2. Login to IBM Cloud

ibmcloud login -u <account name>

remember to use account "1": this is where we will create an AppID instance (if you do not already have one...)

3. Clone the repo

git clone https://github.com/IBM/example-bank.git

4. re-create the example-bank project

If you have been with us for any part of the lab track, I am sorry to say you will need to delete your hard earned work!

oc delete project example-bank

Otherwise, everyone please execute:

oc new-project example-bank

5. Install the PostgreSQL Operator and start an instance of a database

cd example-bank/scripts
./deploy-db.sh

6. Create an AppID instance

./createappid.sh

pay attention to the result of this script: you will need the Management URL and API Key for the next command. If you already have an instance of AppID, you can retrieve the values you need using ibmcloud resource service-key appid-example-bank-credentials

7. Create Secrets

./createsecrets.sh <ManagementURL> <APIKey>

8. Apply schema

Once your database is running:

cd ..
oc apply -f data_model/job.yaml
PreviousLab 6NextInstall Pipeline

Last updated 4 years ago

Was this helpful?