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

Deployement Strategies

Sponsored · Your Podcast. Everywhere. Effortlessly. Share. Educate. Inspire. Entertain. You do you. We'll handle the rest. →

Deployement Strategies

Event : Google Cloud NEXT - GDG LK

Avatar for Ruwan Ranganath

Ruwan Ranganath

May 09, 2019

More Decks by Ruwan Ranganath

Other Decks in Technology

Transcript

  1. Cloud Native DevOps / SRE ? DEPLOYMENT STRATEGIES There was

    never a time when the world began, because it goes round and round like a circle, and there is no place on a circle where it begins. - Alan Watts
  2. Ruwan Ranganath Sr. Software Engineer - Devops @ Apigate Docker

    Community Lead devops.lk & foss.lk Mozilla Community Lead @ruwan_ranganath /ruwan-ranganath
  3. Nobody Wants to Understand DevOps John Willis - CAMS sharing

    measurement automation, culture Brian Dawson - trinity: process and practice People & culture tools and technology
  4. The Business Advantage Container & Orchestra Infrastructure as a Service

    Works on My Machine, Ops Problem now Era Buying Time of SaaS.
  5. Infrastructure as a Code Resources need to be provisioned, networked,

    deployed, configured, kept up to date with security patches, monitored, managed, and so on.
  6. provider "google" { credentials = "${file("CREDENTIALS_FILE.json")}" project = "gcp-project-id" region

    = "us-west1" } resource "google_compute_instance" "default" { name = "flask-vm-${random_id.instance_id.hex}" machine_type = "f1-micro" zone = "us-west1-a" boot_disk { initialize_params { image = "debian-cloud/debian-9" } }
  7. The Business Advantage Container & Orchestra Infrastructure as a Service

    Works on My Machine, Ops Problem now Era Buying Time of SaaS.
  8. “improving the quality of your software by speeding up release

    cycles with cloud automation and practices, With the added benefit of software that actually stays up in production” -The Register. Business Booster
  9. The Business Advantage Container & Orchestra Infrastructure as a Service

    Works on My Machine, Ops Problem now Era Buying Time of SaaS.
  10. The Business Advantage Container & Orchestra Infrastructure as a Service

    Works on My Machine, Ops Problem now Era Buying Time of SaaS.
  11. Containerize the product FROM ubuntu RUN apt-get update RUN apt-get

    install –y apache2 RUN apt-get install –y apache2-utils RUN apt-get clean EXPOSE 80 CMD [“apache2ctl”, “-D”, “FOREGROUND”]
  12. Container Orchestration Making much easier way ! A piece of

    software designed to join together many different machines into a cluster: container orchestrator Managing the resources available and assigning workloads where they can most efficiently be run Scheduling Joining multiple physical or virtual servers into a unified, reliable, fault-tolerant, apparently seamless group cluster management Well you already know ! Kubernetes / ECS / Swarm
  13. Traditional deployment strategy, We all do this ? Highlander 01

    Breaking small portion from a production always feels good. Raise your hand ! Canary 02 Safe way to break everything step by step 101. Seriously ! How careful you are ? Rolling 03 I’m not sure you’ll notice green is blue and blue is green here ? Better way to blame other guy xD Blue / Green 04 Where are we today ?
  14. Rolling Deployment strategy: type: Rolling rollingParams: updatePeriodSeconds: 1 intervalSeconds: 1

    timeoutSeconds: 120 maxSurge: "20%" maxUnavailable: "10%" pre: {} post: {}
  15. An APM / Error Monitoring tools also creates a shared

    visibility of all the post-deployment issues among Operations / DevOps teams and developers. This shared understanding allows the teams to be more collaborative and responsive.