key to modern devops azure days openshift technical overview any container laptop datacenter...

39
Azure days 28/02/2018 Openshift: Key to modern DevOps Jiří Kolář Solution Architect CZ/SK/CEE [email protected]

Upload: truongdien

Post on 18-May-2018

228 views

Category:

Documents


6 download

TRANSCRIPT

Page 1: Key to modern DevOps Azure days OPENSHIFT TECHNICAL OVERVIEW ANY CONTAINER Laptop Datacenter OpenStack Amazon Web Services Microsoft Azure Google Cloud ANY INFRASTRUCTURE APPLICATION

Azure days

28/02/2018

Openshift:Key to modern DevOps

Jiří KolářSolution Architect CZ/SK/[email protected]

Page 2: Key to modern DevOps Azure days OPENSHIFT TECHNICAL OVERVIEW ANY CONTAINER Laptop Datacenter OpenStack Amazon Web Services Microsoft Azure Google Cloud ANY INFRASTRUCTURE APPLICATION

PROBLEM:

I.T. OPERATIONSDEVELOPERS

Page 3: Key to modern DevOps Azure days OPENSHIFT TECHNICAL OVERVIEW ANY CONTAINER Laptop Datacenter OpenStack Amazon Web Services Microsoft Azure Google Cloud ANY INFRASTRUCTURE APPLICATION

GENERAL DISTRIBUTION

THE SOLUTION

I.T. OPERATIONSDEVELOPERS

Page 4: Key to modern DevOps Azure days OPENSHIFT TECHNICAL OVERVIEW ANY CONTAINER Laptop Datacenter OpenStack Amazon Web Services Microsoft Azure Google Cloud ANY INFRASTRUCTURE APPLICATION

GENERAL DISTRIBUTION

Key concepts:• Small changes >> Less Risk >> Rapid feedback• Culture change: Acceptance of failure• Delivery pipeline = Automation!• Team ownership & responsibility!

THE SOLUTION

I.T. OPERATIONS

DEVELOPERS

Page 5: Key to modern DevOps Azure days OPENSHIFT TECHNICAL OVERVIEW ANY CONTAINER Laptop Datacenter OpenStack Amazon Web Services Microsoft Azure Google Cloud ANY INFRASTRUCTURE APPLICATION

GENERAL DISTRIBUTION5

DEVOPS WITH CONTAINERS

sourcerepository

CI/CDengine

dev container

physical

virtual

private cloud

public cloud

Page 6: Key to modern DevOps Azure days OPENSHIFT TECHNICAL OVERVIEW ANY CONTAINER Laptop Datacenter OpenStack Amazon Web Services Microsoft Azure Google Cloud ANY INFRASTRUCTURE APPLICATION

OPENSHIFT TECHNICAL OVERVIEW6

ANYCONTAINER

Amazon Web Services Microsoft Azure Google CloudOpenStackDatacenterLaptop

ANYINFRASTRUCTURE

APPLICATION LIFECYCLE MANAGEMENT

ENTERPRISE CONTAINER HOST

CONTAINER ORCHESTRATION AND MANAGEMENT(KUBERNETES)

CONTAINER PLATFORM

Container platform

Page 7: Key to modern DevOps Azure days OPENSHIFT TECHNICAL OVERVIEW ANY CONTAINER Laptop Datacenter OpenStack Amazon Web Services Microsoft Azure Google Cloud ANY INFRASTRUCTURE APPLICATION

OPENSHIFT TECHNICAL OVERVIEW7

ANYCONTAINER

Amazon Web Services Microsoft Azure Google CloudOpenStackDatacenterLaptop

ANYINFRASTRUCTURE

APPLICATION LIFECYCLE MANAGEMENT

ENTERPRISE CONTAINER HOST

CONTAINER ORCHESTRATION AND MANAGEMENT(KUBERNETES)

OPENSHIFT CONTAINER PLATFORM

Page 8: Key to modern DevOps Azure days OPENSHIFT TECHNICAL OVERVIEW ANY CONTAINER Laptop Datacenter OpenStack Amazon Web Services Microsoft Azure Google Cloud ANY INFRASTRUCTURE APPLICATION

Openshift Source 2 Image

Code

Build

Deploy

Container Image

Registry

Page 9: Key to modern DevOps Azure days OPENSHIFT TECHNICAL OVERVIEW ANY CONTAINER Laptop Datacenter OpenStack Amazon Web Services Microsoft Azure Google Cloud ANY INFRASTRUCTURE APPLICATION

JBOSS EAPJBOSS DATA GRID

JBOSS DATA VIRTUALIZATION

JBOSS AM-QJBOSS BRMSJBOSS BPMJBOSS FUSE

RED HAT MOBILE3 Scale

Container

BusinessAutomation

Container

Integration

Container

Data &Storage

Container

Web &Mobile

Traditional, Stateful, and Microservices-based Apps

OpenShift Application Lifecycle Management(CI/CD)

Build Automation Deployment Automation

Service Catalog(Language Runtimes, Middleware, Databases)

Self-Service

Infrastructure Automation & Cockpit

Networking Storage Registry Logs & Metrics

Security

Container Orchestration & Cluster Management(kubernetes)

Container Runtime & Packaging(Docker)

Enterprise Container Host

Red Hat Enterprise LinuxAtomic Host

Page 10: Key to modern DevOps Azure days OPENSHIFT TECHNICAL OVERVIEW ANY CONTAINER Laptop Datacenter OpenStack Amazon Web Services Microsoft Azure Google Cloud ANY INFRASTRUCTURE APPLICATION

OPENSHIFT TECHNICAL OVERVIEW10

BUT…SOME TEAMS ALREADY HAVE

AUTOMATED DELIVERY PIPELINES

Page 11: Key to modern DevOps Azure days OPENSHIFT TECHNICAL OVERVIEW ANY CONTAINER Laptop Datacenter OpenStack Amazon Web Services Microsoft Azure Google Cloud ANY INFRASTRUCTURE APPLICATION

OPENSHIFT TECHNICAL OVERVIEW11

WHAT IF THERE ARE EXISTING DELIVERY PROCESSES?

BUILD APP BINARY

RUN TESTS

PROMOTE APPBINARY

BUILD CONTAINER IMAGE

RUN TESTS

PROMOTE CONTAINERIMAGE

SOURCEVERSION CONTROL

ENTERPRISEBINARY REPO

AWS ECR

ENTERPRISEIMAGE REPO

Page 12: Key to modern DevOps Azure days OPENSHIFT TECHNICAL OVERVIEW ANY CONTAINER Laptop Datacenter OpenStack Amazon Web Services Microsoft Azure Google Cloud ANY INFRASTRUCTURE APPLICATION

OPENSHIFT TECHNICAL OVERVIEW12

ENRICHING EXISTING DELIVERY PROCESSES WITH OPENSHIFT

OPENSHIFTCLUSTER

EXISTINGDELIVERYPROCESS

DEPLOY DEPLOY DEPLOY

Page 13: Key to modern DevOps Azure days OPENSHIFT TECHNICAL OVERVIEW ANY CONTAINER Laptop Datacenter OpenStack Amazon Web Services Microsoft Azure Google Cloud ANY INFRASTRUCTURE APPLICATION

OPENSHIFT TECHNICAL OVERVIEW13

OPENSHIFT PIPELINES

● OpenShift Pipelines allow defining a CI/CD workflow via a Jenkins pipeline which can be started, monitored, and managed similar to other builds

● Dynamic provisioning of Jenkins slaves

● Auto-provisioning of Jenkins server

● OpenShift Pipeline strategies○ Embedded Jenkinsfile○ Jenkinsfile from a Git repository

apiVersion: v1kind: BuildConfigmetadata: name: app-pipelinespec: strategy: type: JenkinsPipeline jenkinsPipelineStrategy: jenkinsfile: |- node('maven') { stage('build app') { git url: 'https://git/app.git' sh "mvn package" } stage('build image') { sh "oc start-build app --from-file=target/app.jar } stage('deploy') { openshiftDeploy deploymentConfig: 'app' } }

Provision a Jenkins slave for running Maven

Page 14: Key to modern DevOps Azure days OPENSHIFT TECHNICAL OVERVIEW ANY CONTAINER Laptop Datacenter OpenStack Amazon Web Services Microsoft Azure Google Cloud ANY INFRASTRUCTURE APPLICATION

OpenShift CI/CD

DEMO

Page 15: Key to modern DevOps Azure days OPENSHIFT TECHNICAL OVERVIEW ANY CONTAINER Laptop Datacenter OpenStack Amazon Web Services Microsoft Azure Google Cloud ANY INFRASTRUCTURE APPLICATION

OpenShift CI/CD flow

Page 16: Key to modern DevOps Azure days OPENSHIFT TECHNICAL OVERVIEW ANY CONTAINER Laptop Datacenter OpenStack Amazon Web Services Microsoft Azure Google Cloud ANY INFRASTRUCTURE APPLICATION

APPLICATION SERVICES

Page 17: Key to modern DevOps Azure days OPENSHIFT TECHNICAL OVERVIEW ANY CONTAINER Laptop Datacenter OpenStack Amazon Web Services Microsoft Azure Google Cloud ANY INFRASTRUCTURE APPLICATION

OPENSHIFT TECHNICAL OVERVIEW

CrunchyData

GitLab

Iron.io

Couchbase

Sonatype

EnterpriseDB

NuoDB

Fujitsu

and many more

17

...and virtually any docker

image out there!

TRUE POLYGLOT PLATFORMPHPPythonJava NodeJS Perl Ruby .NET

Core

ApacheHTTPServer

MySQL Redis

nginx TomcatVarnish

JBossEAP

JBossA-MQ

JBossFuse

JBossBRMS

JBossBPMS

JBossData Grid

JBossData Virt

RH Mobile RH SSO3SCALE

API mgmt

JBossWeb

Server

SpringBoot

Wildfly Swarm Vert.x

PostgreSQL MongoDB

Phusion Passenger

Third-partyLanguage Runtimes

Third-partyDatabases

Third-partyApp

Runtimes

Third-partyMiddleware

Third-partyMiddleware

LANGUAGES

DATABASES

WEB SERVERS

MIDDLEWARE

Page 18: Key to modern DevOps Azure days OPENSHIFT TECHNICAL OVERVIEW ANY CONTAINER Laptop Datacenter OpenStack Amazon Web Services Microsoft Azure Google Cloud ANY INFRASTRUCTURE APPLICATION

DEPLOYMENT OPTIONS?

Page 19: Key to modern DevOps Azure days OPENSHIFT TECHNICAL OVERVIEW ANY CONTAINER Laptop Datacenter OpenStack Amazon Web Services Microsoft Azure Google Cloud ANY INFRASTRUCTURE APPLICATION

OPENSHIFT TECHNICAL OVERVIEW19

BUILD AND DEPLOY CONTAINER IMAGES

DEPLOY YOURSOURCE CODE

DEPLOY YOURCONTAINER IMAGE

DEPLOY YOURAPP BINARY

Page 20: Key to modern DevOps Azure days OPENSHIFT TECHNICAL OVERVIEW ANY CONTAINER Laptop Datacenter OpenStack Amazon Web Services Microsoft Azure Google Cloud ANY INFRASTRUCTURE APPLICATION

LOCAL DEVELOPMENT??

Page 21: Key to modern DevOps Azure days OPENSHIFT TECHNICAL OVERVIEW ANY CONTAINER Laptop Datacenter OpenStack Amazon Web Services Microsoft Azure Google Cloud ANY INFRASTRUCTURE APPLICATION

OPENSHIFT

LOCAL DEVELOPMENT WITH CONTAINERS

Developer’s Local Env (laptop, desktop)

CDKJBDS

VCS (Git)

Build

Run

Test

JenkinsNexus(Library Management)

Deployment Pipeline

Automatic Testing

Release management

Failure feedback

Page 22: Key to modern DevOps Azure days OPENSHIFT TECHNICAL OVERVIEW ANY CONTAINER Laptop Datacenter OpenStack Amazon Web Services Microsoft Azure Google Cloud ANY INFRASTRUCTURE APPLICATION

DEUTSCHE BANK - Technology Transformation“Delivering Everything as a Service. From 20% adoption to 40% in 1yr; planning to move 85% of all applications to OpenShift platform. We won the hearts and minds of developers.” -- Pat Healy, CTO, Deutsche Bank

● Macro trends are radically reshaping the banking industry● Need to regain software expertise that was previously outsourced● OpenShift replaced an internal, homegrown PaaS platform● Over 300 internal projects moved to OpenShift● 6x better efficiency of computing resources using containers and

OpenShift. Driving overall utilization up via multi-tenancy. ● Leverage OpenShift across multiple public clouds.

Ideas to Production, safely in a day.

View the Deutsche Bank keynote

Page 23: Key to modern DevOps Azure days OPENSHIFT TECHNICAL OVERVIEW ANY CONTAINER Laptop Datacenter OpenStack Amazon Web Services Microsoft Azure Google Cloud ANY INFRASTRUCTURE APPLICATION
Page 24: Key to modern DevOps Azure days OPENSHIFT TECHNICAL OVERVIEW ANY CONTAINER Laptop Datacenter OpenStack Amazon Web Services Microsoft Azure Google Cloud ANY INFRASTRUCTURE APPLICATION

DO080 Deploying Containerized Applications Technical Overview (FREE!)DO092 Developing Cloud-Native Applications with Microservices Architectures (FREE!)DO180 Introduction to Containers, Kubernetes, and Red Hat OpenShift

DO280 Red Hat OpenShift Administration IDO285 Containers, Kubernetes, and Red Hat OpenShift Administration IDO380 Red Hat OpenShift Administration II: High Availability

DO290 Developing and Deploying Applications on OpenShift

Knowledge is the power. Training is the key!

Page 25: Key to modern DevOps Azure days OPENSHIFT TECHNICAL OVERVIEW ANY CONTAINER Laptop Datacenter OpenStack Amazon Web Services Microsoft Azure Google Cloud ANY INFRASTRUCTURE APPLICATION
Page 26: Key to modern DevOps Azure days OPENSHIFT TECHNICAL OVERVIEW ANY CONTAINER Laptop Datacenter OpenStack Amazon Web Services Microsoft Azure Google Cloud ANY INFRASTRUCTURE APPLICATION

Community Powered Innovation

Page 27: Key to modern DevOps Azure days OPENSHIFT TECHNICAL OVERVIEW ANY CONTAINER Laptop Datacenter OpenStack Amazon Web Services Microsoft Azure Google Cloud ANY INFRASTRUCTURE APPLICATION
Page 28: Key to modern DevOps Azure days OPENSHIFT TECHNICAL OVERVIEW ANY CONTAINER Laptop Datacenter OpenStack Amazon Web Services Microsoft Azure Google Cloud ANY INFRASTRUCTURE APPLICATION

OpenShift Customer References

Page 29: Key to modern DevOps Azure days OPENSHIFT TECHNICAL OVERVIEW ANY CONTAINER Laptop Datacenter OpenStack Amazon Web Services Microsoft Azure Google Cloud ANY INFRASTRUCTURE APPLICATION

Evolving Application Architecture at Volvo

785 apps across 560 app servers

OpenShift provides build, distribution & runtime environment

Platform for DevOps and Microservices

Running OpenShift on Azure, automatically provisioned with Ansible

Page 30: Key to modern DevOps Azure days OPENSHIFT TECHNICAL OVERVIEW ANY CONTAINER Laptop Datacenter OpenStack Amazon Web Services Microsoft Azure Google Cloud ANY INFRASTRUCTURE APPLICATION

DEUTSCHE BANK - Technology Transformation“Delivering Everything as a Service. From 20% adoption to 40% in 1yr; planning to move 85% of all applications to OpenShift platform. We won the hearts and minds of developers.” -- Pat Healy, CTO, Deutsche Bank

● Macro trends are radically reshaping the banking industry● Need to regain software expertise that was previously outsourced● OpenShift replaced an internal, homegrown PaaS platform● Over 300 internal projects moved to OpenShift● 6x better efficiency of computing resources using containers and

OpenShift. Driving overall utilization up via multi-tenancy. ● Leverage OpenShift across multiple public clouds.

Ideas to Production, safely in a day.

View the Deutsche Bank keynote

Page 31: Key to modern DevOps Azure days OPENSHIFT TECHNICAL OVERVIEW ANY CONTAINER Laptop Datacenter OpenStack Amazon Web Services Microsoft Azure Google Cloud ANY INFRASTRUCTURE APPLICATION

DEUTSCHE BANK - Technology Transformation

“Delivering Everything as a Service. From 20% adoption to 40% in 1yr; planning to move 85% of all applications to OpenShift platform. We

won the hearts and minds of developers.”

Page 32: Key to modern DevOps Azure days OPENSHIFT TECHNICAL OVERVIEW ANY CONTAINER Laptop Datacenter OpenStack Amazon Web Services Microsoft Azure Google Cloud ANY INFRASTRUCTURE APPLICATION

Reduce complexity of our IT Infrastructure

Operating systems 45 4

Key performance indicators 2015 2020 Plan Change

End-of-life hardware / software 166 0

% virtualisation 46% 95%

Private cloud adoption 20% 80%

Intersystem reconciliations ~1,000 ~300

~90%

100%

49ppts

60ppts

70%

“Run the bank” costs targeted to decline by EUR ~800 m

9

Page 33: Key to modern DevOps Azure days OPENSHIFT TECHNICAL OVERVIEW ANY CONTAINER Laptop Datacenter OpenStack Amazon Web Services Microsoft Azure Google Cloud ANY INFRASTRUCTURE APPLICATION

BARCLAYS BANK - Digital Transformation “OpenShift is the primary platform to deploy Barclays apps across any clouds. We couldn’t be happier with our OpenShift progress to date.” -- Kieran Broadfoot, CTO of Hosting, Barclays

● 300 year old bank● Focused on delivering new services to banking customers● Moving from proprietary middleware to open source● Moved 3000 applications to their cloud in last 2yrs; 500 in

production. ● Implemented CI/CD and Infrastructure-as-Code pipelines to allow

Devs and Ops to work better together.

View the Barclays keynote.

Page 34: Key to modern DevOps Azure days OPENSHIFT TECHNICAL OVERVIEW ANY CONTAINER Laptop Datacenter OpenStack Amazon Web Services Microsoft Azure Google Cloud ANY INFRASTRUCTURE APPLICATION

BARCLAYS BANK - Digital Transformation

“OpenShift is the primary platform to deploy Barclays apps across any clouds. We couldn’t be happier with our OpenShift progress to date.”

Page 35: Key to modern DevOps Azure days OPENSHIFT TECHNICAL OVERVIEW ANY CONTAINER Laptop Datacenter OpenStack Amazon Web Services Microsoft Azure Google Cloud ANY INFRASTRUCTURE APPLICATION

BMW GROUP - Evolving the Connected Car Digital customer experience, connected and automated driving and digitalized business processes lead to a transformation of the BMW Group towards software and services (Tech).

● Global manufacturer of luxury automobiles, motorcycles and engines. “The Ultimate Driving Machine”.

● Evolving in-vehicle communications and telematics for 15yrs.● OpenShift platform enables BMW ConnectedDrive service.● Enables Electric Cars, Service Calls, Real-Time Traffic, Driving

Assistance, Anonymous Cars.● Moving from Monolithic applications to Microservices,

Containers and Kubernetes

Read the press release and view Red Hat Summit presentation.

Page 36: Key to modern DevOps Azure days OPENSHIFT TECHNICAL OVERVIEW ANY CONTAINER Laptop Datacenter OpenStack Amazon Web Services Microsoft Azure Google Cloud ANY INFRASTRUCTURE APPLICATION

SCHIPHOL AIRPORT - Rethinking Traveler ExperienceRed Hat OpenShift Container Platform, truly, has stolen my heart, because the platform is innovative, I can deploy quickly, and I am in control of the containers. - Michael Aalbers, Amsterdam Airport Schiphol

● International Airport, 3rd busiest in Europe, 64M passengers per year.

● Goal to become the world’s best digital airport by 2018.● Needed to accelerate application development time through

cloud-agnostic platform. ● Deployed OpenShift across Private Cloud, AWS and Azure.● Leverage JBoss FUSE and 3Scale for API Management,

delivering API-based services to passengers and partners.

Read the press release

Page 37: Key to modern DevOps Azure days OPENSHIFT TECHNICAL OVERVIEW ANY CONTAINER Laptop Datacenter OpenStack Amazon Web Services Microsoft Azure Google Cloud ANY INFRASTRUCTURE APPLICATION

Platform Infrastructure

● Shift from virtualization to scale-out cloud infrastructure

● Rapid growth in public cloud usage for enterprises

● Hybrid cloud deployments span private & multiple public clouds

Datacenter

Hosted

Hybrid

Page 38: Key to modern DevOps Azure days OPENSHIFT TECHNICAL OVERVIEW ANY CONTAINER Laptop Datacenter OpenStack Amazon Web Services Microsoft Azure Google Cloud ANY INFRASTRUCTURE APPLICATION

F4726-022217

BUT HERE’S WHAT IT LOOKS LIKE FOR ONE FINANCIAL SERVICES CUSTOMER

IT’S A DIFFERENT JOURNEY FOR EVERYONE

Testprivate cloud

Strategic hybrid cloud

DEV

Test public cloud sandbox (IaaS & PaaS)

Tacticalpublic cloud

AUTOMATION & DEVOPS PROCESSES CONTAINERS FOR EVERYTHING

DEV

Production/managed private cloud

Traditional physical

environment

Strategic virtualization

Page 39: Key to modern DevOps Azure days OPENSHIFT TECHNICAL OVERVIEW ANY CONTAINER Laptop Datacenter OpenStack Amazon Web Services Microsoft Azure Google Cloud ANY INFRASTRUCTURE APPLICATION