[메가존소프트] Google Cloud에서 만나는 DevOps 워크플로
고객사 대상으로 'Google Cloud에서 만나는 DevOps 워크플로' 라는 주제로 발표했습니다.
---
<AI 시대, 레거시 시스템을 Cloud Native AI 서비스로!>
일시: 2024년 11월 5일 화요일 09:00 ~ 17:30
장소: Spaceshare Samseong COEX Center
행사 스케치 영상 : https://www.youtube.com/watch?v=nw57NjLutqQ
---
● GKE, CloudBuild, Cloud Source Repositories API 활성화
● Artifact Registry Docker repository 생성
● Google Cloud Engine 클러스터 생성
○ System Monitoring 활성화
○ Managed Prometheus 활성화
○ dev, prod 네임스페이스 생성
1 - Demo 리소스 만들기
(GKE, Artifact Registry)
Artifact Registry
Google
Kubernetes Engine
9.
2 - Demo리소스 만들기
(Cloud Source Repositories, Cloud Build 트리거)
Cloud Build
Cloud
Source Repositories
● Cloud Source Repositories 저장소 생성
● Cloud Build 트리거 생성
○ dev, prod 분기별 트리거 생성
10.
● Cloud Monitoring
○GKE 기본 대시보드 둘러보기
● 커스텀 Monitoring 대시보드 생성하기
● 커스텀 알림 정책 만들기
3- Monitoring 구성하기
(Cloud Monitoring)
Cloud
Monitoring
Google
Kubernetes Engine
11.
4 - 애플리케이션배포하기
(Cloud Build)
● 애플리케이션 v.1 배포하기
○ blue 애플리케이션 배포
○ dev, prod 환경 구분하여 Cloud Build 트리거 실행
○ Artifact Registry, Cloud Source Repositories 저장소에
구분하여 배포
Cloud Build
Cloud
Source Repositories
Artifact Registry
Google
Kubernetes Engine
12.
● 애플리케이션 v.2배포
○ red, green 애플리케이션 추가 배포
○ Cloud Build에서 트리거 실행
● Cloud Build에서 v.1 로 Rollback
● Monitoring에서 설정한 커스텀 알람 작동 확인
5 - CI/CD, Rollback하기
(Cloud Build, Monitoring)
Cloud Build
Cloud
Source Repositories
Artifact Registry
Cloud
Monitoring
Google
Kubernetes Engine
Google Cloud &GitLab for DevOps in enterprise
Continuous
인프라 선호도에 관계없이 자동화를
통해 지속적인 개선을 위해 표준
DevOps 플랫폼에서 팀을
통합합니다.
Iterative
표준화된 DevOps 워크플로를 갖춘
관리형 클라우드 인프라를 통해 더
작고 간단한 기능을 더 빠른 사용자
피드백과 함께 제공할 수 있습니다.
Flexible
GitLab을 통해 워크플로우
이식성을 유지하면서도 K8s,
Knative, TF 등의 개방형 기술을
기반으로 워크로드 이식성을
제공합니다.
16.
요약
• Google Cloud에서만나는 DevOps 워크플로
• 컨테이너 기반 인프라 : GKE, Cloud Run
• CI/CD : Cloud Build
• 모니터링 및 알람 : Cloud Monitoring :
• 이미지 버전 관리 : Artifact Registry
• 소스 저장 및 버전 관리 : Cloud Source Repositories
• 기존 DevOps 워크플로에 더하는 Google Cloud
• 관리형 Prometheus 서비스
• Google Cloud Gitlab on Google Cloud
17.
참고하시면 좋은 자료들
•https://cloud.google.com/devops/
• https://cloud.google.com/build
• Google Cloud Managed Service for Prometheus
• Collect Prometheus metrics from GKE
• Application observability with Prometheus on GKE
• [실습] Collect Metrics from Exporters using the Managed Service for Prometheus
• [실습] Debugging Apps on Google Kubernetes Engine
• [실습] Implement DevOps Workflows in Google Cloud