SlideShare ist ein Scribd-Unternehmen logo
1 von 30
@grabnerandi#DevoxxPL
Platinum Sponsor:
Shipping Code like a x
Automating your Delivery Pipelines so you can focus on
code
Andreas Grabner
Dynatrace
www.keptn.sh
@keptnProject
github.com/keptn
Confidential 2
PROD (1)
WhatIhave,I want& Idon‘twantinmodern softwaredelivery & operations
• I have artifacts built throughmyCIpushed to
• I have tests that validate functionality& performance
• Ihave a list of quality, scalability &performancecritera
• Iwant to automate deploy, test, validate & promote
• Iwant to automateoperational tasks e.g: rollback, ...
• Idon‘t want to build & maintain deployment pipelines, tool-integrations or auto-remediation scripts
• Idon‘t want to create or modify kubernetes, Istio or Helm charts
v1.0 v2.0 v3.0
STAGE (4)
STAGE (1)STAGE (2) PROD (2)
PROD (4)
v4.0
PROD (3)
Confidential 3
https://keptn.sh/docs/0.x.x/installation/
1. GKE Cluster
2. Signedup for DynatraceFreeTrial &Installed DynatraceOneAgent k8sOperator
Confidential 4
https://keptn.sh/docs/0.x.x/installation/
1. GitHub Org &keptn CLI from https://github.com/keptn/keptn/releases/tag/0.x.x
2. Install keptn with default uniform (GitHub, Helm, Jmeter,Pitometer, Gatekeeper, Slack, Dynatrace,Jenkins...)
3. Connectkeptn to my GitHub Org (Support for GitLabs, Bitbucket... Arefollowing)
4. Createproject &onboard a service based on https://keptn.sh/docs/0.x.x/usecases/onboard-carts-service/
$ keptn install
$ keptn create project keptn-sample shipyard.yaml
$ keptn onboard service simplenodeservice [values.yaml deployment.yaml ...]
$ keptn configure --org=agrabner-keptn-sample --user=ghuser --token=ghtoken
Confidential 5
v1.0
90/100
$ keptn new artifact sampleservice:1.0
Confidential 6
v1.0 v2.0 v3.0 v4.0
10/10095/100100/100
$ keptn new artifact sampleservice:1.0$ keptn new artifact sampleservice:2.0$ keptn new artifact sampleservice:3.0$ keptn new artifact sampleservice:4.0
Confidential 8
Why did we build ?
Because cloud native delivery and operations is a BIG challenge!
Cloud Native
Confidential 9
Commit Cycle Time
= Speed to Market
MTTR
Mean Time to Remediate
4.8 days
4 hours
~ 10min
12.5 days 2 days ~ 1 hour
The reality and evidence supports it!
https://dynatrace.ai/acsurvey
Only < 5% is „Cloud Native“
Confidential 10
Quote: “Pipelines seem to be becoming our new future un-managable legacy code!“
First: solves the Continuous Delivery Problem!
Second: Continuous Delivery is NOT ENOUGH!
Continuous Delivery – Launch control
Launch operations are supervised and
controlled from several control rooms (also
known as a firing room). The controllers are
in control of pre-launch checks, the booster
and spacecraft. Once the rocket has cleared
the launch tower (usually within the first
10–15 seconds), is when control is switched
over to the Mission Control Center
Continuous Operations – Mission Control
A mission control center (MCC, sometimes
called a flight control center or operations
center) is a facility that manages space flights,
usually from the point of launch until landing
or the end of the mission. It is part of
the ground segment of spacecraft operations.
A staff of flight controllers and other support
personnel monitor all aspects of the mission
using telemetry, and send commands to the
vehicle using ground stations
Mission Control
“Automated Operations”
Launch Control
“Continuous Deployment”
keptn accelerates building autonomous clouds
Event-driven runbook automation
Productionproblemscan beautomaticallyremediatedin
real-timebyexecutingrunbooksthatrequirenomanual
intervention.
Self-healing blue/green deployments
Deploymentsthatfollowthe“Operationsas Code”
paradigmautomaticallyremediateproblemsandget
yourdeploymentpipelineworkingagain inundera
minute.
Automated multistage unbreakable delivery
pipelines
GitOps-enableddeliverypipelineswithautomated
qualitygates supportautomatedtestingandmonitoring-
as-a-service.
Designed for modern applications
GitOps-based collaboration
AllkeptnworkflowsarebasedontheGitOps
paradigm.
Operator patterns for all logic
components
Logiccomponentscan bereusedforother
operationaltasks.
Monitoring and operations as code
Developer-friendlydefinitionofmonitoringand
operationaltasks.
Built on and for Kubernetes
Builtformoderncloud-nativeenvironments.
Event-driven and serverless
Powerfulwitha minimal
resourcefootprint.
Pluggable tooling
Alltoolsleveragedbykeptn
can bereplacedbased
onyourtoolpreferences.
Confidential 19
Keptn: Define Uniform (Tooling) & Shipyard (Pipelines)
shipyard.yaml
stages:
- name: "stage"
deployment_strategy: "direct"
test_strategy: "performance"
- name: "prod"
deployment_strategy: "blue_green"
Uniform.yaml
services:
- name: "dockerhub"
- name: "jenkins-service"
subscribedchannels:
- new-artifact
- deployment-finished
- name: "slack-service"
prodstage
Autonomous Cloud Control Plane
keptnistio
$ keptn wear uniform.yaml $ keptn create project sample shipyard.yaml
prodstage
Confidential 20
Keptn: Update Tooling and Pipeline
shipyard.yaml
stages:
- name: "stage"
deployment_strategy: "direct"
test_strategy: "performance"
- name: "security"
deployment_strategy: "blue_green"
test_strategy: "functional"
- name: "prod"
deployment_strategy: "blue_green"
Uniform.yaml
services:
- name: "dockerhub"
- name: "jenkins-service"
subscribedchannels:
- new-artifact
- deployment-finished
- name: "slack-service"
- name: "dynatrace-service"
subscribedchannels:
- configuration-changed
- deployment-finished
Autonomous Cloud Control Plane
$ keptn update uniform.yaml $ keptn update project sample shipyard.yaml
prodstagekeptnistio prodstagesecurity security
Confidential 21
keptn – Shipping through unbreakable continuous delivery pipelines
Autonomous Cloud Control Plane
prodstage
new artifact
sample:4.0
2: deploy (direct)
3: test (performance)
4: evaluate (scalability KPIs)
6: deploy (blue/green)
7: evaluate (business KPIs)
8: operate (NoOps)
5: conf-update
sample:4.0
1: conf-update
sample:4.0
problem
22Confidential
An inside look to Pitometer
23Confidential
Pitometer explained
Source: Dynatrace
Source: Prometheus
Source: Neoload
Source: ABC...
Grader: Threshold
Grader: T-System
Grader: Baseline
Grader: XYZ...
Metric Source &
Query
Grading Details
& Metric Score
Validation Specfile
Total Scoring
Objectives
2 Parse Specfile
3 Retrieve Values: Pass query for each Indicator to Source
4 Score Metric: Pass values for each Indicator to Grader
5 Compare overall metric score to Objective
1 Initialize Sources & Grader
Pitometer
24Confidential
Pitometer is a part of @keptnProject -
A metrics-based grading of a deployment
Metric Source &
Query
Grading Details
& Metric Score
Pitometer Specfile
Total Scoring
Objectives
2GB
Allocated Bytes (from Prometheus)
> 2GB: 0 Points
< 2GB: 20 Points
5%
2% < 2%: 0 Points
< 5%: 10 Points
> 5%: 20 Points
Conversion Rate (Dynatrace)
GraderSource
If value: 3GB
Score: 0
If value: 3.9%
Score: 10
Total Score: 10
25Confidential
Pitometer: Run standalone - https://github.com/keptn/pitometer
Init
Source
Source
Grader
Run
Result
26Confidential
Pitometer: Dynatrace Smartscape data source
Horizontal Dependencies
VerticalDependencies
toRelationships:runsOn
fromRelationships:calls toRelationships:calls
27Confidential
Pitometer: Dynatrace Smartscape data source example
Smartscape Example:
toRelationship:calls
Grading Example:
only 1 is allowed
28Confidential
Pitometer: Whats coming in July 2019
29Confidential
Storing (in Mongo), comparing across builds & visualization
Percentage to
previous build
Values
TestRunX
Calculated Thresholds
30Confidential
• https://keptn.sh
• Install and go throughuse cases
• Learnconcepts
Learnhow touse keptn
31Confidential
• https://github.com/keptn
• Watch it, star it, fork it
• Read and understand source code
• Extend, improve, fix
Moredetails?
32Confidential
• https://github.com/keptn-contrib
• Find examples andtemplates
• Be part of the keptn ecosystem
Write yourownkeptn service
33Confidential
• https://github.com/keptn/community
• @keptnproject
• keptn@dynatrace.com
• keptn.slack.com
• Biweekly communitymeetings
• Zoom https://dynatrace.zoom.us/j/578828410
• Notes https://tinyurl.com/keptn-meeting-notes
Jointhecommunity
@grabnerandi#DevoxxPL
Platinum Sponsor:
Shipping Code like a x
Automating your Delivery Pipelines so you can focus on
code
Andreas Grabner
Dynatrace

Weitere ähnliche Inhalte

Was ist angesagt?

DevOps Days Toronto: From 6 Months Waterfall to 1 hour Code Deploys
DevOps Days Toronto: From 6 Months Waterfall to 1 hour Code DeploysDevOps Days Toronto: From 6 Months Waterfall to 1 hour Code Deploys
DevOps Days Toronto: From 6 Months Waterfall to 1 hour Code Deploys
Andreas Grabner
 

Was ist angesagt? (20)

How to build your own auto-remediation workflow - Ansible Meetup Munich
How to build your own auto-remediation workflow - Ansible Meetup MunichHow to build your own auto-remediation workflow - Ansible Meetup Munich
How to build your own auto-remediation workflow - Ansible Meetup Munich
 
How to explain DevOps to your mom
How to explain DevOps to your momHow to explain DevOps to your mom
How to explain DevOps to your mom
 
AWS Summit - Trends in Advanced Monitoring for AWS environments
AWS Summit - Trends in Advanced Monitoring for AWS environmentsAWS Summit - Trends in Advanced Monitoring for AWS environments
AWS Summit - Trends in Advanced Monitoring for AWS environments
 
Keptn: Unbreakable Continuous Delivery - Berlin CI/CD Meetup
Keptn: Unbreakable Continuous Delivery - Berlin CI/CD MeetupKeptn: Unbreakable Continuous Delivery - Berlin CI/CD Meetup
Keptn: Unbreakable Continuous Delivery - Berlin CI/CD Meetup
 
DevOps Pipelines and Metrics Driven Feedback Loops
DevOps Pipelines and Metrics Driven Feedback LoopsDevOps Pipelines and Metrics Driven Feedback Loops
DevOps Pipelines and Metrics Driven Feedback Loops
 
4 Node.js Gotchas: What your ops team needs to know
4 Node.js Gotchas: What your ops team needs to know4 Node.js Gotchas: What your ops team needs to know
4 Node.js Gotchas: What your ops team needs to know
 
DevOps Days Toronto: From 6 Months Waterfall to 1 hour Code Deploys
DevOps Days Toronto: From 6 Months Waterfall to 1 hour Code DeploysDevOps Days Toronto: From 6 Months Waterfall to 1 hour Code Deploys
DevOps Days Toronto: From 6 Months Waterfall to 1 hour Code Deploys
 
Boston DevOps Days 2016: Implementing Metrics Driven DevOps - Why and How
Boston DevOps Days 2016: Implementing Metrics Driven DevOps - Why and HowBoston DevOps Days 2016: Implementing Metrics Driven DevOps - Why and How
Boston DevOps Days 2016: Implementing Metrics Driven DevOps - Why and How
 
Flux is incubating + the road ahead
Flux is incubating + the road aheadFlux is incubating + the road ahead
Flux is incubating + the road ahead
 
AI-Powered DevOps: Injecting Speed & Quality Across Verizon’s Cloud Pipelines
AI-Powered DevOps: Injecting Speed & Quality Across Verizon’s Cloud PipelinesAI-Powered DevOps: Injecting Speed & Quality Across Verizon’s Cloud Pipelines
AI-Powered DevOps: Injecting Speed & Quality Across Verizon’s Cloud Pipelines
 
DevOps for AI Apps
DevOps for AI AppsDevOps for AI Apps
DevOps for AI Apps
 
Metrics Driven DevOps - Automate Scalability and Performance Into your Pipeline
Metrics Driven DevOps - Automate Scalability and Performance Into your PipelineMetrics Driven DevOps - Automate Scalability and Performance Into your Pipeline
Metrics Driven DevOps - Automate Scalability and Performance Into your Pipeline
 
Shift-left SRE: Self-healing on OpenShift with Ansible
Shift-left SRE: Self-healing on OpenShift with AnsibleShift-left SRE: Self-healing on OpenShift with Ansible
Shift-left SRE: Self-healing on OpenShift with Ansible
 
Web and App Performance: Top Problems to avoid to keep you out of the News
Web and App Performance: Top Problems to avoid to keep you out of the NewsWeb and App Performance: Top Problems to avoid to keep you out of the News
Web and App Performance: Top Problems to avoid to keep you out of the News
 
A framework for self-healing applications – the path to enable auto-remediation
A framework for self-healing applications – the path to enable auto-remediationA framework for self-healing applications – the path to enable auto-remediation
A framework for self-healing applications – the path to enable auto-remediation
 
Top Java Performance Problems and Metrics To Check in Your Pipeline
Top Java Performance Problems and Metrics To Check in Your PipelineTop Java Performance Problems and Metrics To Check in Your Pipeline
Top Java Performance Problems and Metrics To Check in Your Pipeline
 
Java Performance Mistakes
Java Performance MistakesJava Performance Mistakes
Java Performance Mistakes
 
OOP 2016 - Building Software That Eats The World
OOP 2016 - Building Software That Eats The WorldOOP 2016 - Building Software That Eats The World
OOP 2016 - Building Software That Eats The World
 
Modern Operations at Scale within Viasat – How to Structure Teams and Build A...
Modern Operations at Scale within Viasat – How to Structure Teams and Build A...Modern Operations at Scale within Viasat – How to Structure Teams and Build A...
Modern Operations at Scale within Viasat – How to Structure Teams and Build A...
 
Top .NET, Java & Web Performance Mistakes - Meetup Jan 2015
Top .NET, Java & Web Performance Mistakes - Meetup Jan 2015Top .NET, Java & Web Performance Mistakes - Meetup Jan 2015
Top .NET, Java & Web Performance Mistakes - Meetup Jan 2015
 

Ähnlich wie Shipping Code like a keptn: Continuous Delivery & Automated Operations on k8s

Cerberus_Presentation1
Cerberus_Presentation1Cerberus_Presentation1
Cerberus_Presentation1
CIVEL Benoit
 
Continuous Integration using Cruise Control
Continuous Integration using Cruise ControlContinuous Integration using Cruise Control
Continuous Integration using Cruise Control
elliando dias
 
Overcoming (organizational) scalability issues in your Prometheus ecosystem
Overcoming (organizational) scalability issues in your Prometheus ecosystemOvercoming (organizational) scalability issues in your Prometheus ecosystem
Overcoming (organizational) scalability issues in your Prometheus ecosystem
QAware GmbH
 

Ähnlich wie Shipping Code like a keptn: Continuous Delivery & Automated Operations on k8s (20)

Chicago DevOps Meetup Nov2019
Chicago DevOps Meetup Nov2019Chicago DevOps Meetup Nov2019
Chicago DevOps Meetup Nov2019
 
Building Autonomous Operations for Kubernetes with keptn
Building Autonomous Operations for Kubernetes with keptnBuilding Autonomous Operations for Kubernetes with keptn
Building Autonomous Operations for Kubernetes with keptn
 
Don't Deploy Into the Dark: DORA Metrics for your K8s GitOps Deployments
Don't Deploy Into the Dark: DORA Metrics for your K8s GitOps DeploymentsDon't Deploy Into the Dark: DORA Metrics for your K8s GitOps Deployments
Don't Deploy Into the Dark: DORA Metrics for your K8s GitOps Deployments
 
Cerberus : Framework for Manual and Automated Testing (Web Application)
Cerberus : Framework for Manual and Automated Testing (Web Application)Cerberus : Framework for Manual and Automated Testing (Web Application)
Cerberus : Framework for Manual and Automated Testing (Web Application)
 
Cerberus_Presentation1
Cerberus_Presentation1Cerberus_Presentation1
Cerberus_Presentation1
 
Regain Control Thanks To Prometheus
Regain Control Thanks To PrometheusRegain Control Thanks To Prometheus
Regain Control Thanks To Prometheus
 
Observability and Orchestration of your GitOps Deployments with Keptn
Observability and Orchestration of your GitOps Deployments with KeptnObservability and Orchestration of your GitOps Deployments with Keptn
Observability and Orchestration of your GitOps Deployments with Keptn
 
Continuous Integration using Cruise Control
Continuous Integration using Cruise ControlContinuous Integration using Cruise Control
Continuous Integration using Cruise Control
 
Overcoming (organizational) scalability issues in your Prometheus ecosystem
Overcoming (organizational) scalability issues in your Prometheus ecosystemOvercoming (organizational) scalability issues in your Prometheus ecosystem
Overcoming (organizational) scalability issues in your Prometheus ecosystem
 
Software testing: an introduction - 2017
Software testing: an introduction - 2017Software testing: an introduction - 2017
Software testing: an introduction - 2017
 
Automating the Quality
Automating the QualityAutomating the Quality
Automating the Quality
 
GlobalLogic Test Automation Online TechTalk “Test Driven Development as a Per...
GlobalLogic Test Automation Online TechTalk “Test Driven Development as a Per...GlobalLogic Test Automation Online TechTalk “Test Driven Development as a Per...
GlobalLogic Test Automation Online TechTalk “Test Driven Development as a Per...
 
Andreas Grabner - Performance as Code, Let's Make It a Standard
Andreas Grabner - Performance as Code, Let's Make It a StandardAndreas Grabner - Performance as Code, Let's Make It a Standard
Andreas Grabner - Performance as Code, Let's Make It a Standard
 
Value stream mapping for DevOps
Value stream mapping for DevOpsValue stream mapping for DevOps
Value stream mapping for DevOps
 
About Qtp 92
About Qtp 92About Qtp 92
About Qtp 92
 
About QTP 9.2
About QTP 9.2About QTP 9.2
About QTP 9.2
 
About Qtp_1 92
About Qtp_1 92About Qtp_1 92
About Qtp_1 92
 
Auto sre with keptn
Auto sre with keptnAuto sre with keptn
Auto sre with keptn
 
Overcoming scalability issues in your prometheus ecosystem
Overcoming scalability issues in your prometheus ecosystemOvercoming scalability issues in your prometheus ecosystem
Overcoming scalability issues in your prometheus ecosystem
 
Nagios Conference 2011 - Nathan Vonnahme - Integrating Nagios With Test Drive...
Nagios Conference 2011 - Nathan Vonnahme - Integrating Nagios With Test Drive...Nagios Conference 2011 - Nathan Vonnahme - Integrating Nagios With Test Drive...
Nagios Conference 2011 - Nathan Vonnahme - Integrating Nagios With Test Drive...
 

Mehr von Andreas Grabner

Mehr von Andreas Grabner (12)

KCD Munich - Cloud Native Platform Dilemma - Turning it into an Opportunity
KCD Munich - Cloud Native Platform Dilemma - Turning it into an OpportunityKCD Munich - Cloud Native Platform Dilemma - Turning it into an Opportunity
KCD Munich - Cloud Native Platform Dilemma - Turning it into an Opportunity
 
OpenTelemetry For GitOps: Tracing Deployments from Git Commit to Production
OpenTelemetry For GitOps: Tracing Deployments from Git Commit to ProductionOpenTelemetry For GitOps: Tracing Deployments from Git Commit to Production
OpenTelemetry For GitOps: Tracing Deployments from Git Commit to Production
 
Adding Security to your SLO-based Release Validation with Keptn
Adding Security to your SLO-based Release Validation with KeptnAdding Security to your SLO-based Release Validation with Keptn
Adding Security to your SLO-based Release Validation with Keptn
 
DevOps Transformation at Dynatrace and with Dynatrace
DevOps Transformation at Dynatrace and with DynatraceDevOps Transformation at Dynatrace and with Dynatrace
DevOps Transformation at Dynatrace and with Dynatrace
 
Four Practices to Fix Your Top .NET Performance Problems
Four Practices to Fix Your Top .NET Performance ProblemsFour Practices to Fix Your Top .NET Performance Problems
Four Practices to Fix Your Top .NET Performance Problems
 
Docker/DevOps Meetup: Metrics-Driven Continuous Performance and Scalabilty
Docker/DevOps Meetup: Metrics-Driven Continuous Performance and ScalabiltyDocker/DevOps Meetup: Metrics-Driven Continuous Performance and Scalabilty
Docker/DevOps Meetup: Metrics-Driven Continuous Performance and Scalabilty
 
JavaOne 2015: Top Performance Patterns Deep Dive
JavaOne 2015: Top Performance Patterns Deep DiveJavaOne 2015: Top Performance Patterns Deep Dive
JavaOne 2015: Top Performance Patterns Deep Dive
 
Application Quality Gates in Continuous Delivery: Deliver Better Software Fas...
Application Quality Gates in Continuous Delivery: Deliver Better Software Fas...Application Quality Gates in Continuous Delivery: Deliver Better Software Fas...
Application Quality Gates in Continuous Delivery: Deliver Better Software Fas...
 
Deploy Faster Without Failing Faster - Metrics-Driven - Dynatrace User Groups...
Deploy Faster Without Failing Faster - Metrics-Driven - Dynatrace User Groups...Deploy Faster Without Failing Faster - Metrics-Driven - Dynatrace User Groups...
Deploy Faster Without Failing Faster - Metrics-Driven - Dynatrace User Groups...
 
BTD2015 - Your Place In DevTOps is Finding Solutions - Not Just Bugs!
BTD2015 - Your Place In DevTOps is Finding Solutions - Not Just Bugs!BTD2015 - Your Place In DevTOps is Finding Solutions - Not Just Bugs!
BTD2015 - Your Place In DevTOps is Finding Solutions - Not Just Bugs!
 
Mobile User Experience: Auto Drive through Performance Metrics
Mobile User Experience:Auto Drive through Performance MetricsMobile User Experience:Auto Drive through Performance Metrics
Mobile User Experience: Auto Drive through Performance Metrics
 
HSPS 2015 - SharePoint Performance Santiy Checks
HSPS 2015 - SharePoint Performance Santiy ChecksHSPS 2015 - SharePoint Performance Santiy Checks
HSPS 2015 - SharePoint Performance Santiy Checks
 

Kürzlich hochgeladen

%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
masabamasaba
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
masabamasaba
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
mohitmore19
 

Kürzlich hochgeladen (20)

10 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 202410 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 2024
 
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
Chinsurah Escorts ☎️8617697112 Starting From 5K to 15K High Profile Escorts ...
Chinsurah Escorts ☎️8617697112  Starting From 5K to 15K High Profile Escorts ...Chinsurah Escorts ☎️8617697112  Starting From 5K to 15K High Profile Escorts ...
Chinsurah Escorts ☎️8617697112 Starting From 5K to 15K High Profile Escorts ...
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
 
Architecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastArchitecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the past
 
Generic or specific? Making sensible software design decisions
Generic or specific? Making sensible software design decisionsGeneric or specific? Making sensible software design decisions
Generic or specific? Making sensible software design decisions
 
The Top App Development Trends Shaping the Industry in 2024-25 .pdf
The Top App Development Trends Shaping the Industry in 2024-25 .pdfThe Top App Development Trends Shaping the Industry in 2024-25 .pdf
The Top App Development Trends Shaping the Industry in 2024-25 .pdf
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
 
SHRMPro HRMS Software Solutions Presentation
SHRMPro HRMS Software Solutions PresentationSHRMPro HRMS Software Solutions Presentation
SHRMPro HRMS Software Solutions Presentation
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdfPayment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
 
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
 
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) SolutionIntroducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
 
%in Harare+277-882-255-28 abortion pills for sale in Harare
%in Harare+277-882-255-28 abortion pills for sale in Harare%in Harare+277-882-255-28 abortion pills for sale in Harare
%in Harare+277-882-255-28 abortion pills for sale in Harare
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand
 
Define the academic and professional writing..pdf
Define the academic and professional writing..pdfDefine the academic and professional writing..pdf
Define the academic and professional writing..pdf
 

Shipping Code like a keptn: Continuous Delivery & Automated Operations on k8s

  • 1. @grabnerandi#DevoxxPL Platinum Sponsor: Shipping Code like a x Automating your Delivery Pipelines so you can focus on code Andreas Grabner Dynatrace www.keptn.sh @keptnProject github.com/keptn
  • 2. Confidential 2 PROD (1) WhatIhave,I want& Idon‘twantinmodern softwaredelivery & operations • I have artifacts built throughmyCIpushed to • I have tests that validate functionality& performance • Ihave a list of quality, scalability &performancecritera • Iwant to automate deploy, test, validate & promote • Iwant to automateoperational tasks e.g: rollback, ... • Idon‘t want to build & maintain deployment pipelines, tool-integrations or auto-remediation scripts • Idon‘t want to create or modify kubernetes, Istio or Helm charts v1.0 v2.0 v3.0 STAGE (4) STAGE (1)STAGE (2) PROD (2) PROD (4) v4.0 PROD (3)
  • 3. Confidential 3 https://keptn.sh/docs/0.x.x/installation/ 1. GKE Cluster 2. Signedup for DynatraceFreeTrial &Installed DynatraceOneAgent k8sOperator
  • 4. Confidential 4 https://keptn.sh/docs/0.x.x/installation/ 1. GitHub Org &keptn CLI from https://github.com/keptn/keptn/releases/tag/0.x.x 2. Install keptn with default uniform (GitHub, Helm, Jmeter,Pitometer, Gatekeeper, Slack, Dynatrace,Jenkins...) 3. Connectkeptn to my GitHub Org (Support for GitLabs, Bitbucket... Arefollowing) 4. Createproject &onboard a service based on https://keptn.sh/docs/0.x.x/usecases/onboard-carts-service/ $ keptn install $ keptn create project keptn-sample shipyard.yaml $ keptn onboard service simplenodeservice [values.yaml deployment.yaml ...] $ keptn configure --org=agrabner-keptn-sample --user=ghuser --token=ghtoken
  • 5. Confidential 5 v1.0 90/100 $ keptn new artifact sampleservice:1.0
  • 6. Confidential 6 v1.0 v2.0 v3.0 v4.0 10/10095/100100/100 $ keptn new artifact sampleservice:1.0$ keptn new artifact sampleservice:2.0$ keptn new artifact sampleservice:3.0$ keptn new artifact sampleservice:4.0
  • 7. Confidential 8 Why did we build ? Because cloud native delivery and operations is a BIG challenge! Cloud Native
  • 8. Confidential 9 Commit Cycle Time = Speed to Market MTTR Mean Time to Remediate 4.8 days 4 hours ~ 10min 12.5 days 2 days ~ 1 hour The reality and evidence supports it! https://dynatrace.ai/acsurvey Only < 5% is „Cloud Native“
  • 9. Confidential 10 Quote: “Pipelines seem to be becoming our new future un-managable legacy code!“ First: solves the Continuous Delivery Problem!
  • 10. Second: Continuous Delivery is NOT ENOUGH!
  • 11. Continuous Delivery – Launch control Launch operations are supervised and controlled from several control rooms (also known as a firing room). The controllers are in control of pre-launch checks, the booster and spacecraft. Once the rocket has cleared the launch tower (usually within the first 10–15 seconds), is when control is switched over to the Mission Control Center
  • 12. Continuous Operations – Mission Control A mission control center (MCC, sometimes called a flight control center or operations center) is a facility that manages space flights, usually from the point of launch until landing or the end of the mission. It is part of the ground segment of spacecraft operations. A staff of flight controllers and other support personnel monitor all aspects of the mission using telemetry, and send commands to the vehicle using ground stations
  • 13. Mission Control “Automated Operations” Launch Control “Continuous Deployment” keptn accelerates building autonomous clouds Event-driven runbook automation Productionproblemscan beautomaticallyremediatedin real-timebyexecutingrunbooksthatrequirenomanual intervention. Self-healing blue/green deployments Deploymentsthatfollowthe“Operationsas Code” paradigmautomaticallyremediateproblemsandget yourdeploymentpipelineworkingagain inundera minute. Automated multistage unbreakable delivery pipelines GitOps-enableddeliverypipelineswithautomated qualitygates supportautomatedtestingandmonitoring- as-a-service.
  • 14. Designed for modern applications GitOps-based collaboration AllkeptnworkflowsarebasedontheGitOps paradigm. Operator patterns for all logic components Logiccomponentscan bereusedforother operationaltasks. Monitoring and operations as code Developer-friendlydefinitionofmonitoringand operationaltasks. Built on and for Kubernetes Builtformoderncloud-nativeenvironments. Event-driven and serverless Powerfulwitha minimal resourcefootprint. Pluggable tooling Alltoolsleveragedbykeptn can bereplacedbased onyourtoolpreferences.
  • 15. Confidential 19 Keptn: Define Uniform (Tooling) & Shipyard (Pipelines) shipyard.yaml stages: - name: "stage" deployment_strategy: "direct" test_strategy: "performance" - name: "prod" deployment_strategy: "blue_green" Uniform.yaml services: - name: "dockerhub" - name: "jenkins-service" subscribedchannels: - new-artifact - deployment-finished - name: "slack-service" prodstage Autonomous Cloud Control Plane keptnistio $ keptn wear uniform.yaml $ keptn create project sample shipyard.yaml prodstage
  • 16. Confidential 20 Keptn: Update Tooling and Pipeline shipyard.yaml stages: - name: "stage" deployment_strategy: "direct" test_strategy: "performance" - name: "security" deployment_strategy: "blue_green" test_strategy: "functional" - name: "prod" deployment_strategy: "blue_green" Uniform.yaml services: - name: "dockerhub" - name: "jenkins-service" subscribedchannels: - new-artifact - deployment-finished - name: "slack-service" - name: "dynatrace-service" subscribedchannels: - configuration-changed - deployment-finished Autonomous Cloud Control Plane $ keptn update uniform.yaml $ keptn update project sample shipyard.yaml prodstagekeptnistio prodstagesecurity security
  • 17. Confidential 21 keptn – Shipping through unbreakable continuous delivery pipelines Autonomous Cloud Control Plane prodstage new artifact sample:4.0 2: deploy (direct) 3: test (performance) 4: evaluate (scalability KPIs) 6: deploy (blue/green) 7: evaluate (business KPIs) 8: operate (NoOps) 5: conf-update sample:4.0 1: conf-update sample:4.0 problem
  • 19. 23Confidential Pitometer explained Source: Dynatrace Source: Prometheus Source: Neoload Source: ABC... Grader: Threshold Grader: T-System Grader: Baseline Grader: XYZ... Metric Source & Query Grading Details & Metric Score Validation Specfile Total Scoring Objectives 2 Parse Specfile 3 Retrieve Values: Pass query for each Indicator to Source 4 Score Metric: Pass values for each Indicator to Grader 5 Compare overall metric score to Objective 1 Initialize Sources & Grader Pitometer
  • 20. 24Confidential Pitometer is a part of @keptnProject - A metrics-based grading of a deployment Metric Source & Query Grading Details & Metric Score Pitometer Specfile Total Scoring Objectives 2GB Allocated Bytes (from Prometheus) > 2GB: 0 Points < 2GB: 20 Points 5% 2% < 2%: 0 Points < 5%: 10 Points > 5%: 20 Points Conversion Rate (Dynatrace) GraderSource If value: 3GB Score: 0 If value: 3.9% Score: 10 Total Score: 10
  • 21. 25Confidential Pitometer: Run standalone - https://github.com/keptn/pitometer Init Source Source Grader Run Result
  • 22. 26Confidential Pitometer: Dynatrace Smartscape data source Horizontal Dependencies VerticalDependencies toRelationships:runsOn fromRelationships:calls toRelationships:calls
  • 23. 27Confidential Pitometer: Dynatrace Smartscape data source example Smartscape Example: toRelationship:calls Grading Example: only 1 is allowed
  • 25. 29Confidential Storing (in Mongo), comparing across builds & visualization Percentage to previous build Values TestRunX Calculated Thresholds
  • 26. 30Confidential • https://keptn.sh • Install and go throughuse cases • Learnconcepts Learnhow touse keptn
  • 27. 31Confidential • https://github.com/keptn • Watch it, star it, fork it • Read and understand source code • Extend, improve, fix Moredetails?
  • 28. 32Confidential • https://github.com/keptn-contrib • Find examples andtemplates • Be part of the keptn ecosystem Write yourownkeptn service
  • 29. 33Confidential • https://github.com/keptn/community • @keptnproject • keptn@dynatrace.com • keptn.slack.com • Biweekly communitymeetings • Zoom https://dynatrace.zoom.us/j/578828410 • Notes https://tinyurl.com/keptn-meeting-notes Jointhecommunity
  • 30. @grabnerandi#DevoxxPL Platinum Sponsor: Shipping Code like a x Automating your Delivery Pipelines so you can focus on code Andreas Grabner Dynatrace

Hinweis der Redaktion

  1. Numbers based on our survey – https://dynatrace.ai/acsurvey
  2. Many teams we spoken with build their own Deployment Pipelines: Combination of OpenSource & Commercial Tools for Deployment Automation! Testing Pipelines: Combination of OpenSource & Commerical Tools for Test Execution Quality Gates: Most often done manual. Some are investing in automated validation! Auto Remediation: Mostly done manual with a trend towards simply remediation actions