SlideShare una empresa de Scribd logo
1 de 35
V0000000
OpenInfra Days @ Vietnam 2022
27-Aug-2022
A Practical Approach to Traditional
and Cloud Native Infrastructure
Management using GitOps
Anthony Lin
anthony.lin@redhat.com
Hybrid Cloud Specialist,
Red Hat ASEAN
1
AGENDA
OpenInfra Days @ Vietnam 2022
▪ What is GitOps?
▪ IaC Automation and GitOps
▪ GitOps and Kubernetes Multi-Cluster Management
▪ Q&A
What is GitOps?
3
OpenInfra
Days
@
Vietnam
2022
GitOps
● Prescriptive style of Infrastructure as Code
○ For deploying and managing large, sophisticated, distributed and cloud-native
systems
○ Uses Git as the single source of truth for declarative infrastructure and
applications
■ Defined state of infrastructure is Git version controlled, complete with a
useful audit log of all activity
● Brings together developments and operations with development process and
tooling
○ Provides a consistent means of working across the organization
○ Helps to increase productivity and velocity of deployments and development
GitOps considers that Git repository is our only source of truth. Manual
operations are prohibited and changes are introduced through git to
perform deployments adopting “Continuous Deployment”.
Contributor’s
Pull Request
Content
Review
Release
for
Consumption
Generate
Artifacts
Test
Content
IaC Automation and
GitOps
6
OpenInfra
Days
@
Vietnam
2022
7
#1 Fill the form Request For Change.
#2 Fill the form again after talking with senior colleague.
#3 Now you can fill the webform and link CIs from CMDB.
#4 Your Configuration Item (CI) is not in the CMDB.
#5 Use your own team's CMDB (A.K.A Excel).
#6 Sleep(1 week) and waitfor(Change Advisory Board).
#7 Explain why you really, really need to do your job.
#8 Someone's else execute and get syntax error.
#9 Goto #2
The Joy of Request For Changes
8
Infrastructure As Code
"Infrastructure As Code is the capability to rebuild the entire infrastructure only with
system’s data and code from your version control systems "
Data Code
IaC Practices
Data Code
Automated tests
Security and compliance
Automating execution from a
shared environment
Source Control
Modularizing and
versioning
Documentation
Describing Machines using YAML
Benefits of CI/CD
● Velocity
○ Automation = Speed
○ Accelerate time to value
● Productivity
○ Automation of Repetitive Tasks
○ Experimentation = Innovation
● Sustainability
○ Quality
○ Reproducibility
○ Stability
○ Processes
Public Cloud Experience
Infrastructure
● CI/CD
● Fully Tested
● Fully Automated
● Infra as Code (IaC)
Applications
W W W
DB
“Classic” On-Premise Infrastructure
Infrastructure
● Manually Deployed
and/or Operated
● Error-Prone Changes
● Fragile
● Low Reproducibility
● Low Confidence
Applications
W W W
DB
On-Premise Infrastructure with CI/CD
Infrastructure
● CI/CD
● Fully Tested
● Fully Automated
● Infra as Code (IaC)
Applications
W W W
DB
What is Need to Enable CI/CD in an
Infrastructure Project?
● Infrastructure as Code
● Test Environments
● Time and Effort
Applying Software Best Practices to Hardware
Physical
Infrastructure as
Code
● Speed+
● Cost-
● Risk-
● Velocity
● Productivity
● Sustainability
Physical
CI/CD
Infrastructure as code is
the foundation required to
automate deployments
and scaling in the physical
world.
What CI/CD Looks like in Practice
Step1 Step 2 Step3 Step5
Step4
Pipeline
RUN
Q. How do we know the operation will be
successful?
A. Because we test it first (that is the CI part)
What CI/CD Looks like in Practice
Step 1 Step 2 Step 4
Step 3
A pipeline consisting of all the
automated steps needed to
achieve the required operation:
● New deployment
● Upgrade
● Scale-up/Scale-down
● Config change
● and others ...
For proper CI/CD, some of these
steps are tests that are usually
executed in a virtual environment
Prepare the
Virtual
Environment
Actual Operation:
- Deployment
- Upgrade
- Config Change
- and others ...
Test the
result of this
operation
Repeat the
operation in a
production
environment
CD
CI
deploy test
environment
start impact
monitoring
upgrade
process
impact
analysis
Iteration 1
deploy test
environment
start impact
monitoring
upgrade
process
impact
analysis
Iteration 2
deploy test
environment
start impact
monitoring
upgrade
process
impact
analysis
Iteration 13
deploy test
environment
start impact
monitoring
upgrade
process
impact
analysis
Production
deployment
Iteration 14
Process did not complete because
of error in upgrade process
orchestration
Impacted test application
because of BZ #xxxxxx. hotfix
provided by Red Hat.
No impact detected!
Site 1
Site 2
Site 3
Multiple production clusters
upgraded with:
● Very high confidence
● One-click operation
● Engineers already working
on something else
...
...
...
...
...
Cloud Upgrade Example
GitOps + IaC in Action
Check-Out
Content
1
Trigger CI
Check-In
Changes
Approve
Changes
3
6
7 Trigger CD
Peer
Reviewer(s)
Engineers
Test
4
8 Deploy
2
Notify
5
Notify
9
Dev Workspace
0
Golden Image GitOps Pipeline with Ansible Automation Platform
Code
Version
Control
Build
Code Editor
Source Code
Management
Artifact /
Image
Creation
Leads to much faster reaction time to new CVEs and security
vulnerabilities as new images can be built quickly with pipeline!
Package New Base OS Server Image
● Pipeline allows easy
rebuild of Base OS
Image
● Rebuilt image is
properly hardened
and updated with
the latest security
patches
● Provides hardened
Base OS Image for
Developers to carry
out application
testing
● Pipeline can be
easily extended to
include application
installation and
other custom
requirements
Golden Image GitOps Pipeline with Ansible Automation Platform
Golden Image GitOps Pipeline
GitOps and Kubernetes
Multi-Cluster
Management
24
OpenInfra
Days
@
Vietnam
2022
25
Cloud-native Approaches
● Declarative infrastructure definitions
● Separation of Software / Data / Configuration
● Automate everything
● Rebuild vs Repair
● Scalability. Scale Out not Up.
● Oriented to:
○ Containers / Kubernetes
○ Microservices architectures
○ 12 factor apps
○ DevSecOps / Agility
○ Portability -> Multi/Hybrid cloud
▸ Disparate clusters built by
individual teams within the
organization.
▸ Significant effort spent to meet
security, governance and
compliance requirements of the
organization.
▸ Ensuring the platform is
operationally ready within days
and not weeks-to-months to
onboard developer teams.
Challenges
▸ Provide containers-as-a-service
capability within the organization
through self-service
consumption
▸ Automate standard container
platform build within the
organization
▸ Enforce policies and
configuration on the container
platform in a consistent manner
▸ Using git as the source of truth
Solution
26
Adopting Kubernetes Enterprise Wide
Run
▸ Observability: Central monitoring and logging
▸ DevOps tooling. Automated builds. CI/CD, IDE, Container registry
▸ Unified storage abstraction
Manage
▸ Multi cluster management
▸ GitOps. Application lifecycle management.
▸ Project team and application onboarding
Governance, Compliance and Security
▸ Policy-based governance, risk, and compliance
▸ Shift Left. Container security.
▸ Zero trust security
▸ Trusted supply chain
▸ Approved tech stack. Language runtime, databases, RHEL UBI images.
Automate Everything
▸ IaC
▸ Configuration Management
▸ Workflow orchestration
▸ Network and security automation
Supporting Application Modernization
Application
modernization
Run
Automate
Manage
27
Governance,
compliance and
security
Consistency is key across the organization
Physical
Virtua
l
Private
cloud
Public
cloud
Edge
Sync
Monitor
Detect
drift
Take
action
Argo CD
● Cluster and application configuration versioned in Git
● Automatically syncs configuration from Git to clusters
● Drift detection, visualization and correction
● Granular control over sync order for complex rollouts
● Rollback and rollforward to any Git commit
● Manifest templating support (Helm, Kustomize, etc)
● Visual insight into sync status and history
28
OpenShift
(on-premises)
Pull Request
merged
OpenShift
(public cloud)
Kubernetes
webhook
poll
sync
hooks
Argo CD
29
30
Open Source Community & Ecosystem
Open Policy Agent
Hive
metal3
31
Multi-Cluster Management
Multicluster lifecycle
management
Policy driven governance,
risk, and compliance
Advanced application
lifecycle management
Multicluster observability
for health and optimization
Multicluster networking for
interconnecting
OpenShift Clusters
Architecture
OpenShift Management Cluster
Platform Team
Developers’ namespaces
Developers’ network policies
Governance & Policies
Observability
Container Security Container Registry
Automation SIEM Red Hat SSO
Platform Team
Ansible Playbooks
Platform Team
Governance policies
Configuration policies
Compliance policies
32
Central
Management
Managed
Clusters
OpenShift as a Service Demo - An Opinionated Approach
V0000000
34
Any
questions?
linkedin.com/company/red-hat
youtube.com/user/RedHatVideo
s
facebook.com/redhatinc
twitter.com/RedHat
Red Hat is the world’s leading provider of
enterprise open source software solutions.
Award-winning support, training, and consulting
services make
Red Hat a trusted adviser to the Fortune 500.
Thank you
35

Más contenido relacionado

La actualidad más candente

La actualidad más candente (20)

Room 1 - 6 - Trần Quốc Sang - Autoscaling for multi cloud platform based on S...
Room 1 - 6 - Trần Quốc Sang - Autoscaling for multi cloud platform based on S...Room 1 - 6 - Trần Quốc Sang - Autoscaling for multi cloud platform based on S...
Room 1 - 6 - Trần Quốc Sang - Autoscaling for multi cloud platform based on S...
 
Room 1 - 4 - Phạm Tường Chiến & Trần Văn Thắng - Deliver managed Kubernetes C...
Room 1 - 4 - Phạm Tường Chiến & Trần Văn Thắng - Deliver managed Kubernetes C...Room 1 - 4 - Phạm Tường Chiến & Trần Văn Thắng - Deliver managed Kubernetes C...
Room 1 - 4 - Phạm Tường Chiến & Trần Văn Thắng - Deliver managed Kubernetes C...
 
Room 1 - 3 - Lê Anh Tuấn - Build a High Performance Identification at GHTK wi...
Room 1 - 3 - Lê Anh Tuấn - Build a High Performance Identification at GHTK wi...Room 1 - 3 - Lê Anh Tuấn - Build a High Performance Identification at GHTK wi...
Room 1 - 3 - Lê Anh Tuấn - Build a High Performance Identification at GHTK wi...
 
Kubernetes Architecture | Understanding Kubernetes Components | Kubernetes Tu...
Kubernetes Architecture | Understanding Kubernetes Components | Kubernetes Tu...Kubernetes Architecture | Understanding Kubernetes Components | Kubernetes Tu...
Kubernetes Architecture | Understanding Kubernetes Components | Kubernetes Tu...
 
Room 2 - 3 - Nguyễn Hoài Nam & Nguyễn Việt Hùng - Terraform & Pulumi Comparin...
Room 2 - 3 - Nguyễn Hoài Nam & Nguyễn Việt Hùng - Terraform & Pulumi Comparin...Room 2 - 3 - Nguyễn Hoài Nam & Nguyễn Việt Hùng - Terraform & Pulumi Comparin...
Room 2 - 3 - Nguyễn Hoài Nam & Nguyễn Việt Hùng - Terraform & Pulumi Comparin...
 
Service Discovery In Kubernetes
Service Discovery In KubernetesService Discovery In Kubernetes
Service Discovery In Kubernetes
 
Kubernetes Networking
Kubernetes NetworkingKubernetes Networking
Kubernetes Networking
 
Kubernetes for Beginners: An Introductory Guide
Kubernetes for Beginners: An Introductory GuideKubernetes for Beginners: An Introductory Guide
Kubernetes for Beginners: An Introductory Guide
 
OpenShift 4 installation
OpenShift 4 installationOpenShift 4 installation
OpenShift 4 installation
 
Writing the Container Network Interface(CNI) plugin in golang
Writing the Container Network Interface(CNI) plugin in golangWriting the Container Network Interface(CNI) plugin in golang
Writing the Container Network Interface(CNI) plugin in golang
 
Build CICD Pipeline for Container Presentation Slides
Build CICD Pipeline for Container Presentation SlidesBuild CICD Pipeline for Container Presentation Slides
Build CICD Pipeline for Container Presentation Slides
 
Kubernetes - introduction
Kubernetes - introductionKubernetes - introduction
Kubernetes - introduction
 
Introduction to Kubernetes and Google Container Engine (GKE)
Introduction to Kubernetes and Google Container Engine (GKE)Introduction to Kubernetes and Google Container Engine (GKE)
Introduction to Kubernetes and Google Container Engine (GKE)
 
Room 3 - 6 - Nguyễn Văn Thắng & Dzung Nguyen - Ứng dụng openzfs làm lưu trữ t...
Room 3 - 6 - Nguyễn Văn Thắng & Dzung Nguyen - Ứng dụng openzfs làm lưu trữ t...Room 3 - 6 - Nguyễn Văn Thắng & Dzung Nguyen - Ứng dụng openzfs làm lưu trữ t...
Room 3 - 6 - Nguyễn Văn Thắng & Dzung Nguyen - Ứng dụng openzfs làm lưu trữ t...
 
Intro to Helm for Kubernetes
Intro to Helm for KubernetesIntro to Helm for Kubernetes
Intro to Helm for Kubernetes
 
Docker Container Security
Docker Container SecurityDocker Container Security
Docker Container Security
 
Gitops Hands On
Gitops Hands OnGitops Hands On
Gitops Hands On
 
An Introduction to Kubernetes
An Introduction to KubernetesAn Introduction to Kubernetes
An Introduction to Kubernetes
 
Kubernetes dealing with storage and persistence
Kubernetes  dealing with storage and persistenceKubernetes  dealing with storage and persistence
Kubernetes dealing with storage and persistence
 
Continuous Lifecycle London 2018 Event Keynote
Continuous Lifecycle London 2018 Event KeynoteContinuous Lifecycle London 2018 Event Keynote
Continuous Lifecycle London 2018 Event Keynote
 

Similar a Room 2 - 4 - Juncheng Anthony Lin - Redhat - A Practical Approach to Traditional and Cloud Native Infrastructure Management using GitOps

Understanding the GitOps Workflow and CICD Pipeline - What It Is, Why It Matt...
Understanding the GitOps Workflow and CICD Pipeline - What It Is, Why It Matt...Understanding the GitOps Workflow and CICD Pipeline - What It Is, Why It Matt...
Understanding the GitOps Workflow and CICD Pipeline - What It Is, Why It Matt...
Gibran Badrulzaman
 
gitopsthekubernetesway-201026090439.pdf
gitopsthekubernetesway-201026090439.pdfgitopsthekubernetesway-201026090439.pdf
gitopsthekubernetesway-201026090439.pdf
saraichiba2
 

Similar a Room 2 - 4 - Juncheng Anthony Lin - Redhat - A Practical Approach to Traditional and Cloud Native Infrastructure Management using GitOps (20)

GitOps, Driving NGN Operations Teams 211127 #kcdgt 2021
GitOps, Driving NGN Operations Teams 211127 #kcdgt 2021GitOps, Driving NGN Operations Teams 211127 #kcdgt 2021
GitOps, Driving NGN Operations Teams 211127 #kcdgt 2021
 
Free GitOps Workshop (with Intro to Kubernetes & GitOps)
Free GitOps Workshop (with Intro to Kubernetes & GitOps)Free GitOps Workshop (with Intro to Kubernetes & GitOps)
Free GitOps Workshop (with Intro to Kubernetes & GitOps)
 
Securing Your App Deployments with Tunnels, OIDC, RBAC, and Progressive Deliv...
Securing Your App Deployments with Tunnels, OIDC, RBAC, and Progressive Deliv...Securing Your App Deployments with Tunnels, OIDC, RBAC, and Progressive Deliv...
Securing Your App Deployments with Tunnels, OIDC, RBAC, and Progressive Deliv...
 
Weave GitOps 2022.09 Release: A Fast & Reliable Path to Production with Progr...
Weave GitOps 2022.09 Release: A Fast & Reliable Path to Production with Progr...Weave GitOps 2022.09 Release: A Fast & Reliable Path to Production with Progr...
Weave GitOps 2022.09 Release: A Fast & Reliable Path to Production with Progr...
 
DevOps & DevSecOps in Swiss Banking
DevOps & DevSecOps in Swiss BankingDevOps & DevSecOps in Swiss Banking
DevOps & DevSecOps in Swiss Banking
 
Intro to GitOps with Weave GitOps, Flagger and Linkerd
Intro to GitOps with Weave GitOps, Flagger and LinkerdIntro to GitOps with Weave GitOps, Flagger and Linkerd
Intro to GitOps with Weave GitOps, Flagger and Linkerd
 
Cloud Native Apps with GitOps
Cloud Native Apps with GitOps Cloud Native Apps with GitOps
Cloud Native Apps with GitOps
 
CI/CD on Google Cloud Platform
CI/CD on Google Cloud PlatformCI/CD on Google Cloud Platform
CI/CD on Google Cloud Platform
 
Understanding the GitOps Workflow and CICD Pipeline - What It Is, Why It Matt...
Understanding the GitOps Workflow and CICD Pipeline - What It Is, Why It Matt...Understanding the GitOps Workflow and CICD Pipeline - What It Is, Why It Matt...
Understanding the GitOps Workflow and CICD Pipeline - What It Is, Why It Matt...
 
Free GitOps Workshop
Free GitOps WorkshopFree GitOps Workshop
Free GitOps Workshop
 
Hybrid and Multi-Cloud Strategies for Kubernetes with GitOps
Hybrid and Multi-Cloud Strategies for Kubernetes with GitOpsHybrid and Multi-Cloud Strategies for Kubernetes with GitOps
Hybrid and Multi-Cloud Strategies for Kubernetes with GitOps
 
Hybrid and Multi-Cloud Strategies for Kubernetes with GitOps
Hybrid and Multi-Cloud Strategies for Kubernetes with GitOpsHybrid and Multi-Cloud Strategies for Kubernetes with GitOps
Hybrid and Multi-Cloud Strategies for Kubernetes with GitOps
 
Shift Deployment Security Left with Weave GitOps & Upbound’s Universal Crossp...
Shift Deployment Security Left with Weave GitOps & Upbound’s Universal Crossp...Shift Deployment Security Left with Weave GitOps & Upbound’s Universal Crossp...
Shift Deployment Security Left with Weave GitOps & Upbound’s Universal Crossp...
 
Deploy 22 microservices from scratch in 30 mins with GitOps
Deploy 22 microservices from scratch in 30 mins with GitOpsDeploy 22 microservices from scratch in 30 mins with GitOps
Deploy 22 microservices from scratch in 30 mins with GitOps
 
GitOps - Modern best practices for high velocity app dev using cloud native t...
GitOps - Modern best practices for high velocity app dev using cloud native t...GitOps - Modern best practices for high velocity app dev using cloud native t...
GitOps - Modern best practices for high velocity app dev using cloud native t...
 
Next Level DevOps Implementation with GitOps
Next Level DevOps Implementation with GitOpsNext Level DevOps Implementation with GitOps
Next Level DevOps Implementation with GitOps
 
gitopsthekubernetesway-201026090439.pdf
gitopsthekubernetesway-201026090439.pdfgitopsthekubernetesway-201026090439.pdf
gitopsthekubernetesway-201026090439.pdf
 
Gitops: the kubernetes way
Gitops: the kubernetes wayGitops: the kubernetes way
Gitops: the kubernetes way
 
Empowering developers and operators through Gitlab and HashiCorp
Empowering developers and operators through Gitlab and HashiCorpEmpowering developers and operators through Gitlab and HashiCorp
Empowering developers and operators through Gitlab and HashiCorp
 
Deploying Stateful Applications Securely & Confidently with Ondat & Weave GitOps
Deploying Stateful Applications Securely & Confidently with Ondat & Weave GitOpsDeploying Stateful Applications Securely & Confidently with Ondat & Weave GitOps
Deploying Stateful Applications Securely & Confidently with Ondat & Weave GitOps
 

Más de Vietnam Open Infrastructure User Group

Más de Vietnam Open Infrastructure User Group (18)

Room 3 - 5 - Nguyễn Văn Hoàn - 101 Bugs, issues when I work with Ceph
Room 3 - 5 - Nguyễn Văn Hoàn - 101 Bugs, issues when I work with CephRoom 3 - 5 - Nguyễn Văn Hoàn - 101 Bugs, issues when I work with Ceph
Room 3 - 5 - Nguyễn Văn Hoàn - 101 Bugs, issues when I work with Ceph
 
Room 3 - 2 - Trần Tuấn Anh - Defending Software Supply Chain Security in Bank...
Room 3 - 2 - Trần Tuấn Anh - Defending Software Supply Chain Security in Bank...Room 3 - 2 - Trần Tuấn Anh - Defending Software Supply Chain Security in Bank...
Room 3 - 2 - Trần Tuấn Anh - Defending Software Supply Chain Security in Bank...
 
Room 2 - 2 - Giang Thiên Phú - Kinh nghiệm tối ưu mongodb với database hơn 10...
Room 2 - 2 - Giang Thiên Phú - Kinh nghiệm tối ưu mongodb với database hơn 10...Room 2 - 2 - Giang Thiên Phú - Kinh nghiệm tối ưu mongodb với database hơn 10...
Room 2 - 2 - Giang Thiên Phú - Kinh nghiệm tối ưu mongodb với database hơn 10...
 
Room 2 - 7 - Lã Mạnh Hà - Agile + DevOps = A great combination
Room 2 - 7 - Lã Mạnh Hà - Agile + DevOps = A great combinationRoom 2 - 7 - Lã Mạnh Hà - Agile + DevOps = A great combination
Room 2 - 7 - Lã Mạnh Hà - Agile + DevOps = A great combination
 
Room 2 - 5 - Seong Soo - NHN Cloud - Upstream contribution mentoring program ...
Room 2 - 5 - Seong Soo - NHN Cloud - Upstream contribution mentoring program ...Room 2 - 5 - Seong Soo - NHN Cloud - Upstream contribution mentoring program ...
Room 2 - 5 - Seong Soo - NHN Cloud - Upstream contribution mentoring program ...
 
Room 1 - 2 - Nguyễn Văn Thắng & Dzung Nguyen - Proxmox VE và ZFS over iscsi
Room 1 - 2 - Nguyễn Văn Thắng & Dzung Nguyen - Proxmox VE và ZFS over iscsiRoom 1 - 2 - Nguyễn Văn Thắng & Dzung Nguyen - Proxmox VE và ZFS over iscsi
Room 1 - 2 - Nguyễn Văn Thắng & Dzung Nguyen - Proxmox VE và ZFS over iscsi
 
Room 1 - 1 - Benoit TELLIER - On premise email inbound service with Apache James
Room 1 - 1 - Benoit TELLIER - On premise email inbound service with Apache JamesRoom 1 - 1 - Benoit TELLIER - On premise email inbound service with Apache James
Room 1 - 1 - Benoit TELLIER - On premise email inbound service with Apache James
 
Phiên sáng - 05 - Chia sẻ về Open Infrastructure trên thế giới
Phiên sáng - 05 - Chia sẻ về Open Infrastructure trên thế giớiPhiên sáng - 05 - Chia sẻ về Open Infrastructure trên thế giới
Phiên sáng - 05 - Chia sẻ về Open Infrastructure trên thế giới
 
Phiên sáng - 06 - Thúc đẩy phát triển với Hệ sinh thái Cloud mở
Phiên sáng - 06 - Thúc đẩy phát triển với Hệ sinh thái Cloud mởPhiên sáng - 06 - Thúc đẩy phát triển với Hệ sinh thái Cloud mở
Phiên sáng - 06 - Thúc đẩy phát triển với Hệ sinh thái Cloud mở
 
Phiên sáng - 02 - Khai mạc và phát biểu của VIA và VietOpenInfra
Phiên sáng - 02 - Khai mạc và phát biểu của VIA và VietOpenInfraPhiên sáng - 02 - Khai mạc và phát biểu của VIA và VietOpenInfra
Phiên sáng - 02 - Khai mạc và phát biểu của VIA và VietOpenInfra
 
Packaging Strategy for Community Openstack and Implementation Reference | Hoj...
Packaging Strategy for Community Openstack and Implementation Reference | Hoj...Packaging Strategy for Community Openstack and Implementation Reference | Hoj...
Packaging Strategy for Community Openstack and Implementation Reference | Hoj...
 
Unrevealed Story Behind Viettel Network Cloud Hotpot | Đặng Văn Đại, Hà Mạnh ...
Unrevealed Story Behind Viettel Network Cloud Hotpot | Đặng Văn Đại, Hà Mạnh ...Unrevealed Story Behind Viettel Network Cloud Hotpot | Đặng Văn Đại, Hà Mạnh ...
Unrevealed Story Behind Viettel Network Cloud Hotpot | Đặng Văn Đại, Hà Mạnh ...
 
Quick and Solid - Baremetal on OpenStack | Rico Lin
Quick and Solid - Baremetal on OpenStack | Rico LinQuick and Solid - Baremetal on OpenStack | Rico Lin
Quick and Solid - Baremetal on OpenStack | Rico Lin
 
Zero Touch 5G Slicing Infrastructure Management | Thủy Đặng, Trinh Nguyen
Zero Touch 5G Slicing Infrastructure Management | Thủy Đặng, Trinh NguyenZero Touch 5G Slicing Infrastructure Management | Thủy Đặng, Trinh Nguyen
Zero Touch 5G Slicing Infrastructure Management | Thủy Đặng, Trinh Nguyen
 
More Than An "API" | Jae Lee
More Than An "API" | Jae LeeMore Than An "API" | Jae Lee
More Than An "API" | Jae Lee
 
Microservices: AutoScaling in Hyper-Microservice Architecture | Nguyễn Trung ...
Microservices: AutoScaling in Hyper-Microservice Architecture | Nguyễn Trung ...Microservices: AutoScaling in Hyper-Microservice Architecture | Nguyễn Trung ...
Microservices: AutoScaling in Hyper-Microservice Architecture | Nguyễn Trung ...
 
Ansible Automation - Enterprise Use Cases | Juncheng Anthony Lin
Ansible Automation - Enterprise Use Cases | Juncheng Anthony LinAnsible Automation - Enterprise Use Cases | Juncheng Anthony Lin
Ansible Automation - Enterprise Use Cases | Juncheng Anthony Lin
 
Self Healing Trong Cloud Infrastructure với TICK Stack, Vitrage và Mistral | ...
Self Healing Trong Cloud Infrastructure với TICK Stack, Vitrage và Mistral | ...Self Healing Trong Cloud Infrastructure với TICK Stack, Vitrage và Mistral | ...
Self Healing Trong Cloud Infrastructure với TICK Stack, Vitrage và Mistral | ...
 

Último

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Último (20)

ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source Milvus
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 

Room 2 - 4 - Juncheng Anthony Lin - Redhat - A Practical Approach to Traditional and Cloud Native Infrastructure Management using GitOps

  • 1. V0000000 OpenInfra Days @ Vietnam 2022 27-Aug-2022 A Practical Approach to Traditional and Cloud Native Infrastructure Management using GitOps Anthony Lin anthony.lin@redhat.com Hybrid Cloud Specialist, Red Hat ASEAN 1
  • 2. AGENDA OpenInfra Days @ Vietnam 2022 ▪ What is GitOps? ▪ IaC Automation and GitOps ▪ GitOps and Kubernetes Multi-Cluster Management ▪ Q&A
  • 4. GitOps ● Prescriptive style of Infrastructure as Code ○ For deploying and managing large, sophisticated, distributed and cloud-native systems ○ Uses Git as the single source of truth for declarative infrastructure and applications ■ Defined state of infrastructure is Git version controlled, complete with a useful audit log of all activity ● Brings together developments and operations with development process and tooling ○ Provides a consistent means of working across the organization ○ Helps to increase productivity and velocity of deployments and development
  • 5. GitOps considers that Git repository is our only source of truth. Manual operations are prohibited and changes are introduced through git to perform deployments adopting “Continuous Deployment”. Contributor’s Pull Request Content Review Release for Consumption Generate Artifacts Test Content
  • 7. 7 #1 Fill the form Request For Change. #2 Fill the form again after talking with senior colleague. #3 Now you can fill the webform and link CIs from CMDB. #4 Your Configuration Item (CI) is not in the CMDB. #5 Use your own team's CMDB (A.K.A Excel). #6 Sleep(1 week) and waitfor(Change Advisory Board). #7 Explain why you really, really need to do your job. #8 Someone's else execute and get syntax error. #9 Goto #2 The Joy of Request For Changes
  • 8. 8 Infrastructure As Code "Infrastructure As Code is the capability to rebuild the entire infrastructure only with system’s data and code from your version control systems " Data Code
  • 9. IaC Practices Data Code Automated tests Security and compliance Automating execution from a shared environment Source Control Modularizing and versioning Documentation
  • 11. Benefits of CI/CD ● Velocity ○ Automation = Speed ○ Accelerate time to value ● Productivity ○ Automation of Repetitive Tasks ○ Experimentation = Innovation ● Sustainability ○ Quality ○ Reproducibility ○ Stability ○ Processes
  • 12. Public Cloud Experience Infrastructure ● CI/CD ● Fully Tested ● Fully Automated ● Infra as Code (IaC) Applications W W W DB
  • 13. “Classic” On-Premise Infrastructure Infrastructure ● Manually Deployed and/or Operated ● Error-Prone Changes ● Fragile ● Low Reproducibility ● Low Confidence Applications W W W DB
  • 14. On-Premise Infrastructure with CI/CD Infrastructure ● CI/CD ● Fully Tested ● Fully Automated ● Infra as Code (IaC) Applications W W W DB
  • 15. What is Need to Enable CI/CD in an Infrastructure Project? ● Infrastructure as Code ● Test Environments ● Time and Effort
  • 16. Applying Software Best Practices to Hardware Physical Infrastructure as Code ● Speed+ ● Cost- ● Risk- ● Velocity ● Productivity ● Sustainability Physical CI/CD Infrastructure as code is the foundation required to automate deployments and scaling in the physical world.
  • 17. What CI/CD Looks like in Practice Step1 Step 2 Step3 Step5 Step4 Pipeline RUN Q. How do we know the operation will be successful? A. Because we test it first (that is the CI part)
  • 18. What CI/CD Looks like in Practice Step 1 Step 2 Step 4 Step 3 A pipeline consisting of all the automated steps needed to achieve the required operation: ● New deployment ● Upgrade ● Scale-up/Scale-down ● Config change ● and others ... For proper CI/CD, some of these steps are tests that are usually executed in a virtual environment Prepare the Virtual Environment Actual Operation: - Deployment - Upgrade - Config Change - and others ... Test the result of this operation Repeat the operation in a production environment CD CI
  • 19. deploy test environment start impact monitoring upgrade process impact analysis Iteration 1 deploy test environment start impact monitoring upgrade process impact analysis Iteration 2 deploy test environment start impact monitoring upgrade process impact analysis Iteration 13 deploy test environment start impact monitoring upgrade process impact analysis Production deployment Iteration 14 Process did not complete because of error in upgrade process orchestration Impacted test application because of BZ #xxxxxx. hotfix provided by Red Hat. No impact detected! Site 1 Site 2 Site 3 Multiple production clusters upgraded with: ● Very high confidence ● One-click operation ● Engineers already working on something else ... ... ... ... ... Cloud Upgrade Example
  • 20. GitOps + IaC in Action Check-Out Content 1 Trigger CI Check-In Changes Approve Changes 3 6 7 Trigger CD Peer Reviewer(s) Engineers Test 4 8 Deploy 2 Notify 5 Notify 9 Dev Workspace 0
  • 21. Golden Image GitOps Pipeline with Ansible Automation Platform Code Version Control Build Code Editor Source Code Management Artifact / Image Creation Leads to much faster reaction time to new CVEs and security vulnerabilities as new images can be built quickly with pipeline! Package New Base OS Server Image ● Pipeline allows easy rebuild of Base OS Image ● Rebuilt image is properly hardened and updated with the latest security patches ● Provides hardened Base OS Image for Developers to carry out application testing ● Pipeline can be easily extended to include application installation and other custom requirements
  • 22. Golden Image GitOps Pipeline with Ansible Automation Platform
  • 25. 25 Cloud-native Approaches ● Declarative infrastructure definitions ● Separation of Software / Data / Configuration ● Automate everything ● Rebuild vs Repair ● Scalability. Scale Out not Up. ● Oriented to: ○ Containers / Kubernetes ○ Microservices architectures ○ 12 factor apps ○ DevSecOps / Agility ○ Portability -> Multi/Hybrid cloud
  • 26. ▸ Disparate clusters built by individual teams within the organization. ▸ Significant effort spent to meet security, governance and compliance requirements of the organization. ▸ Ensuring the platform is operationally ready within days and not weeks-to-months to onboard developer teams. Challenges ▸ Provide containers-as-a-service capability within the organization through self-service consumption ▸ Automate standard container platform build within the organization ▸ Enforce policies and configuration on the container platform in a consistent manner ▸ Using git as the source of truth Solution 26 Adopting Kubernetes Enterprise Wide
  • 27. Run ▸ Observability: Central monitoring and logging ▸ DevOps tooling. Automated builds. CI/CD, IDE, Container registry ▸ Unified storage abstraction Manage ▸ Multi cluster management ▸ GitOps. Application lifecycle management. ▸ Project team and application onboarding Governance, Compliance and Security ▸ Policy-based governance, risk, and compliance ▸ Shift Left. Container security. ▸ Zero trust security ▸ Trusted supply chain ▸ Approved tech stack. Language runtime, databases, RHEL UBI images. Automate Everything ▸ IaC ▸ Configuration Management ▸ Workflow orchestration ▸ Network and security automation Supporting Application Modernization Application modernization Run Automate Manage 27 Governance, compliance and security Consistency is key across the organization Physical Virtua l Private cloud Public cloud Edge
  • 28. Sync Monitor Detect drift Take action Argo CD ● Cluster and application configuration versioned in Git ● Automatically syncs configuration from Git to clusters ● Drift detection, visualization and correction ● Granular control over sync order for complex rollouts ● Rollback and rollforward to any Git commit ● Manifest templating support (Helm, Kustomize, etc) ● Visual insight into sync status and history 28
  • 30. 30 Open Source Community & Ecosystem Open Policy Agent Hive metal3
  • 31. 31 Multi-Cluster Management Multicluster lifecycle management Policy driven governance, risk, and compliance Advanced application lifecycle management Multicluster observability for health and optimization Multicluster networking for interconnecting
  • 32. OpenShift Clusters Architecture OpenShift Management Cluster Platform Team Developers’ namespaces Developers’ network policies Governance & Policies Observability Container Security Container Registry Automation SIEM Red Hat SSO Platform Team Ansible Playbooks Platform Team Governance policies Configuration policies Compliance policies 32 Central Management Managed Clusters
  • 33. OpenShift as a Service Demo - An Opinionated Approach
  • 35. linkedin.com/company/red-hat youtube.com/user/RedHatVideo s facebook.com/redhatinc twitter.com/RedHat Red Hat is the world’s leading provider of enterprise open source software solutions. Award-winning support, training, and consulting services make Red Hat a trusted adviser to the Fortune 500. Thank you 35