SlideShare uma empresa Scribd logo
1 de 31
Baixar para ler offline
1
J O N G E A R
@ G e a r e d U p Te c h
@ J o n G e a r
j o n . g e a r @ j d k t e c h . c o m
K8s APIs
2
Agenda
G o S e r v e r l e s s M e e t u p
1. What is Kubernetes (K8s)
2. Who is using K8s
3. Building APIs with K8s
4. Pictures of containers
5. Next Steps
J u l y 1 7 t h 2 0 1 8
3
4
“Kubernetes is an open-
source system for
automating deployment,
scaling, and management
of containerize
applications”
What is
Kubernetes?
5
6
7
8
9
10
11
Who is using
Kubernetes?
G r e e k f o r “ h e l m s m a n ”
Helmsman
12 https://kubernetes.io/case-studies
13
https://stackshare.io/kubernetes
14
How does
Kubernetes work?
G r e e k f o r “ h e l m s m a n ”
15
01
M a s t e r
Responsible for managing the cluster
02
N o d e
Worker machine in cluster
03
P o d ( N o d e p r o c e s s )
Atomic unit of Kubernetes
16
The Master
M a n a g e s t h e
c l u s t e r01 E x p o s e s
K u b e r n e t e s
A P I
02 S c h e d u l e s ,
s c a l e s a n d
r o l l s o u t n e w
u p d a t e s
03
01
17
The Node
Wo r k e r
m a c h i n e01 K u b e l e t :
s c h e d u l e s
p o d s a c r o s s
t h e n o d e s i n
t h e c l u s t e r
02 P o d
b a l a n c i n g
h a n d l e d b y
m a s t e r
03
02
18
The Node02
Business Title Here
Containers should only be scheduled together
in a single Pod if they are tightly coupled and
need to share resources such as disk
19
The Pod
S h a r e d
s t o r a g e ,
a s Vo l u m e s
01 N e t w o r k i n g ,
a s a u n i q u e
c l u s t e r I P
a d d r e s s
02 C r e a t e d
t h r o u g h
d e p l o y m e n t s
03
03
20
How do I build
microservices with
Kubernetes?
21
22
23
24
Ambassador
A P I G a t e w a y f o r K 8 s b u i l t o n E n v o y
https://www.getambassador.io
25
01
R o u t i n g
Regex, method and header-based routing
02
U R L R e w r i t i n g
Replace the URL prefix
03
g R P C
04
C a n a r y R e l e a s e
Test updates against subset of production
traffic
05
Tr a f f i c S h a d o w i n g
Test services with production data, mirroring
live traffic
06
We b s o c k e t s
Ambassador
A P I G a t e w a y f o r K 8 s b u i l t o n E n v o y
26
27
Add support to
invoice_svc.yml
28
Helm
P a c k a g e m a n a g e r f o r K u b e r n e t e s
https://helm.sh
Packages of pre-configured k8s resources
https://github.com/kubernetes/helm
Charts
Two Parts
Helm client (helm)
Helm server (tiller)
https://docs.helm.sh/using_helm/#installing-helm
29
Virtual Kubelet
S e r v e r l e s s c o n t a i n e r e x t e n s i o n
Providers
• Azure Container Instances
• AWS Fargate
• Hyper.sh
• Roll your own provider
https://github.com/virtual-kubelet/virtual-kubelet
30
Cloud Support
31
Thanks for coming!
• Kubernetes interactive tutorial
https://kubernetes.io/docs/tutorials/kubernetes-basics
• Getting Stated with Microservies using Go, gRPC and Kubernetes
https://outcrawl.com/getting-started-microservices-go-grpc-kubernetes
• Sign up for Kubernetes slack
http://slack.k8s.io
• Kubernetes team office hours every third Wednesday of the month 1pm / 8pm UTC (that’s tomorrow!)
https://github.com/kubernetes/community/blob/master/events/office-hours.md
• Deploy a Go application to Kubernetes in 30 seconds
https://bit.ly/2uBGHT2
• Getting started with micro services and Kubernetes (Ambassador setup)
https://hackernoon.com/getting-started-with-microservices-and-kubernetes-76354312b556
J O N G E A R
@ G e a r e d U p Te c h
@ J o n G e a r
j o n . g e a r @ j d k t e c h . c o m
L i n k s f o r g e t t i n g s t a r t e d :

Mais conteúdo relacionado

Semelhante a Building APIs with kubernetes

Nodeless and serverless kubernetes
Nodeless and serverless kubernetesNodeless and serverless kubernetes
Nodeless and serverless kubernetesNills Franssens
 
PuppetConf 2017: Zero to Kubernetes -Scott Coulton, Puppet
PuppetConf 2017: Zero to Kubernetes -Scott Coulton, PuppetPuppetConf 2017: Zero to Kubernetes -Scott Coulton, Puppet
PuppetConf 2017: Zero to Kubernetes -Scott Coulton, PuppetPuppet
 
Cloud, Containers, Kubernetes (YOW Sydney 2018)
Cloud, Containers, Kubernetes (YOW Sydney 2018)Cloud, Containers, Kubernetes (YOW Sydney 2018)
Cloud, Containers, Kubernetes (YOW Sydney 2018)bridgetkromhout
 
Cloud, Containers, Kubernetes (YOW Brisbane 2018)
Cloud, Containers, Kubernetes (YOW Brisbane 2018)Cloud, Containers, Kubernetes (YOW Brisbane 2018)
Cloud, Containers, Kubernetes (YOW Brisbane 2018)bridgetkromhout
 
Kubernetes and CNCF Landscape 101
Kubernetes and CNCF Landscape 101Kubernetes and CNCF Landscape 101
Kubernetes and CNCF Landscape 101Giulio Roggero
 
Deploying Splunk on OpenShift – Part2 : Getting Data In
Deploying Splunk on OpenShift – Part2 : Getting Data InDeploying Splunk on OpenShift – Part2 : Getting Data In
Deploying Splunk on OpenShift – Part2 : Getting Data InEric Gardner
 
Oracle on kubernetes 101 - Dec/2021
Oracle on kubernetes 101 - Dec/2021Oracle on kubernetes 101 - Dec/2021
Oracle on kubernetes 101 - Dec/2021Nelson Calero
 
DevOps Days Boston 2017: Real-world Kubernetes for DevOps
DevOps Days Boston 2017: Real-world Kubernetes for DevOpsDevOps Days Boston 2017: Real-world Kubernetes for DevOps
DevOps Days Boston 2017: Real-world Kubernetes for DevOpsAmbassador Labs
 
Kubernetes: Managed or Not Managed?
Kubernetes: Managed or Not Managed?Kubernetes: Managed or Not Managed?
Kubernetes: Managed or Not Managed?Mathieu Herbert
 
Deep Dive into Amazon EKS - CON409 - re:Invent 2017
Deep Dive into Amazon EKS - CON409 - re:Invent 2017Deep Dive into Amazon EKS - CON409 - re:Invent 2017
Deep Dive into Amazon EKS - CON409 - re:Invent 2017Amazon Web Services
 
PySpark on Kubernetes @ Python Barcelona March Meetup
PySpark on Kubernetes @ Python Barcelona March MeetupPySpark on Kubernetes @ Python Barcelona March Meetup
PySpark on Kubernetes @ Python Barcelona March MeetupHolden Karau
 
Getting Started with Apache Spark on Kubernetes
Getting Started with Apache Spark on KubernetesGetting Started with Apache Spark on Kubernetes
Getting Started with Apache Spark on KubernetesDatabricks
 
Kubernetes & Cloud Native Indonesia X BukaMeetup - Feb 2023
Kubernetes & Cloud Native Indonesia X BukaMeetup - Feb 2023Kubernetes & Cloud Native Indonesia X BukaMeetup - Feb 2023
Kubernetes & Cloud Native Indonesia X BukaMeetup - Feb 2023Prasta Maha
 
CloudStack Container Service
CloudStack Container ServiceCloudStack Container Service
CloudStack Container ServiceShapeBlue
 
stackconf 2020 | The blinking cursor or kubernetes for people who aren´t supp...
stackconf 2020 | The blinking cursor or kubernetes for people who aren´t supp...stackconf 2020 | The blinking cursor or kubernetes for people who aren´t supp...
stackconf 2020 | The blinking cursor or kubernetes for people who aren´t supp...NETWAYS
 
So Your OpenStack Cloud is Built... Now What's Next - Walter Bentley - OpenSt...
So Your OpenStack Cloud is Built... Now What's Next - Walter Bentley - OpenSt...So Your OpenStack Cloud is Built... Now What's Next - Walter Bentley - OpenSt...
So Your OpenStack Cloud is Built... Now What's Next - Walter Bentley - OpenSt...Cloud Native Day Tel Aviv
 
So Your OpenStack Cloud is Built...Now What?
So Your OpenStack Cloud is Built...Now What? So Your OpenStack Cloud is Built...Now What?
So Your OpenStack Cloud is Built...Now What? Tesora
 
5_Analy gf gafg f ad a ffg fa sis_for_LXS2C.docx
5_Analy  gf gafg f ad   a  ffg fa sis_for_LXS2C.docx5_Analy  gf gafg f ad   a  ffg fa sis_for_LXS2C.docx
5_Analy gf gafg f ad a ffg fa sis_for_LXS2C.docxMisael Rodriguez
 
【IVS CTO Night & Day】Amazon Container Services
【IVS CTO Night & Day】Amazon Container Services【IVS CTO Night & Day】Amazon Container Services
【IVS CTO Night & Day】Amazon Container ServicesAmazon Web Services Japan
 

Semelhante a Building APIs with kubernetes (20)

Nodeless and serverless kubernetes
Nodeless and serverless kubernetesNodeless and serverless kubernetes
Nodeless and serverless kubernetes
 
PuppetConf 2017: Zero to Kubernetes -Scott Coulton, Puppet
PuppetConf 2017: Zero to Kubernetes -Scott Coulton, PuppetPuppetConf 2017: Zero to Kubernetes -Scott Coulton, Puppet
PuppetConf 2017: Zero to Kubernetes -Scott Coulton, Puppet
 
Cloud, Containers, Kubernetes (YOW Sydney 2018)
Cloud, Containers, Kubernetes (YOW Sydney 2018)Cloud, Containers, Kubernetes (YOW Sydney 2018)
Cloud, Containers, Kubernetes (YOW Sydney 2018)
 
Cloud, Containers, Kubernetes (YOW Brisbane 2018)
Cloud, Containers, Kubernetes (YOW Brisbane 2018)Cloud, Containers, Kubernetes (YOW Brisbane 2018)
Cloud, Containers, Kubernetes (YOW Brisbane 2018)
 
Kubernetes and CNCF Landscape 101
Kubernetes and CNCF Landscape 101Kubernetes and CNCF Landscape 101
Kubernetes and CNCF Landscape 101
 
Deploying Splunk on OpenShift – Part2 : Getting Data In
Deploying Splunk on OpenShift – Part2 : Getting Data InDeploying Splunk on OpenShift – Part2 : Getting Data In
Deploying Splunk on OpenShift – Part2 : Getting Data In
 
Do we need a JHipster Kubernetes Operator?
Do we need a JHipster Kubernetes Operator?Do we need a JHipster Kubernetes Operator?
Do we need a JHipster Kubernetes Operator?
 
Oracle on kubernetes 101 - Dec/2021
Oracle on kubernetes 101 - Dec/2021Oracle on kubernetes 101 - Dec/2021
Oracle on kubernetes 101 - Dec/2021
 
DevOps Days Boston 2017: Real-world Kubernetes for DevOps
DevOps Days Boston 2017: Real-world Kubernetes for DevOpsDevOps Days Boston 2017: Real-world Kubernetes for DevOps
DevOps Days Boston 2017: Real-world Kubernetes for DevOps
 
Kubernetes: Managed or Not Managed?
Kubernetes: Managed or Not Managed?Kubernetes: Managed or Not Managed?
Kubernetes: Managed or Not Managed?
 
Deep Dive into Amazon EKS - CON409 - re:Invent 2017
Deep Dive into Amazon EKS - CON409 - re:Invent 2017Deep Dive into Amazon EKS - CON409 - re:Invent 2017
Deep Dive into Amazon EKS - CON409 - re:Invent 2017
 
PySpark on Kubernetes @ Python Barcelona March Meetup
PySpark on Kubernetes @ Python Barcelona March MeetupPySpark on Kubernetes @ Python Barcelona March Meetup
PySpark on Kubernetes @ Python Barcelona March Meetup
 
Getting Started with Apache Spark on Kubernetes
Getting Started with Apache Spark on KubernetesGetting Started with Apache Spark on Kubernetes
Getting Started with Apache Spark on Kubernetes
 
Kubernetes & Cloud Native Indonesia X BukaMeetup - Feb 2023
Kubernetes & Cloud Native Indonesia X BukaMeetup - Feb 2023Kubernetes & Cloud Native Indonesia X BukaMeetup - Feb 2023
Kubernetes & Cloud Native Indonesia X BukaMeetup - Feb 2023
 
CloudStack Container Service
CloudStack Container ServiceCloudStack Container Service
CloudStack Container Service
 
stackconf 2020 | The blinking cursor or kubernetes for people who aren´t supp...
stackconf 2020 | The blinking cursor or kubernetes for people who aren´t supp...stackconf 2020 | The blinking cursor or kubernetes for people who aren´t supp...
stackconf 2020 | The blinking cursor or kubernetes for people who aren´t supp...
 
So Your OpenStack Cloud is Built... Now What's Next - Walter Bentley - OpenSt...
So Your OpenStack Cloud is Built... Now What's Next - Walter Bentley - OpenSt...So Your OpenStack Cloud is Built... Now What's Next - Walter Bentley - OpenSt...
So Your OpenStack Cloud is Built... Now What's Next - Walter Bentley - OpenSt...
 
So Your OpenStack Cloud is Built...Now What?
So Your OpenStack Cloud is Built...Now What? So Your OpenStack Cloud is Built...Now What?
So Your OpenStack Cloud is Built...Now What?
 
5_Analy gf gafg f ad a ffg fa sis_for_LXS2C.docx
5_Analy  gf gafg f ad   a  ffg fa sis_for_LXS2C.docx5_Analy  gf gafg f ad   a  ffg fa sis_for_LXS2C.docx
5_Analy gf gafg f ad a ffg fa sis_for_LXS2C.docx
 
【IVS CTO Night & Day】Amazon Container Services
【IVS CTO Night & Day】Amazon Container Services【IVS CTO Night & Day】Amazon Container Services
【IVS CTO Night & Day】Amazon Container Services
 

Último

Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Zilliz
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistandanishmna97
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusZilliz
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vázquez
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfOrbitshub
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelDeepika Singh
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxRemote DBA Services
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...apidays
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native ApplicationsWSO2
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Victor Rentea
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2
 
AI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAnitaRaj43
 

Último (20)

Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
AI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by Anitaraj
 

Building APIs with kubernetes

  • 1. 1 J O N G E A R @ G e a r e d U p Te c h @ J o n G e a r j o n . g e a r @ j d k t e c h . c o m K8s APIs
  • 2. 2 Agenda G o S e r v e r l e s s M e e t u p 1. What is Kubernetes (K8s) 2. Who is using K8s 3. Building APIs with K8s 4. Pictures of containers 5. Next Steps J u l y 1 7 t h 2 0 1 8
  • 3. 3
  • 4. 4 “Kubernetes is an open- source system for automating deployment, scaling, and management of containerize applications” What is Kubernetes?
  • 5. 5
  • 6. 6
  • 7. 7
  • 8. 8
  • 9. 9
  • 10. 10
  • 11. 11 Who is using Kubernetes? G r e e k f o r “ h e l m s m a n ” Helmsman
  • 14. 14 How does Kubernetes work? G r e e k f o r “ h e l m s m a n ”
  • 15. 15 01 M a s t e r Responsible for managing the cluster 02 N o d e Worker machine in cluster 03 P o d ( N o d e p r o c e s s ) Atomic unit of Kubernetes
  • 16. 16 The Master M a n a g e s t h e c l u s t e r01 E x p o s e s K u b e r n e t e s A P I 02 S c h e d u l e s , s c a l e s a n d r o l l s o u t n e w u p d a t e s 03 01
  • 17. 17 The Node Wo r k e r m a c h i n e01 K u b e l e t : s c h e d u l e s p o d s a c r o s s t h e n o d e s i n t h e c l u s t e r 02 P o d b a l a n c i n g h a n d l e d b y m a s t e r 03 02
  • 18. 18 The Node02 Business Title Here Containers should only be scheduled together in a single Pod if they are tightly coupled and need to share resources such as disk
  • 19. 19 The Pod S h a r e d s t o r a g e , a s Vo l u m e s 01 N e t w o r k i n g , a s a u n i q u e c l u s t e r I P a d d r e s s 02 C r e a t e d t h r o u g h d e p l o y m e n t s 03 03
  • 20. 20 How do I build microservices with Kubernetes?
  • 21. 21
  • 22. 22
  • 23. 23
  • 24. 24 Ambassador A P I G a t e w a y f o r K 8 s b u i l t o n E n v o y https://www.getambassador.io
  • 25. 25 01 R o u t i n g Regex, method and header-based routing 02 U R L R e w r i t i n g Replace the URL prefix 03 g R P C 04 C a n a r y R e l e a s e Test updates against subset of production traffic 05 Tr a f f i c S h a d o w i n g Test services with production data, mirroring live traffic 06 We b s o c k e t s Ambassador A P I G a t e w a y f o r K 8 s b u i l t o n E n v o y
  • 26. 26
  • 28. 28 Helm P a c k a g e m a n a g e r f o r K u b e r n e t e s https://helm.sh Packages of pre-configured k8s resources https://github.com/kubernetes/helm Charts Two Parts Helm client (helm) Helm server (tiller) https://docs.helm.sh/using_helm/#installing-helm
  • 29. 29 Virtual Kubelet S e r v e r l e s s c o n t a i n e r e x t e n s i o n Providers • Azure Container Instances • AWS Fargate • Hyper.sh • Roll your own provider https://github.com/virtual-kubelet/virtual-kubelet
  • 31. 31 Thanks for coming! • Kubernetes interactive tutorial https://kubernetes.io/docs/tutorials/kubernetes-basics • Getting Stated with Microservies using Go, gRPC and Kubernetes https://outcrawl.com/getting-started-microservices-go-grpc-kubernetes • Sign up for Kubernetes slack http://slack.k8s.io • Kubernetes team office hours every third Wednesday of the month 1pm / 8pm UTC (that’s tomorrow!) https://github.com/kubernetes/community/blob/master/events/office-hours.md • Deploy a Go application to Kubernetes in 30 seconds https://bit.ly/2uBGHT2 • Getting started with micro services and Kubernetes (Ambassador setup) https://hackernoon.com/getting-started-with-microservices-and-kubernetes-76354312b556 J O N G E A R @ G e a r e d U p Te c h @ J o n G e a r j o n . g e a r @ j d k t e c h . c o m L i n k s f o r g e t t i n g s t a r t e d :