Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Cloud Run... everything you need without K8S

Cloud Run... everything you need without K8S

At DevFest Cloud Abidjan: https://gdg.community.dev/events/details/google-gdg-cloud-abidjan-presents-devfest-cloud-abidjan-2021/
Twitter: https://twitter.com/GDGCloudAbidjan/status/1467019495600541696

Docker est arrivé en 2016 en France permettant de packager nos applications facilement. Il a fallu maîtriser les concepts de Docker : commandes, isolation, optimisation des layers etc.

Ensuite, la solution leader d'orchestration Kubernetes est arrivée permettant de scaler ces containers. Pour permettre à K8S de gérer correctement un nom de domaine en TLS, livrer de façon transparente en production, faire du test A/B, il faut là encore retrousser les manches.

Basé sur le projet Open Source Knative, Cloud Run est LA solution parfaite pour déployer des conteneurs et permet de gérer tout ça : autoscaling, gestion du traffic et bien d'autres fonctionnalités !

Faisons un tour des petits plus de cette solution : nous y trouvons la majorité des features d'un Kubernetes sans Kubernetes. Partons à la découverte de cette solution Serverless à base de démos.

Julien Landuré

December 04, 2021

More Decks by Julien Landuré

Other Decks in Programming


  1. Cloud Run… everything you need without K8S DevFest Cloud Abidjan

  2. Julien Landuré @jlandure Google Developer Expert - Cloud CTO Group

    - Zenika GDG Cloud Nantes & DevFest Organizer
  3. Back to the future...

  4. App Engine in 2010

  5. App Engine One of the first PaaS Limited runtimes Need

    specific libraries Vendor lock in Easy deployment Custom domain name Traffic splitting between versions Embed a stateful solution (datastore) Automatic CDN Scaling from 0 to N
  6. Value x Complexity

  7. App Engine

  8. Containerization

  9. Docker in 2016

  10. Docker Universal package manager Dockerfile syntax Installation of Docker &

    CLI Daemon options & linux concepts Security Open Source Reproductible & ephemeral concepts Work with any runtime Start containers quickly Very Popular: many images & cloud services available
  11. Value x Complexity

  12. None
  13. 2017: AKS & EKS 2016: Kubernetes adoption by CNCF 2015:

    GKE 2014: Kubernetes 2013: Docker 2008: LXC 2007: cgroups
  14. Orchestration

  15. Kubernetes in 2018

  16. Kubernetes Container orchestration at scale New concepts: pods, services etc.

    Yaml syntax Popular: well documented Supported by all cloud providers Made to solve scaling issues Pet vs Cattle Desired State vs Actual State
  17. Value x Complexity

  18. Wait! Kubernetes can do so much...

  19. Kubernetes… again Container orchestration at scale Automated rollouts and rollbacks

    Health checking Load Balancing Custom domain & traffic splitting with Traefik Service Mesh with Istio Scale from 0 with Knative or KEDA Runtime security with Falco Upgrade components Stateful objects Backup Security IAM Pricing
  20. Value x Complexity

  21. Kubernetes

  22. Serverless

  23. Cloud Run in 2019 Cloud Functions App Engine Cloud Run

  24. Cloud Run One of the first serverless container solution HTTP

    only (gRPC) Need IaC to deploy a complete infra Container contract - Listen on - HTTP server must start < 4 min - Request time < 60 min - Stateless - No background activity Pricing Model Easy deployment Custom domain name Traffic splitting between versions Portability of containers Buildpacks available Scaling from 0 to N No vendor lock in with Knative
  25. Value x Complexity

  26. 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. Serverless definition https://github.com/cncf/wg-serverless/tree/master/whitepapers/serverless-overview
  27. Value x Complexity

  28. Demo 🤞

  29. • Cloud Run covers the majority of app use cases

    • One of the TOP project Google Cloud • Replacement of my beloved App Engine • Interoperable (supported by Knative/eventing) • Superior Dev Experience (local emulator & buildpacks) My point of view
  30. Serverless trends State of Serverless 2020 report

  31. • 👍 Kubernetes and Serverless can support each other •

    😱 Serverless Container Solution are coming! “Behind the scenes, the core of App Builder is that it builds an Amazon ECS Cluster and uses Fargate to execute your containers.” • 💪 The right tool to do the right thing • 🤔 Find your way: more a Dev (Serverless World) or an Admin (K8S World) To sum up
  32. Thank You! Julien Landuré @jlandure