24
© 2019, Amazon Web Services, Inc. or its Affiliates. Bob Wise GM, Kubernetes [email protected] @countspongebob Evolving DevOps to GitOps A Perspective

Evolving DevOps to GitOpsd1.awsstatic.com/product-marketing/EKS/1. Bob Wise - AWS Keynote.pdfmanual sign-offs. Larger release. More Manual tests. Only roll-forward possible. Make Stage

  • Upload
    others

  • View
    2

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Evolving DevOps to GitOpsd1.awsstatic.com/product-marketing/EKS/1. Bob Wise - AWS Keynote.pdfmanual sign-offs. Larger release. More Manual tests. Only roll-forward possible. Make Stage

© 2019, Amazon Web Services, Inc. or its Affiliates.

Bob WiseGM, [email protected]@countspongebob

Evolving DevOps to GitOpsA Perspective

Page 2: Evolving DevOps to GitOpsd1.awsstatic.com/product-marketing/EKS/1. Bob Wise - AWS Keynote.pdfmanual sign-offs. Larger release. More Manual tests. Only roll-forward possible. Make Stage

© 2019, Amazon Web Services, Inc. or its Affiliates.

Motivators

Leadership knows velocity is critical to competitiveness.

Massive velocity gap between high vs average orgs.

Desire to constrain sprawl, use fewer, better tools and approaches.

Teams needing to modernize for retention and recruiting.

Pressure to evolve…

Page 3: Evolving DevOps to GitOpsd1.awsstatic.com/product-marketing/EKS/1. Bob Wise - AWS Keynote.pdfmanual sign-offs. Larger release. More Manual tests. Only roll-forward possible. Make Stage

© 2019, Amazon Web Services, Inc. or its Affiliates.

Evolution in Processes

Spiral to Slowness

Hand-crafted Deploy

Failed use reports

Re-Install Previous

RCA—shame

Try Again

Lengthen soak test

Start manual sign-offs

Larger release

More Manual tests

Only roll-forward possible

Make Stage a full replica

Test cycle time increases

Release gets bigger

Impact of failure much wider

Exec sign-off before release

Zero-failure policy implemented

Small group of superstars willing to risk change/install

Team discordLengthen planning cycle

Blame the Monolith!!! Great

team“CD”

Painful Rollback

Broken Deploys

Reduce Size

Increase Auto Tests

Release

Fix

Redeploy

Smooth Rollback

Fix

Redeploy Reduce Size

Increase Auto Tests

ReleaseAuto Rollback

Fix

High Velocity

Reduce Size

Regression Auto Tests

Manual/Auto test

Release

Monitor (publicly)

Velocity Flywheel

Page 4: Evolving DevOps to GitOpsd1.awsstatic.com/product-marketing/EKS/1. Bob Wise - AWS Keynote.pdfmanual sign-offs. Larger release. More Manual tests. Only roll-forward possible. Make Stage

© 2019, Amazon Web Services, Inc. or its Affiliates.

Effective Strategies

Focus on modern operations (CD) as the chokepoint to velocity over development improvements (Agile dev and CI).

Use container orchestration to realize CI and CD.

Incrementally evolve the entire org, not just Greenfield.

Treat operations hygiene as the critical prelude to microservice re-architecture: CD + observability + orchestration

Page 5: Evolving DevOps to GitOpsd1.awsstatic.com/product-marketing/EKS/1. Bob Wise - AWS Keynote.pdfmanual sign-offs. Larger release. More Manual tests. Only roll-forward possible. Make Stage

© 2019, Amazon Web Services, Inc. or its Affiliates.

Evolution of Approaches

People Robots

Package managers Immutable images

Config Databases Configuration as Code

Siloed Teams/Tools Integrated Teams/Tools

Focus on Dev Productivity Holistic Velocity

Page 6: Evolving DevOps to GitOpsd1.awsstatic.com/product-marketing/EKS/1. Bob Wise - AWS Keynote.pdfmanual sign-offs. Larger release. More Manual tests. Only roll-forward possible. Make Stage

© 2019, Amazon Web Services, Inc. or its Affiliates.

Evolution of Approaches

Manual Processes Automation

Package managers …and Bash!

Containers

Spreadsheets Configuration as

CodeDev->QA->Security-

>Ops DevOps

Focus on CI Focus on CD

Page 7: Evolving DevOps to GitOpsd1.awsstatic.com/product-marketing/EKS/1. Bob Wise - AWS Keynote.pdfmanual sign-offs. Larger release. More Manual tests. Only roll-forward possible. Make Stage

© 2019, Amazon Web Services, Inc. or its Affiliates.

Fully Automated Deployment is HARD.

Page 8: Evolving DevOps to GitOpsd1.awsstatic.com/product-marketing/EKS/1. Bob Wise - AWS Keynote.pdfmanual sign-offs. Larger release. More Manual tests. Only roll-forward possible. Make Stage

Deployment Challenges

Complicated imperative dance

Ordered steps

Dependency tracking

Packaging

Versioning

Rollbacks

Page 9: Evolving DevOps to GitOpsd1.awsstatic.com/product-marketing/EKS/1. Bob Wise - AWS Keynote.pdfmanual sign-offs. Larger release. More Manual tests. Only roll-forward possible. Make Stage

© 2019, Amazon Web Services, Inc. or its Affiliates.

Evolution of Ops and CD ApproachesImperativeAutomation

DeclarativeAutomation

Automated Mutation Immutability

Single StateReconciliation/Conver

gence

Page 10: Evolving DevOps to GitOpsd1.awsstatic.com/product-marketing/EKS/1. Bob Wise - AWS Keynote.pdfmanual sign-offs. Larger release. More Manual tests. Only roll-forward possible. Make Stage

© 2019, Amazon Web Services, Inc. or its Affiliates.

Evolution of Ops and CD Approaches

DevOps GitOps

Page 11: Evolving DevOps to GitOpsd1.awsstatic.com/product-marketing/EKS/1. Bob Wise - AWS Keynote.pdfmanual sign-offs. Larger release. More Manual tests. Only roll-forward possible. Make Stage

© 2019, Amazon Web Services, Inc. or its Affiliates.

GitOps

Everything in source control

Declarative configuration

Robots do all the work

Continuously converged and healed

Page 12: Evolving DevOps to GitOpsd1.awsstatic.com/product-marketing/EKS/1. Bob Wise - AWS Keynote.pdfmanual sign-offs. Larger release. More Manual tests. Only roll-forward possible. Make Stage

© 2019, Amazon Web Services, Inc. or its Affiliates.

Everything in Source Control

Managed with software engineering practices.

Human readable source of truth.

Statement of intent by the humans.

Reviewed before deployment by best practice and org policy.

Deployments triggered by merging the PR.

Page 13: Evolving DevOps to GitOpsd1.awsstatic.com/product-marketing/EKS/1. Bob Wise - AWS Keynote.pdfmanual sign-offs. Larger release. More Manual tests. Only roll-forward possible. Make Stage

© 2019, Amazon Web Services, Inc. or its Affiliates.

Declarative

Easier to reason about at scale.

Disciplined simplification.

Define intent, let robots do the work to implement.

Convergence point.

Page 14: Evolving DevOps to GitOpsd1.awsstatic.com/product-marketing/EKS/1. Bob Wise - AWS Keynote.pdfmanual sign-offs. Larger release. More Manual tests. Only roll-forward possible. Make Stage

© 2019, Amazon Web Services, Inc. or its Affiliates.

Robots aren’t our overlords yet: They do all the workMost orgs terrified if humans aren’t doing deployments.

High velocity orgs are terrified if they are.

Page 15: Evolving DevOps to GitOpsd1.awsstatic.com/product-marketing/EKS/1. Bob Wise - AWS Keynote.pdfmanual sign-offs. Larger release. More Manual tests. Only roll-forward possible. Make Stage

© 2019, Amazon Web Services, Inc. or its Affiliates.

Continuous Convergence / Drift Management

Act Measure

Compare

DesiredState

Page 16: Evolving DevOps to GitOpsd1.awsstatic.com/product-marketing/EKS/1. Bob Wise - AWS Keynote.pdfmanual sign-offs. Larger release. More Manual tests. Only roll-forward possible. Make Stage

© 2019, Amazon Web Services, Inc. or its Affiliates.

What’s Next?

CD PD

Page 17: Evolving DevOps to GitOpsd1.awsstatic.com/product-marketing/EKS/1. Bob Wise - AWS Keynote.pdfmanual sign-offs. Larger release. More Manual tests. Only roll-forward possible. Make Stage

© 2019, Amazon Web Services, Inc. or its Affiliates.

What’s Next?

Continuous Deployment

Progressive Deployment

Page 18: Evolving DevOps to GitOpsd1.awsstatic.com/product-marketing/EKS/1. Bob Wise - AWS Keynote.pdfmanual sign-offs. Larger release. More Manual tests. Only roll-forward possible. Make Stage

© 2019, Amazon Web Services, Inc. or its Affiliates.

What’s Next?

Continuous Deployment

Progressive Deployment

Why?

Page 19: Evolving DevOps to GitOpsd1.awsstatic.com/product-marketing/EKS/1. Bob Wise - AWS Keynote.pdfmanual sign-offs. Larger release. More Manual tests. Only roll-forward possible. Make Stage

© 2019, Amazon Web Services, Inc. or its Affiliates.

Page 20: Evolving DevOps to GitOpsd1.awsstatic.com/product-marketing/EKS/1. Bob Wise - AWS Keynote.pdfmanual sign-offs. Larger release. More Manual tests. Only roll-forward possible. Make Stage

© 2019, Amazon Web Services, Inc. or its Affiliates.

Progressive DeploymentRoll out slowly, and if all tests are still passing,accelerate the pace of rollout exponentially, otherwiseroll back automatically. Target 24 hours for full deploy.

Roll out slowly but fully into one region, once it hasbaked for a week, roll out every other region rapidly.

Roll out quickly to user profile X first, then to profile Y…

Page 21: Evolving DevOps to GitOpsd1.awsstatic.com/product-marketing/EKS/1. Bob Wise - AWS Keynote.pdfmanual sign-offs. Larger release. More Manual tests. Only roll-forward possible. Make Stage

© 2019, Amazon Web Services, Inc. or its Affiliates.

Progressive Deployment

● Blast radius management● Fine control over deployment strategy and execution● Control rollout scope● Who sees it and how much of it gets out where

Roll out slowly, and if all tests are still passing,accelerate the pace of rollout exponentially, otherwiseroll back automatically. Target 24 hours for full deploy.

Roll out slowly but fully into one region, once it hasbaked for a week, roll out every other region rapidly.

Roll out quickly to user profile X first, then to profile Y…

Page 22: Evolving DevOps to GitOpsd1.awsstatic.com/product-marketing/EKS/1. Bob Wise - AWS Keynote.pdfmanual sign-offs. Larger release. More Manual tests. Only roll-forward possible. Make Stage

© 2019, Amazon Web Services, Inc. or its Affiliates.

Fully Automated Deployment is Complicated…

But the robots are here to help...

Page 23: Evolving DevOps to GitOpsd1.awsstatic.com/product-marketing/EKS/1. Bob Wise - AWS Keynote.pdfmanual sign-offs. Larger release. More Manual tests. Only roll-forward possible. Make Stage

Kubernetes: Made for GitOps

● Supports declarative application management● Idempotency● Convergence

● Controllers● Operators

● Immutability● Deployments● Ingress● Organic healing properties

Page 24: Evolving DevOps to GitOpsd1.awsstatic.com/product-marketing/EKS/1. Bob Wise - AWS Keynote.pdfmanual sign-offs. Larger release. More Manual tests. Only roll-forward possible. Make Stage

© 2019, Amazon Web Services, Inc. or its Affiliates.

https://github.com/argoproj/gitops-engine/

Argo CD and Flux CD are joining forces!

● Best of Flux CD and Argo CD● Open source collaboration● Expands GitOps ecosystem

Join us in evolving Argo CD and Flux CD!