Slide 1

Slide 1 text

Serverless Computing in Azure Kubernetes Service mit KEDA Thorsten Hans @ThorstenHans Consultant

Slide 2

Slide 2 text

Focus: Cloud Native & Infrastructure as Code Consultant @ Thinktecture AG [email protected] [email protected] thinktecture.com thorsten-hans.com @ThorstenHans Thorsten Hans

Slide 3

Slide 3 text

Talking Points Scaling in Kubernetes Scaling with KEDA Hands-On

Slide 4

Slide 4 text

Kubernetes scaling capabilities § Manual scaling § Load based scaling § Horizontal Pod Autoscaler § AKS Cluster Autoscaling Scaling in Kubernetes

Slide 5

Slide 5 text

Manual scaling Scaling in Kubernetes

Slide 6

Slide 6 text

Horizontal Pod Autoscaler (HPA) Scaling in Kubernetes

Slide 7

Slide 7 text

Cluster Auto-Scaler in Azure Kubernetes Service (AKS) Scaling in Kubernetes

Slide 8

Slide 8 text

Talking Points Scaling in Kubernetes Scaling with KEDA Hands-On

Slide 9

Slide 9 text

Kubernetes Event-driven Autoscaling § https://keda.sh § Cloud Native Computing Foundation sandbox project § Vendor Agnostic § Contextual Autoscaling § Ships with 25 built-in scalers § Built-in Azure Functions Support What is KEDA

Slide 10

Slide 10 text

Architecture KEDA https://keda.sh/docs/2.0/concepts/

Slide 11

Slide 11 text

Messaging System / Database / Cache / … Architecture Simplified KEDA Kubernetes Cluster KEDA Operator Kubernetes Pod Kubernetes Pod Kubernetes Pod Kubernetes Pod Kubernetes Pod Kubernetes Pod Kubernetes Pod Kubernetes Pod Kubernetes Pod

Slide 12

Slide 12 text

Flexbile scaling § Scale based on actual load § Built-in scalers for § Databases § Messaging engines § Telemetry systems § Cache engines § Unified configuration approach § ScaledObject specification KEDA Scalers

Slide 13

Slide 13 text

Talking Points Scaling in Kubernetes Scaling with KEDA Hands-On

Slide 14

Slide 14 text

Async Processing with Azure Functions and KEDA Demo Architecture Local Machine Message Producer Azure Public Cloud Azure Storage Account Queue (aaa-tasks) Azure Storage Account Queue (aaa-transformed) Azure Storage Account Blobs (processed) Azure Kubernetes Service KEDA Operator Message Transformer (Azure Functions Container) Message Dispatcher (Azure Functions Container) Horizontal Pod Autoscaler

Slide 15

Slide 15 text

Kubernetes Event-driven Autoscaling - Install KEDA - Deploy Azure Functions - Configure Connections to Azure Storage - Deploy ScaledObjects - Produce Load to verify scaling Demo

Slide 16

Slide 16 text

KEDA outperforms traditional resource based scaling in Kubernetes where fine-granular components have to scale contextually Takeaway

Slide 17

Slide 17 text

DEMO Source Code is on GitHub https://github.com/thinktecture/keda-webinar-november-2020