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

Deploying with Kubernetes – Google IO 2019

Deploying with Kubernetes – Google IO 2019

My talk at Google IO Extended 2019 Lahore.

Source Code: https://github.com/sheharyarn/io19-k8s-kotlin-app

Sheharyar Naseer

July 06, 2019
Tweet

More Decks by Sheharyar Naseer

Other Decks in Programming

Transcript

  1. Deploying with Kubernetes
    on Google Cloud Pla-orm

    View full-size slide

  2. @sheharyarn ! " #
    Sheharyar Naseer

    View full-size slide

  3. Devops is Hard
    • Even the best engineers struggle with deployments

    • A lot of manual work

    • Post-deployment monitoring

    • Never-ending stream of security & reliability issues

    View full-size slide

  4. But it doesn't have to be

    View full-size slide

  5. Kubernetes
    • Open-source container automation framework

    • Simple, Modular and Declarative

    • Automate as much as possible

    View full-size slide

  6. Imperative Systems
    • Create VPS instances for all of them

    • Manually install dependencies

    • ConGgure environment

    • Some automation possible

    • Still need to react in case something goes down

    View full-size slide

  7. Desired State
    • Tell Kubernetes what you want,

    not what to do

    • If something blows up,

    • Kubernetes will automatically Gx it

    • Will always go back to desired state

    View full-size slide

  8. Images & Containers
    • Represents application environment

    • Includes all dependencies

    • Isolated and bare minimum

    • We'll be using Docker

    View full-size slide

  9. Pods & Clusters
    • One or more containers deployed together

    • Representing an instance of your application

    • One IP per pod

    • One machine / node

    • Cluster is a group of nodes / pods

    View full-size slide

  10. Services
    • Named high-level application abstraction

    • Maps actual requests to pods

    • Load-balancing

    View full-size slide

  11. Outro
    Slides, notes & source code:

    to.shyr.io/io19-kubernetes
    !
    shyr.io
    [email protected]
    sheharyarn

    View full-size slide