Share
Embed
Introduction to DevOps and CI/CD
Introduction to DevOps and CI/CD
In this session, we will cover the concept of DevOps and the tools of trade.
Date: 20 February Time: 4:00 a.m. UTC
Herfiedhantya Bhagaskara
Associate Technical Manager
page2me kitarotao
February 20, 2020
Transcript
49 slides
-
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 -
2 © 2016 Cisco and/or its affiliates. All rights reserved.
Cisco Confidential Agenda What is DevOps ? Intro CI/CD -
3 © 2016 Cisco and/or its affiliates. All rights reserved.
Cisco Confidential What is DevOps? -
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 -
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 -
6 © 2016 Cisco and/or its affiliates. All rights reserved.
Cisco Confidential A C B -
7 © 2016 Cisco and/or its affiliates. All rights reserved.
Cisco Confidential A C B -
8 © 2016 Cisco and/or its affiliates. All rights reserved.
Cisco Confidential -
© 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 -
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” -
11 © 2016 Cisco and/or its affiliates. All rights reserved.
Cisco Confidential Lean -
© 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 -
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco
Confidential HOW ? -
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 -
15 © 2016 Cisco and/or its affiliates. All rights reserved.
Cisco Confidential Application Evolution is Driving Technology Adoption -
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 -
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 -
18 © 2016 Cisco and/or its affiliates. All rights reserved.
Cisco Confidential Running Docker -
19 © 2016 Cisco and/or its affiliates. All rights reserved.
Cisco Confidential -
20 © 2016 Cisco and/or its affiliates. All rights reserved.
Cisco Confidential -
21 © 2016 Cisco and/or its affiliates. All rights reserved.
Cisco Confidential 4 Challenges -
22 © 2016 Cisco and/or its affiliates. All rights reserved.
Cisco Confidential Solutions -
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) ? -
24 © 2016 Cisco and/or its affiliates. All rights reserved.
Cisco Confidential Kubernetes Deployment -
25 © 2016 Cisco and/or its affiliates. All rights reserved.
Cisco Confidential Kubernetes Deployment -
26 © 2016 Cisco and/or its affiliates. All rights reserved.
Cisco Confidential Death Star -
27 © 2016 Cisco and/or its affiliates. All rights reserved.
Cisco Confidential Microservice = LOTS of east west traffic -
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco
Confidential Intro CI/CD (DevOps tools of trades) -
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco
Confidential Sequential Design Approach Requirements and scope are fixed Waterfall Development Process -
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco
Confidential Before Agile Methodologies -
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco
Confidential Benefits of Agile Development -
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco
Confidential © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential -
© 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 -
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco
Confidential Local Development -
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco
Confidential CI/CD -
© 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 -
© 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 -
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco
Confidential Monitoring, Logging, Alerting -
© 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 -
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco
Confidential Cisco UCS Integrated Infrastructure for Containers -
© 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 -
© 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!) -
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