SlideShare a Scribd company logo
1 of 21
Download to read offline
DEVOPS CONGRESS
Wrocław 2019
GITOPS
Jarosław Michalak – DevOps Architect
2DEVOPS CONGRESS 2019
GitOps
• Nowy sposób zarządzania klastrem Kubernetes
• Szybsze dostarczanie aplikacji dla Cloud Native
• Git jako pojedyncze i główne źródło informacji
• Przyspieszenie i uproszczenie zadań dla
Kubernetes
CO TO JEST GITOPS
3DEVOPS CONGRESS 2019
• Zwiększenie szybkości twojego zespołu
• Automatyzacja procesów związanych z
wdrażaniem i publikowaniem oprogramowania
• Sposób na uniknięcie tworzenia dedykowanych
skryptów i kosztownego ich utrzymania
• Wsparcie dla bezpiecznej automatyzacji
wdrożeń aplikacji w cyklach codziennych
JAKI JEST CEL GITOPS
MAGDA, RECRUITMENT
SPECIALIST
4DEVOPS CONGRESS 2019
PODSTAWOWE ZASADY GITOPS
• System opisany deklaratywnie
• Konfiguracja w systemie kontroli wersji (VCS)
• Łatwe zmiany w Git
• Commit
• Pull Request
• Agenty monitorujące :
• Zmiany
• Synchronizacja
• Raportowanie
• Powiadomienia
KAMIL, SENIOR
SOFTWARE ENGINEER
5DEVOPS CONGRESS 2019
• Niski próg wejścia (każdy developer
zna Git’a)
• Łatwy sposób dodawania nowych
aplikacji
• Łatwość dodawania nowych zmian
• Nie musimy uczyć się niczego
nowego :)
CO NAM DAJE GITOPS
MONIKA, SENIOR
RECRUITMENT & HR
SPECIALIST
6DEVOPS CONGRESS 2019
7DEVOPS CONGRESS 2019
Kubernetes API akceptuje deklaracje
System Deklaratywny
Automatycznie naprawiający się
Cloud Native System
DLACZEGO KUBERNETES ?
8DEVOPS CONGRESS 2019
Konwergencja (Convergence)
Inaczej zbieżność to wykonywanie
zmian do momentu osiągnięcia sukcesu
Idempotentność (Idempotence)
Właściwość pewnych operacji, która
pozwala na ich wielokrotne stosowanie bez
zmiany wyniku
Automatyzacja (Automation)
Mechanizm pozwalający na
aplikowanie zmian poprawnie i w
odpowiedniej kolejności
Determinizm (Determinism)
Przy założeniu odpowiednich zasobów,
stan docelowy zależy tylko od
oczekiwanego stanu
GŁÓWNE WŁAŚCIWOŚCI KUBERNETES
9DEVOPS CONGRESS 2019
• Brak kubectl
• Brak skryptów
• Poprawność
• Bezpieczeństwo
• Przyjazny dla developerów
GITOPS + KUBERNETES
Jakie zalety ?
10www.sii.pl
11DEVOPS CONGRESS 2019
Jenkins GitLab
GitLab
Jest aktualnie jednym z
najpopularniejszych narzędzi klasy SCM.
Podobnie do konkurencyjnych rozwiązań
realizuje podstawowe zadania związane z
zarządzaniem repozytoriami i kontrolą
wersji. Ale te funkcjonalności to zaledwie
niewielki ułamek jego możliwości.
Jenkins
Pozwala na zautomatyzowanie
procesu budowania np. uruchomia
test, buduje projekt albo zbiera
informacje o przeprowadzonych
operacjach poprzez skonfigurowanie
zadań
CZEGO W TAKIM RAZIE UŻYĆ JAKO
CI/CD DLA GITOPS ?
12www.sii.pl
GitOps
✓ Ulepsza aktualny model CI / CD
✓ CI serwer jest do CI ☺
✓ CI używany do CD to antywzorzec
✓ Odchodzi od modelu CI push
✓ Wprowadza model CI pull dla CD
CONTINUOUS INTEGRATION
Vs Continuous Deployment
13www.sii.pl
14DEVOPS CONGRESS 2019
Deklaratywny Automatyczny Kod nie kontener
Używa YAML aby utrzymać zgodność systemu.
Nie ma konieczności używanie kubectl wszystko
idzie przez Git. Używając diff jest w stanie
wykryć niezgodności pomiędzy stanem
aktualnym a pożądanym i wysłać
powiadomienia.
Wszystko jest kontrolowane przez Pull request,
nie ma potrzeby nauki nowych narzędzi bądź
metod. Pełna historia w Git pozwala na
przywrócenie dowolnej wersji i jest to o wiele
łatwiejsze niż zmiany na działającym systemie.
GITOPS OPERATOR DLA KUBERNETES
Daje możliwość tworzenia deklaratywnych
opisów systemu w Git. Włączając w to
aplikację, konfigurację, raportowanie,
monitorowanie i wiele innych.
15DEVOPS CONGRESS 2019
FLUX
https://fluxcd.io
16DEVOPS CONGRESS 2019
FLUXCD HELM OPERATOR
https://github.com/fluxcd/helm-operator
17DEVOPS CONGRESS 2019
GITOPS – PROSTA KONFIGURACJA
18DEVOPS CONGRESS 2019
GITOPS DLA CONTINUOUS DEPLOYMENT
19DEVOPS CONGRESS 2019
GITOPS – ZATWIERDZANIE ZMIAN
20DEVOPS CONGRESS 2019
GITOPS - CANARY DEPLOYMENT (FLAGGER)
Dziękuję

More Related Content

Featured

How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...DevGAMM Conference
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationErica Santiago
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellSaba Software
 
Introduction to C Programming Language
Introduction to C Programming LanguageIntroduction to C Programming Language
Introduction to C Programming LanguageSimplilearn
 

Featured (20)

How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
 
Introduction to C Programming Language
Introduction to C Programming LanguageIntroduction to C Programming Language
Introduction to C Programming Language
 

DevOps congress: Jarosław Michalak - GitOps Continuous Delivery for Kubernetes

  • 1. DEVOPS CONGRESS Wrocław 2019 GITOPS Jarosław Michalak – DevOps Architect
  • 2. 2DEVOPS CONGRESS 2019 GitOps • Nowy sposób zarządzania klastrem Kubernetes • Szybsze dostarczanie aplikacji dla Cloud Native • Git jako pojedyncze i główne źródło informacji • Przyspieszenie i uproszczenie zadań dla Kubernetes CO TO JEST GITOPS
  • 3. 3DEVOPS CONGRESS 2019 • Zwiększenie szybkości twojego zespołu • Automatyzacja procesów związanych z wdrażaniem i publikowaniem oprogramowania • Sposób na uniknięcie tworzenia dedykowanych skryptów i kosztownego ich utrzymania • Wsparcie dla bezpiecznej automatyzacji wdrożeń aplikacji w cyklach codziennych JAKI JEST CEL GITOPS MAGDA, RECRUITMENT SPECIALIST
  • 4. 4DEVOPS CONGRESS 2019 PODSTAWOWE ZASADY GITOPS • System opisany deklaratywnie • Konfiguracja w systemie kontroli wersji (VCS) • Łatwe zmiany w Git • Commit • Pull Request • Agenty monitorujące : • Zmiany • Synchronizacja • Raportowanie • Powiadomienia KAMIL, SENIOR SOFTWARE ENGINEER
  • 5. 5DEVOPS CONGRESS 2019 • Niski próg wejścia (każdy developer zna Git’a) • Łatwy sposób dodawania nowych aplikacji • Łatwość dodawania nowych zmian • Nie musimy uczyć się niczego nowego :) CO NAM DAJE GITOPS MONIKA, SENIOR RECRUITMENT & HR SPECIALIST
  • 7. 7DEVOPS CONGRESS 2019 Kubernetes API akceptuje deklaracje System Deklaratywny Automatycznie naprawiający się Cloud Native System DLACZEGO KUBERNETES ?
  • 8. 8DEVOPS CONGRESS 2019 Konwergencja (Convergence) Inaczej zbieżność to wykonywanie zmian do momentu osiągnięcia sukcesu Idempotentność (Idempotence) Właściwość pewnych operacji, która pozwala na ich wielokrotne stosowanie bez zmiany wyniku Automatyzacja (Automation) Mechanizm pozwalający na aplikowanie zmian poprawnie i w odpowiedniej kolejności Determinizm (Determinism) Przy założeniu odpowiednich zasobów, stan docelowy zależy tylko od oczekiwanego stanu GŁÓWNE WŁAŚCIWOŚCI KUBERNETES
  • 9. 9DEVOPS CONGRESS 2019 • Brak kubectl • Brak skryptów • Poprawność • Bezpieczeństwo • Przyjazny dla developerów GITOPS + KUBERNETES Jakie zalety ?
  • 11. 11DEVOPS CONGRESS 2019 Jenkins GitLab GitLab Jest aktualnie jednym z najpopularniejszych narzędzi klasy SCM. Podobnie do konkurencyjnych rozwiązań realizuje podstawowe zadania związane z zarządzaniem repozytoriami i kontrolą wersji. Ale te funkcjonalności to zaledwie niewielki ułamek jego możliwości. Jenkins Pozwala na zautomatyzowanie procesu budowania np. uruchomia test, buduje projekt albo zbiera informacje o przeprowadzonych operacjach poprzez skonfigurowanie zadań CZEGO W TAKIM RAZIE UŻYĆ JAKO CI/CD DLA GITOPS ?
  • 12. 12www.sii.pl GitOps ✓ Ulepsza aktualny model CI / CD ✓ CI serwer jest do CI ☺ ✓ CI używany do CD to antywzorzec ✓ Odchodzi od modelu CI push ✓ Wprowadza model CI pull dla CD CONTINUOUS INTEGRATION Vs Continuous Deployment
  • 14. 14DEVOPS CONGRESS 2019 Deklaratywny Automatyczny Kod nie kontener Używa YAML aby utrzymać zgodność systemu. Nie ma konieczności używanie kubectl wszystko idzie przez Git. Używając diff jest w stanie wykryć niezgodności pomiędzy stanem aktualnym a pożądanym i wysłać powiadomienia. Wszystko jest kontrolowane przez Pull request, nie ma potrzeby nauki nowych narzędzi bądź metod. Pełna historia w Git pozwala na przywrócenie dowolnej wersji i jest to o wiele łatwiejsze niż zmiany na działającym systemie. GITOPS OPERATOR DLA KUBERNETES Daje możliwość tworzenia deklaratywnych opisów systemu w Git. Włączając w to aplikację, konfigurację, raportowanie, monitorowanie i wiele innych.
  • 16. 16DEVOPS CONGRESS 2019 FLUXCD HELM OPERATOR https://github.com/fluxcd/helm-operator
  • 17. 17DEVOPS CONGRESS 2019 GITOPS – PROSTA KONFIGURACJA
  • 18. 18DEVOPS CONGRESS 2019 GITOPS DLA CONTINUOUS DEPLOYMENT
  • 19. 19DEVOPS CONGRESS 2019 GITOPS – ZATWIERDZANIE ZMIAN
  • 20. 20DEVOPS CONGRESS 2019 GITOPS - CANARY DEPLOYMENT (FLAGGER)