Se ha denunciado esta presentación.
Utilizamos tu perfil de LinkedIn y tus datos de actividad para personalizar los anuncios y mostrarte publicidad más relevante. Puedes cambiar tus preferencias de publicidad en cualquier momento.
Kubernetes and AWS Lambda can 

play nicely together
Edward Wilde Core Contributor, Architect Form3
Serverless Practitione...
• Extending OpenFaaS
• Integrating with AWS Lambda 🤨
• Combining Kubernetes with Lambda 🖖
The Session
Tweet @ewilde 🤳 📸
Top OpenFaaS providers
faas-netes
faas-nomad
faas-swarm
faas-fargate
🥇
available on GitHub
Provider model
Provider model
Provider model
faas-lambda architecture
faas-lambda architecture
faas-lambda architecture
🔐 k8s secrets

for AWS creds
faas-lambda architecture
🔐 k8s secrets

for AWS creds
🔐 

iam roles
Example deployment handler
Why use OpenFaaS on Lambda?
• Migration path to k8s and multi-cloud
• Legacy integration with proprietary services
• Manag...
Benefits of OpenFaaS on Kubernetes
• Portability
• Control over timeouts / scaling
• Memory, CPU and networking
• Ecosystem...
How does deployment work?
How does deployment work?
Download images
How does deployment work?
Download images
Extract layers
How does deployment work?
Download images
Extract layers
Create shim 🛠
How does deployment work?
Download images
Extract layers
Create shim 🛠
Repackage. 🗜
How does invoke work?
How does invoke work?
🔨 /Invoke
Python shim
Python shim
Python shim
• List
• List
• List
• List
Node shim
• List
• List
• List
• List
Node shim
• List
• List
• List
• List
Node shim
Golang shim
• List
• List
• List
• List
Golang shim
• List
• List
• List
• List
Demo - deploying to lambda
Demo - deploying to lambda
🔐 

iam roles
Demo Time - faas-lambda with OpenFaaS
What you saw
• Deploying functions in containers
• Execution runtime on lambda
• Slow crypto 🐌 + 🔐 (4 - 9s)
Platform comparison
OpenFaaS on k8s Lambda
Memory 12 TiB*1 3GiB
CPU 96cores*1 / GPU/ FGPA 2cores?
Timeout 290 years + 30s ...
faas-federation architecture - runtime split
faas-federation architecture - runtime split
faas-federation architecture - geo split
faas-federation
• Single control plane
• Multiple execution runtimes
• Geo-location split
• Split deployment based on ‘pla...
Demo 2 - faas-federation with OpenFaaS
Demo 2 - faas-federation with OpenFaaS
/cert-sign
Step 1
Demo 2 - faas-federation with OpenFaaS
/cert-sign
Step 1
Demo 2 - faas-federation with OpenFaaS
/cert-sign
Step 1
Demo 2 - faas-federation with OpenFaaS
/cert-sign
Step 1
Demo 2 - faas-federation with OpenFaaS
/cert-sign
Step 1
Demo 2 - faas-federation with OpenFaaS
Demo 2 - faas-federation with OpenFaaS
/cert-info
Step 2
Demo 2 - faas-federation with OpenFaaS
/cert-info
Step 2
Demo 2 - faas-federation with OpenFaaS
/cert-info
Step 2
Demo 2 - faas-federation with OpenFaaS
/cert-info
Step 2
Demo 2 - faas-federation with OpenFaaS
/cert-info
Step 2
Demo Time - faas-federation with OpenFaaS
Summing up
• Multiple
• providers
• regions
• Same developer experience
• Three new OSS projects
• Lots of potential
🧮
What’s next?
• Open-source faas-lambda
• Increase template support
• Going to production
Thank You!
www.openfaas.com @ewilde
1. Join Slack 👌
https://docs.openfaas.com/community
2. Try the self-paced workshop! 💻
https://github.com/openfaas/workshop...
Kubernetes and AWS Lambda can 
play nicely together
Kubernetes and AWS Lambda can 
play nicely together
Kubernetes and AWS Lambda can 
play nicely together
Kubernetes and AWS Lambda can 
play nicely together
Kubernetes and AWS Lambda can 
play nicely together
Kubernetes and AWS Lambda can 
play nicely together
Ha terminado este documento.
Descárguela y léala sin conexión.
Próximo SlideShare
What to Upload to SlideShare
Siguiente
Próximo SlideShare
What to Upload to SlideShare
Siguiente
Descargar para leer sin conexión y ver en pantalla completa.

Compartir

Kubernetes and AWS Lambda can 
play nicely together

Descargar para leer sin conexión

Vendor lock-in can be a worry for many engineers . A new innovative approach, will for the first time, allow open-source serverless to run on AWS Lambda or Kubernetes using the same deployment artefact, packaged using the tools we love: containers.

OpenFaaS is an open-source function as a service (FaaS) platform on the [CNCF serverless landscape](https://landscape.cncf.io/format=serverless).

With OpenFaaS you can package anything as a serverless function and deploy to Kubernetes using containers. Due to UNIX-like primitives in the core architecture, it was possible to extend the system to run functions on both Kubernetes and AWS Lambda depending on user preference. The core components of OpenFaaS still run on Kubernetes but the functions are deployed and invoked on AWS Lambda

  • Sé el primero en recomendar esto

Kubernetes and AWS Lambda can 
play nicely together

  1. 1. Kubernetes and AWS Lambda can 
 play nicely together Edward Wilde Core Contributor, Architect Form3 Serverless Practitioners Summit - 2019
  2. 2. • Extending OpenFaaS • Integrating with AWS Lambda 🤨 • Combining Kubernetes with Lambda 🖖 The Session Tweet @ewilde 🤳 📸
  3. 3. Top OpenFaaS providers faas-netes faas-nomad faas-swarm faas-fargate 🥇 available on GitHub
  4. 4. Provider model
  5. 5. Provider model
  6. 6. Provider model
  7. 7. faas-lambda architecture
  8. 8. faas-lambda architecture
  9. 9. faas-lambda architecture 🔐 k8s secrets
 for AWS creds
  10. 10. faas-lambda architecture 🔐 k8s secrets
 for AWS creds 🔐 
 iam roles
  11. 11. Example deployment handler
  12. 12. Why use OpenFaaS on Lambda? • Migration path to k8s and multi-cloud • Legacy integration with proprietary services • Managed infrastructure • Bursting / Free tier
  13. 13. Benefits of OpenFaaS on Kubernetes • Portability • Control over timeouts / scaling • Memory, CPU and networking • Ecosystem benefits
  14. 14. How does deployment work?
  15. 15. How does deployment work? Download images
  16. 16. How does deployment work? Download images Extract layers
  17. 17. How does deployment work? Download images Extract layers Create shim 🛠
  18. 18. How does deployment work? Download images Extract layers Create shim 🛠 Repackage. 🗜
  19. 19. How does invoke work?
  20. 20. How does invoke work? 🔨 /Invoke
  21. 21. Python shim
  22. 22. Python shim
  23. 23. Python shim
  24. 24. • List • List • List • List Node shim
  25. 25. • List • List • List • List Node shim
  26. 26. • List • List • List • List Node shim
  27. 27. Golang shim • List • List • List • List
  28. 28. Golang shim • List • List • List • List
  29. 29. Demo - deploying to lambda
  30. 30. Demo - deploying to lambda 🔐 
 iam roles
  31. 31. Demo Time - faas-lambda with OpenFaaS
  32. 32. What you saw • Deploying functions in containers • Execution runtime on lambda • Slow crypto 🐌 + 🔐 (4 - 9s)
  33. 33. Platform comparison OpenFaaS on k8s Lambda Memory 12 TiB*1 3GiB CPU 96cores*1 / GPU/ FGPA 2cores? Timeout 290 years + 30s API / 15m Code limits ∞ 50 MB /tmp ∞ 512 MB Minimum replicas ✅ ❌ Zero-scale ✅ ✅ Ease of Use ✅✅✅✅ ✅✅✅ *1 current largest cloud instance I could find
  34. 34. faas-federation architecture - runtime split
  35. 35. faas-federation architecture - runtime split
  36. 36. faas-federation architecture - geo split
  37. 37. faas-federation • Single control plane • Multiple execution runtimes • Geo-location split • Split deployment based on ‘platform name’ • Later on? CPU/Memory/Capacity
  38. 38. Demo 2 - faas-federation with OpenFaaS
  39. 39. Demo 2 - faas-federation with OpenFaaS /cert-sign Step 1
  40. 40. Demo 2 - faas-federation with OpenFaaS /cert-sign Step 1
  41. 41. Demo 2 - faas-federation with OpenFaaS /cert-sign Step 1
  42. 42. Demo 2 - faas-federation with OpenFaaS /cert-sign Step 1
  43. 43. Demo 2 - faas-federation with OpenFaaS /cert-sign Step 1
  44. 44. Demo 2 - faas-federation with OpenFaaS
  45. 45. Demo 2 - faas-federation with OpenFaaS /cert-info Step 2
  46. 46. Demo 2 - faas-federation with OpenFaaS /cert-info Step 2
  47. 47. Demo 2 - faas-federation with OpenFaaS /cert-info Step 2
  48. 48. Demo 2 - faas-federation with OpenFaaS /cert-info Step 2
  49. 49. Demo 2 - faas-federation with OpenFaaS /cert-info Step 2
  50. 50. Demo Time - faas-federation with OpenFaaS
  51. 51. Summing up • Multiple • providers • regions • Same developer experience • Three new OSS projects • Lots of potential 🧮
  52. 52. What’s next? • Open-source faas-lambda • Increase template support • Going to production
  53. 53. Thank You! www.openfaas.com @ewilde
  54. 54. 1. Join Slack 👌 https://docs.openfaas.com/community 2. Try the self-paced workshop! 💻 https://github.com/openfaas/workshop 3. Meet up with the OpenFaaS team here at KubeCon https://www.openfaas.com/blog/meet-us-at-barcelona/ Get involved

Vendor lock-in can be a worry for many engineers . A new innovative approach, will for the first time, allow open-source serverless to run on AWS Lambda or Kubernetes using the same deployment artefact, packaged using the tools we love: containers. OpenFaaS is an open-source function as a service (FaaS) platform on the [CNCF serverless landscape](https://landscape.cncf.io/format=serverless). With OpenFaaS you can package anything as a serverless function and deploy to Kubernetes using containers. Due to UNIX-like primitives in the core architecture, it was possible to extend the system to run functions on both Kubernetes and AWS Lambda depending on user preference. The core components of OpenFaaS still run on Kubernetes but the functions are deployed and invoked on AWS Lambda

Vistas

Total de vistas

139

En Slideshare

0

De embebidos

0

Número de embebidos

0

Acciones

Descargas

5

Compartidos

0

Comentarios

0

Me gusta

0

×