Slide 1

Slide 1 text

OpenShift Developer Experience Office Hours March 2, 2021 Serverless on OpenShift

Slide 2

Slide 2 text

CONFIDENTIAL Designator What’s we are going to talk about? 2 What new in OpenShift 4.7 with Serverless What’s in pipeline for OpenShift upcoming release

Slide 3

Slide 3 text

CONFIDENTIAL Designator Serverless 3 “Serverless computing refers to the concept of building and running applications that do not require server management. It describes a finer-grained deployment model where applications, bundled as one or more functions are uploaded to a platform and then executed, scaled, and billed in response to the exact demand needed at the moment” -- CNCF Definition, https://www.cncf.io/blog/2018/02/14/cncf-takes-first-step-towards-serverless-computing/ Serverless

Slide 4

Slide 4 text

Kubernetes-based platform to deploy and manage modern serverless workloads. Knative 4 https://knative.dev

Slide 5

Slide 5 text

5 Serving A request-driven model that serves the container with your application and can "scale to zero". Eventing Common infrastructure for consuming and producing events that will stimulate applications. Knative Serverless Components

Slide 6

Slide 6 text

New features added in 4.7 Serverless 6 ● Ability to list/create serving and eventing resources from Admin Perspective

Slide 7

Slide 7 text

New features added in 4.7 Serverless 7 ● Event Source Catalog: EventSources are part of catalog now to improve scalability for better user experience ● Camel Connector: Added support for kamelets (Camel Connector) as part of EventSource catalog

Slide 8

Slide 8 text

New features added in 4.7 Serverless 8 ● Event Sources Catalog

Slide 9

Slide 9 text

New features added in 4.7 Serverless 9 ● Channels and Subscriptions

Slide 10

Slide 10 text

Source → Service : Channel & Subscription Serverless 10 ● Multiple Services can consume the same event ● Subscription can point to a reply channel (not shown here) ● Various Channel Backends available ○ In-Memory, Kafka, GCP PubSub, (write your own) ● Drawbacks: ○ No filtering, Service gets always all events Source Sink Sink Subscription Subscription Source Channel

Slide 11

Slide 11 text

New features added in 4.7 Serverless 11 ● Brokers and Triggers

Slide 12

Slide 12 text

12 Serverless Source → Service: Broker & Trigger Broker ● Eventing Mesh for distributing Events ● Addressed by sources as sink Broker Source Source Sink Sink Trigger filter = Trigger filter = Trigger ● Filter on CloudEvent attributes (e.g. type) ● Connects a Sink with Broker

Slide 13

Slide 13 text

Upcoming features Serverless 13 ● Visualize Serverless functions

Slide 14

Slide 14 text

Upcoming features Serverless 14 ● Advance Scaling options for knative Service

Slide 15

Slide 15 text

Upcoming features Serverless 15 ● Migrate existing workloads to serverless (knative service) with a click

Slide 16

Slide 16 text

From Deployment to KService Serverless 16 apiVersion: apps/v1 kind: Deployment metadata: name: random spec: replicas: 1 selector: matchLabels: app: random template: metadata: labels: app: random spec: containers: - image: rhuss/random name: random ports: - containerPort: 8080 apiVersion: serving.knative.dev/v1 kind: Service metadata: name: random spec: replicas: 1 selector: matchLabels: app: random template: metadata: labels: app: random spec: containers: - image: rhuss/random name: random ports: - containerPort: 8080 No more K8s Service or Ingress/Route required !

Slide 17

Slide 17 text

Demo Serverless 17

Slide 18

Slide 18 text

18 http://dn.dev/knative-cookbook

Slide 19

Slide 19 text

https://k8spatterns.io https://twitter.com/ro14nd https://twitter.com/k8spatterns https://twitter.com/mwessendorf Thank you 19