SlideShare a Scribd company logo
API MANAGER
Cloud Native APIs: The API Operator
for Kubernetes
Pubudu Gunatilaka
Technical Lead
Dinusha Dissanayake
Senior Software Engineer
API MANAGER
Agenda
● Kubernetes
● Expose services as managed APIs
● Kubernetes Operators
● The API Operator for Kubernetes
● Custom Resources
● Deployment modes for APIs
● The need for the API operator for Kubernetes
● Demo on API Operator
Kubernetes
● Kubernetes (K8s) is an open source
system for automating deployment,
scaling, and managing containerized
workloads across multiple host
machines.
● By Google
User Story
Online Shopping Store
Products Microservice
Inventory Microservice
Review Microservice
User Story
Online Shopping Store
Products Microservice
Inventory Microservice
Review Microservice
Products
API
Inventory
API
To expose as a managed API...
● Apply security
● Apply rate limiting
● Apply mediation
● API marketplace for API discovery
● API documentation
API MANAGER
The API Operator for
Kubernetes
7
API MANAGER
Kubernetes Operators
8
Kubernetes Operators
● Operators are software extensions to Kubernetes that
uses the custom resources for packaging, deploying
and managing applications.
● Hides the deployment complexities
● No need of domain specific knowledge for the
application management
● List of K8s operators - https://operatorhub.io/
The API Operator for Kubernetes
● Makes APIs a first-class citizen in the Kubernetes
ecosystem
● Provides fully automated experience for cloud-native
API management
● OpenAPI definition (Swagger) as one single source of
truth
Cloud Native APIs: The API Operator for Kubernetes
The API Operator Overview
API CRD API Controller
API Operator
K8s API Server
Docker Registry
apictl add api -n products-api
--from-file=products_swagger.yaml
Custom Resources
● API
● Security
● Rate Limiting
● Target Endpoint
Custom Resources
● API - holds API related information
apiVersion: wso2.com/v1alpha1
kind: API
metadata:
name: "product-api"
spec:
definition:
configmapName: "product-api-swagger"
type: swagger
replicas: 1
mode: privateJet
Custom Resources
● Security - holds security related information
apiVersion: wso2.com/v1alpha1
kind: Security
metadata:
name: petstorejwt
spec:
# Security - JWT
type: JWT
issuer: https://wso2apim:32001/oauth2/token
audience: http://org.wso2.apimgt/gateway
# Create secret with certificate and add secret name
certificate: wso2am-secret
OPENAPI Defintion
security:
- petstorejwt: []
Custom Resources
● Rate Limiting - holds rate limiting related information
apiVersion: wso2.com/v1alpha1
kind: RateLimiting
metadata:
name: fourreqpolicy
namespace: app1-ns
spec:
type: application
description: Allow 4 requests per minute # optional
timeUnit: min
unitTime: 1
requestCount:
limit: 4
OPENAPI Defintion
x-wso2-throttling-tier: fourreqpolicy
Custom Resources
● Target Endpoint - holds endpoint related information
apiVersion: wso2.com/v1alpha1
kind: TargetEndpoint
metadata:
name: products-service
labels:
app: app2
spec:
protocol: http
port: 9090
deploy:
name: products-service
dockerImage: pubudu/products:1.0.0
count: 1
mode : sidecar
OPENAPI Defintion
x-wso2-production-endpoints: products-service
x-wso2-mode: sidecar
Deployment modes for APIs
● Private Jet
● Sidecar
● Shared
Deployment modes for APIs
● Private Jet
Pod
API Microgateway
Container
/API1
Pod
Microservice
Container
Pod
Microservice
Container
❏ Scale separately
❏ Dedicated gateway for the
API
Deployment modes for APIs
● Sidecar
❏ Scale microservice with the
gateway
❏ Dedicated gateway for the
API
Pod
API
Microgateway
Container
/API1
Microservice
Container
Deployment modes for APIs
● Shared
❏ Multiple APIs deployed in the
gateway
❏ Label based API grouping
Pod
API Microgateway
Container
/API1
/API2
/API3
Pod
Microservice
Container
Pod
Microservice
Container
Pod
Microservice
Container
The Need for an API Operator for Kubernetes
● Hides the API deployment complexities
● Simplify exposing a managed API for a service
● Handles auto scaling for API Gateway
● Switch between private and sidecar mode deployment
patterns easily
● Deploy and manage backend services
● Easy to promote APIs between the environments (Dev,
QA, Prod)
Demo
Demo Scenario
• Deploying microservice on k8s cluster and
invoking
• Configuring API operator, API portal, token
service and monitoring artifacts
• Exposing the deployed microservices as a
managed API using API Operator
• Push the API to API portal
• Invoke the API and monitoring
24
Pre-requisites
• Kubectl
• Kubernetes cluster (v1.12 or above) with 8GB memory
and 2vCPUs
• Docker-Hub account
• API Operator distribution
– https://github.com/wso2/k8s-apim-operator/releases/download/v1.0.
0/api-k8s-crds-1.0.0.zip
• API Command Line Tool
– https://wso2.com/api-management/tooling/
25
Try API Operator for Kubernetes
https://github.com/wso2/k8s-apim-operator/tree/v1.0.0
26
Q & A
Join us on Slack - https://wso2-apim.slack.com/
Invitation link for Slack - http://bit.ly/332VYeC
API MANAGER
THANK YOU
wso2.com

More Related Content

PDF
Kubernetes Operators: Rob Szumski
PDF
Kubernetes extensibility: crd & operators
PDF
Operator SDK for K8s using Go
PDF
[APIdays Paris 2019] From Microservices to APIs: The API operator in Kubernetes
PDF
Continuous Delivery on Kubernetes Using Spinnaker
PDF
[Lakmal] Automate Microservice to API
PDF
kubernetes operators
PDF
Mój przepis na skalowalną architekturę mikroserwisową? Apollo Federation i Gr...
Kubernetes Operators: Rob Szumski
Kubernetes extensibility: crd & operators
Operator SDK for K8s using Go
[APIdays Paris 2019] From Microservices to APIs: The API operator in Kubernetes
Continuous Delivery on Kubernetes Using Spinnaker
[Lakmal] Automate Microservice to API
kubernetes operators
Mój przepis na skalowalną architekturę mikroserwisową? Apollo Federation i Gr...

What's hot (20)

PPTX
Kubernetes 1.16 and rancher 2.3 enhancements
PDF
Cloud-Native Modernization or Death? A false dichotomy. | DevNation Tech Talk
PDF
Quarkus: From developer joy to Kubernetes nirvana! | DevNation Tech Talk
PDF
Kubernetes Logging
PPTX
Helm at reddit: from local dev, staging, to production
PPTX
betterCode Workshop: Effizientes DevOps-Tooling mit Go
PDF
Crossing the Streams! Rollout Strategies to Keep Your Users Happy!
PPTX
KUBEBOOT - SPRING BOOT DEPLOYMENT ON KUBERNETES HAS NEVER BEEN SO EASY
PDF
Cloud-Native Drupal: a survival guide
PDF
01. lab instructions starting project
PPTX
Kubernetes Controller for Pull Request Based Environment
PDF
GPU enablement for data science on OpenShift | DevNation Tech Talk
PDF
Deploying Anything as a Service (XaaS) Using Operators on Kubernetes
PDF
Kubernetes-native or not? When should you ditch your traditional CI/CD server...
PDF
Crafting Kubernetes Operators
PDF
Exploring Kubeflow on Kubernetes for AI/ML | DevNation Tech Talk
PDF
Machine learning with Apache Spark on Kubernetes | DevNation Tech Talk
PPTX
Monoliths to Microservices with Jave EE and Spring Boot
PPTX
CICD With GitHub, Travis, SonarCloud and Docker Hub
PDF
Serverless stream processing of Debezium data change events with Knative | De...
Kubernetes 1.16 and rancher 2.3 enhancements
Cloud-Native Modernization or Death? A false dichotomy. | DevNation Tech Talk
Quarkus: From developer joy to Kubernetes nirvana! | DevNation Tech Talk
Kubernetes Logging
Helm at reddit: from local dev, staging, to production
betterCode Workshop: Effizientes DevOps-Tooling mit Go
Crossing the Streams! Rollout Strategies to Keep Your Users Happy!
KUBEBOOT - SPRING BOOT DEPLOYMENT ON KUBERNETES HAS NEVER BEEN SO EASY
Cloud-Native Drupal: a survival guide
01. lab instructions starting project
Kubernetes Controller for Pull Request Based Environment
GPU enablement for data science on OpenShift | DevNation Tech Talk
Deploying Anything as a Service (XaaS) Using Operators on Kubernetes
Kubernetes-native or not? When should you ditch your traditional CI/CD server...
Crafting Kubernetes Operators
Exploring Kubeflow on Kubernetes for AI/ML | DevNation Tech Talk
Machine learning with Apache Spark on Kubernetes | DevNation Tech Talk
Monoliths to Microservices with Jave EE and Spring Boot
CICD With GitHub, Travis, SonarCloud and Docker Hub
Serverless stream processing of Debezium data change events with Knative | De...
Ad

Similar to Cloud Native APIs: The API Operator for Kubernetes (20)

PDF
Creating a Scalable and Decentralized API Management Architecture with WSO2 A...
PPT
Kubernetes for Cloud-Native Environments
PDF
The Kubernetes Gateway API and its role in Cloud Native API Management
PDF
How to Build a Scalable, Distributed, Multi-Cloud API Architecture on Kubernetes
PPTX
API Services: Building State-of-the-Art APIs
PDF
Apicurio Registry: Event-driven APIs & Schema governance for Apache Kafka | F...
PDF
Introducing API Manager 1.7
PDF
WSO2 API Microgateway for Easier Development and Greater Scalability
PDF
Automate NGINX with DevOps Tools
PDF
[Workshop] API Management in Microservices Architecture
PDF
Spinnaker Summit 2018: CI/CD Patterns for Kubernetes with Spinnaker
PDF
Docker on docker leveraging kubernetes in docker ee
PPTX
Kube con china_2019_7 missing factors for your production-quality 12-factor apps
PPTX
MongoDB World 2018: Partner Talk - Red Hat: Deploying to Enterprise Kubernetes
PDF
Api management update for optus
PDF
[Workshop] Managing the API lifecycle with Open Source Technologies
PDF
The Best of Both Worlds: Introducing WSO2 API Manager 4.0.0
PPTX
APIdays Paris 2014 - Workshop - Craft and Deploy Your API in a Few Clicks Wit...
PDF
AWS Summit Singapore 2019 | Latest Trends for Cloud-Native Application Develo...
PDF
Centralize and Simplify Secrets Management for Red Hat OpenShift Container En...
Creating a Scalable and Decentralized API Management Architecture with WSO2 A...
Kubernetes for Cloud-Native Environments
The Kubernetes Gateway API and its role in Cloud Native API Management
How to Build a Scalable, Distributed, Multi-Cloud API Architecture on Kubernetes
API Services: Building State-of-the-Art APIs
Apicurio Registry: Event-driven APIs & Schema governance for Apache Kafka | F...
Introducing API Manager 1.7
WSO2 API Microgateway for Easier Development and Greater Scalability
Automate NGINX with DevOps Tools
[Workshop] API Management in Microservices Architecture
Spinnaker Summit 2018: CI/CD Patterns for Kubernetes with Spinnaker
Docker on docker leveraging kubernetes in docker ee
Kube con china_2019_7 missing factors for your production-quality 12-factor apps
MongoDB World 2018: Partner Talk - Red Hat: Deploying to Enterprise Kubernetes
Api management update for optus
[Workshop] Managing the API lifecycle with Open Source Technologies
The Best of Both Worlds: Introducing WSO2 API Manager 4.0.0
APIdays Paris 2014 - Workshop - Craft and Deploy Your API in a Few Clicks Wit...
AWS Summit Singapore 2019 | Latest Trends for Cloud-Native Application Develo...
Centralize and Simplify Secrets Management for Red Hat OpenShift Container En...
Ad

More from WSO2 (20)

PDF
Demystifying CMS-0057-F - Compliance Made Seamless with WSO2
PDF
Quantum Threats Are Closer Than You Think – Act Now to Stay Secure
PDF
Modern Platform Engineering with Choreo - The AI-Native Internal Developer Pl...
PDF
Application Modernization with Choreo - The AI-Native Internal Developer Plat...
PDF
Build Smarter, Deliver Faster with Choreo - An AI Native Internal Developer P...
PDF
Platformless Modernization with Choreo.pdf
PDF
Application Modernization with Choreo for the BFSI Sector
PDF
Choreo - The AI-Native Internal Developer Platform as a Service: Overview
PDF
[Roundtable] Choreo - The AI-Native Internal Developer Platform as a Service
PPTX
WSO2Con 2025 - Building AI Applications in the Enterprise (Part 1)
PPTX
WSO2Con 2025 - Building Secure Business Customer and Partner Experience (B2B)...
PPTX
WSO2Con 2025 - Building Secure Customer Experience Apps
PPTX
WSO2Con 2025 - AI-Driven API Design, Development, and Consumption with Enhanc...
PPTX
WSO2Con 2025 - AI-Driven API Design, Development, and Consumption with Enhanc...
PPTX
WSO2Con 2025 - Unified Management of Ingress and Egress Across Multiple API G...
PPTX
WSO2Con 2025 - How an Internal Developer Platform Lets Developers Focus on Code
PPTX
WSO2Con 2025 - Architecting Cloud-Native Applications
PDF
Mastering Intelligent Digital Experiences with Platformless Modernization
PDF
Accelerate Enterprise Software Engineering with Platformless
PDF
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
Demystifying CMS-0057-F - Compliance Made Seamless with WSO2
Quantum Threats Are Closer Than You Think – Act Now to Stay Secure
Modern Platform Engineering with Choreo - The AI-Native Internal Developer Pl...
Application Modernization with Choreo - The AI-Native Internal Developer Plat...
Build Smarter, Deliver Faster with Choreo - An AI Native Internal Developer P...
Platformless Modernization with Choreo.pdf
Application Modernization with Choreo for the BFSI Sector
Choreo - The AI-Native Internal Developer Platform as a Service: Overview
[Roundtable] Choreo - The AI-Native Internal Developer Platform as a Service
WSO2Con 2025 - Building AI Applications in the Enterprise (Part 1)
WSO2Con 2025 - Building Secure Business Customer and Partner Experience (B2B)...
WSO2Con 2025 - Building Secure Customer Experience Apps
WSO2Con 2025 - AI-Driven API Design, Development, and Consumption with Enhanc...
WSO2Con 2025 - AI-Driven API Design, Development, and Consumption with Enhanc...
WSO2Con 2025 - Unified Management of Ingress and Egress Across Multiple API G...
WSO2Con 2025 - How an Internal Developer Platform Lets Developers Focus on Code
WSO2Con 2025 - Architecting Cloud-Native Applications
Mastering Intelligent Digital Experiences with Platformless Modernization
Accelerate Enterprise Software Engineering with Platformless
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation

Recently uploaded (20)

PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Approach and Philosophy of On baking technology
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
KodekX | Application Modernization Development
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PPTX
Cloud computing and distributed systems.
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
Big Data Technologies - Introduction.pptx
PPTX
sap open course for s4hana steps from ECC to s4
PDF
Chapter 3 Spatial Domain Image Processing.pdf
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
NewMind AI Weekly Chronicles - August'25 Week I
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Reach Out and Touch Someone: Haptics and Empathic Computing
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Review of recent advances in non-invasive hemoglobin estimation
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Dropbox Q2 2025 Financial Results & Investor Presentation
MYSQL Presentation for SQL database connectivity
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Approach and Philosophy of On baking technology
Programs and apps: productivity, graphics, security and other tools
KodekX | Application Modernization Development
MIND Revenue Release Quarter 2 2025 Press Release
Cloud computing and distributed systems.
Unlocking AI with Model Context Protocol (MCP)
Big Data Technologies - Introduction.pptx
sap open course for s4hana steps from ECC to s4
Chapter 3 Spatial Domain Image Processing.pdf
The AUB Centre for AI in Media Proposal.docx
Diabetes mellitus diagnosis method based random forest with bat algorithm
NewMind AI Weekly Chronicles - August'25 Week I

Cloud Native APIs: The API Operator for Kubernetes

  • 1. API MANAGER Cloud Native APIs: The API Operator for Kubernetes Pubudu Gunatilaka Technical Lead Dinusha Dissanayake Senior Software Engineer
  • 2. API MANAGER Agenda ● Kubernetes ● Expose services as managed APIs ● Kubernetes Operators ● The API Operator for Kubernetes ● Custom Resources ● Deployment modes for APIs ● The need for the API operator for Kubernetes ● Demo on API Operator
  • 3. Kubernetes ● Kubernetes (K8s) is an open source system for automating deployment, scaling, and managing containerized workloads across multiple host machines. ● By Google
  • 4. User Story Online Shopping Store Products Microservice Inventory Microservice Review Microservice
  • 5. User Story Online Shopping Store Products Microservice Inventory Microservice Review Microservice Products API Inventory API
  • 6. To expose as a managed API... ● Apply security ● Apply rate limiting ● Apply mediation ● API marketplace for API discovery ● API documentation
  • 7. API MANAGER The API Operator for Kubernetes 7
  • 9. Kubernetes Operators ● Operators are software extensions to Kubernetes that uses the custom resources for packaging, deploying and managing applications. ● Hides the deployment complexities ● No need of domain specific knowledge for the application management ● List of K8s operators - https://operatorhub.io/
  • 10. The API Operator for Kubernetes ● Makes APIs a first-class citizen in the Kubernetes ecosystem ● Provides fully automated experience for cloud-native API management ● OpenAPI definition (Swagger) as one single source of truth
  • 12. The API Operator Overview API CRD API Controller API Operator K8s API Server Docker Registry apictl add api -n products-api --from-file=products_swagger.yaml
  • 13. Custom Resources ● API ● Security ● Rate Limiting ● Target Endpoint
  • 14. Custom Resources ● API - holds API related information apiVersion: wso2.com/v1alpha1 kind: API metadata: name: "product-api" spec: definition: configmapName: "product-api-swagger" type: swagger replicas: 1 mode: privateJet
  • 15. Custom Resources ● Security - holds security related information apiVersion: wso2.com/v1alpha1 kind: Security metadata: name: petstorejwt spec: # Security - JWT type: JWT issuer: https://wso2apim:32001/oauth2/token audience: http://org.wso2.apimgt/gateway # Create secret with certificate and add secret name certificate: wso2am-secret OPENAPI Defintion security: - petstorejwt: []
  • 16. Custom Resources ● Rate Limiting - holds rate limiting related information apiVersion: wso2.com/v1alpha1 kind: RateLimiting metadata: name: fourreqpolicy namespace: app1-ns spec: type: application description: Allow 4 requests per minute # optional timeUnit: min unitTime: 1 requestCount: limit: 4 OPENAPI Defintion x-wso2-throttling-tier: fourreqpolicy
  • 17. Custom Resources ● Target Endpoint - holds endpoint related information apiVersion: wso2.com/v1alpha1 kind: TargetEndpoint metadata: name: products-service labels: app: app2 spec: protocol: http port: 9090 deploy: name: products-service dockerImage: pubudu/products:1.0.0 count: 1 mode : sidecar OPENAPI Defintion x-wso2-production-endpoints: products-service x-wso2-mode: sidecar
  • 18. Deployment modes for APIs ● Private Jet ● Sidecar ● Shared
  • 19. Deployment modes for APIs ● Private Jet Pod API Microgateway Container /API1 Pod Microservice Container Pod Microservice Container ❏ Scale separately ❏ Dedicated gateway for the API
  • 20. Deployment modes for APIs ● Sidecar ❏ Scale microservice with the gateway ❏ Dedicated gateway for the API Pod API Microgateway Container /API1 Microservice Container
  • 21. Deployment modes for APIs ● Shared ❏ Multiple APIs deployed in the gateway ❏ Label based API grouping Pod API Microgateway Container /API1 /API2 /API3 Pod Microservice Container Pod Microservice Container Pod Microservice Container
  • 22. The Need for an API Operator for Kubernetes ● Hides the API deployment complexities ● Simplify exposing a managed API for a service ● Handles auto scaling for API Gateway ● Switch between private and sidecar mode deployment patterns easily ● Deploy and manage backend services ● Easy to promote APIs between the environments (Dev, QA, Prod)
  • 23. Demo
  • 24. Demo Scenario • Deploying microservice on k8s cluster and invoking • Configuring API operator, API portal, token service and monitoring artifacts • Exposing the deployed microservices as a managed API using API Operator • Push the API to API portal • Invoke the API and monitoring 24
  • 25. Pre-requisites • Kubectl • Kubernetes cluster (v1.12 or above) with 8GB memory and 2vCPUs • Docker-Hub account • API Operator distribution – https://github.com/wso2/k8s-apim-operator/releases/download/v1.0. 0/api-k8s-crds-1.0.0.zip • API Command Line Tool – https://wso2.com/api-management/tooling/ 25
  • 26. Try API Operator for Kubernetes https://github.com/wso2/k8s-apim-operator/tree/v1.0.0 26
  • 27. Q & A Join us on Slack - https://wso2-apim.slack.com/ Invitation link for Slack - http://bit.ly/332VYeC