Slide 1

Slide 1 text

1 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential Herfiedhantya Bhagaskara TFE Team Feb 2020 IPD Week Introduction to DevOps and CI/CD

Slide 2

Slide 2 text

2 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential Agenda What is DevOps ? Intro CI/CD

Slide 3

Slide 3 text

3 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential What is DevOps?

Slide 4

Slide 4 text

4 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential • Care About • Everything is stable • Standards • Templates • Not getting bothered at 2:00 am • Success • Software is stable • Backup and restore works • Systems are operating within defined thresholds Operations World

Slide 5

Slide 5 text

5 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential • Care About • Writing Software • Working Code • APIs • Libraries • Sprints • Success • Software works – Laptop and Test • Finished Sprint Developers World

Slide 6

Slide 6 text

6 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential A C B

Slide 7

Slide 7 text

7 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential A C B

Slide 8

Slide 8 text

8 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

Slide 9

Slide 9 text

© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential “If you are doing quarterly releases and your competitor is doing daily releases you will fall so far behind” Adrian Cockcroft – former Netflix Architect

Slide 10

Slide 10 text

10 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential Gene Kim - author of “The Phoenix Project” and the “DevOps Handbook” “[DevOps is] a set of cultural norms and technical practices that enable this fast flow of work from dev through test through operations while preserving world class reliability”

Slide 11

Slide 11 text

11 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential Lean

Slide 12

Slide 12 text

© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential • Organization can never have enough information to understand how to do better in the marketplace. • The more we experiment, the more information we can gather • Solid Information leads to improved strategy and benefits our customer as well as the business. Improve Ability to Respond and Shift

Slide 13

Slide 13 text

© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential HOW ?

Slide 14

Slide 14 text

14 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential What is a Microservice? • A small and focused piece of software • Stateless loosely coupled • Language and technology independent • Highly scalable and fault tolerant

Slide 15

Slide 15 text

15 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential Application Evolution is Driving Technology Adoption

Slide 16

Slide 16 text

16 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential Better aligning to the Dev and Ops of DevOps • Puppet, Chef, Ansible are popular with Ops but not Devs • Containers are equally popular with both • Containers create a natural segmentation of effort • Devs inside the container, Ops outside the container The Impact of Containers on DevOps

Slide 17

Slide 17 text

17 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential • Guaranteed consistency for CI/CD • Simplified light weight image files • Only what the app needs and nothing else • What is built on a laptop will work the same in production • Open community built best of breed containers • Public container repository - Docker Hub • SPEED • Deploy in seconds instead of minutes The Impact of Containers on DevOps

Slide 18

Slide 18 text

18 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential Running Docker

Slide 19

Slide 19 text

19 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

Slide 20

Slide 20 text

20 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

Slide 21

Slide 21 text

21 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 4 Challenges

Slide 22

Slide 22 text

22 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential Solutions

Slide 23

Slide 23 text

23 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential • Open Source system started by Google in 2014 for automating deployment, operations, and scaling of containerized applications • Written in Go (aka golang) • Portable • Public, Private and Hybrid • Extensible • Modular, Pluggable • Self-Healing • Auto-scaling, Auto-replication • Contributed to CNCF in July 2015 What is Kubernetes (K8S) ?

Slide 24

Slide 24 text

24 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential Kubernetes Deployment

Slide 25

Slide 25 text

25 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential Kubernetes Deployment

Slide 26

Slide 26 text

26 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential Death Star

Slide 27

Slide 27 text

27 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential Microservice = LOTS of east west traffic

Slide 28

Slide 28 text

© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential Intro CI/CD (DevOps tools of trades)

Slide 29

Slide 29 text

No content

Slide 30

Slide 30 text

© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential Sequential Design Approach Requirements and scope are fixed Waterfall Development Process

Slide 31

Slide 31 text

© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential Before Agile Methodologies

Slide 32

Slide 32 text

© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential Benefits of Agile Development

Slide 33

Slide 33 text

© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

Slide 34

Slide 34 text

© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

Slide 35

Slide 35 text

© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

Slide 36

Slide 36 text

© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

Slide 37

Slide 37 text

© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential • Place to store your current and past versions of code/configuration • Ability to merge, branch, fork • Ability to see who has changed which file • Highly available service • Ability to revert to prior versions • Public or Private / OnPrem / OffPrem • Source Code Management / Version Control System

Slide 38

Slide 38 text

© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential Local Development

Slide 39

Slide 39 text

© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential CI/CD

Slide 40

Slide 40 text

© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential • Place to Store your Artefact (Docker images, bin, etc) • Public or Private / OnPrem / OffPrem Artefact Management

Slide 41

Slide 41 text

© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential Infrastructure as Code Management of infrastructure (networks, virtual machines, load balancers, and connection topology) in a descriptive model, using the same versioning as DevOps team uses for source code

Slide 42

Slide 42 text

© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential Monitoring, Logging, Alerting

Slide 43

Slide 43 text

© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential • Integration with Development Environment • Code commits should appear • Chat with History • Team Rooms • Multi-Platform Clients • “Chat-Ops” Collaboration, Communication and Sharing

Slide 44

Slide 44 text

© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential Cisco UCS Integrated Infrastructure for Containers

Slide 45

Slide 45 text

© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential • Continuous Integration: Merging of development work with code base constantly so that automated testing can catch problems early • Continuous Delivery: Software package delivery mechanism for releasing code to staging for review and inspection • Continuous Deployment: Relies on CI and CD to automatically release code into production as soon as it is ready. Constant flow of new features into production Continuous Integration, Delivery, and Deployment

Slide 46

Slide 46 text

© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

Slide 47

Slide 47 text

© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential What About Security? Must be inserted into the DevOps process (not a bolt on!)

Slide 48

Slide 48 text

48 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential Whats Next ? Check out https://developer.cisco.com/ https://developer.cisco.com/site/sandbox/ CI/CD at DevNet Sandbox

Slide 49

Slide 49 text

No content