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

Was this helpful?

  1. Serverless Workshop
  2. Lab 4

Configure Deployment file

PreviousBuilding the example serverless applicationNextDeploying to OpenShift Serverless

Last updated 4 years ago

Was this helpful?

Verify deployment file

Open bank-knative-service/deployment.yaml file

  • Make sure the image name is correct. It's the one you built on the previous step,

containers:
  - image: <YOUR_DOCKER_HUB>/serverless-workshop-example:1.0

Verify the environment variables below. The secret bank-oidc-adminuser-workshop that you created will be used by this serverless app. The secret mobile-simulator-secrets was created during the previous labs. The environment variable TRANSACTION_SERVICE_URL points to the transaction microservice from the previous lab as well.

envFrom:
  - secretRef:
    name: bank-oidc-adminuser-workshop
  - secretRef:
    name: mobile-simulator-secrets
env:
  - name: TRANSACTION_SERVICE_URL
    value: "http://transaction-service:9080/bank/v1/transactions"
Building the example serverless application