Google Cloud에서 만나는
DevOps 워크플로
이수진 - Manager, 메가존소프트
1. DevOps 업무
2. Google Cloud에서 만나는 DevOps 워크플로
3. 기존 DevOps 워크플로에 더하는 Google Cloud
4. 요약
일반적인 DevOps 업무들
CI/CD Monitoring
Cloud
Monitoring
Cloud Build
Cloud
Source Repositories
Artifact Registry
Google
Kubernetes Engine
Google Cloud에서도 할 수 있어요
Cloud
Monitoring
Cloud Build
Cloud
Source Repositories
Artifact Registry
Google
Kubernetes Engine
Google Cloud의 DevOps 제품들
Cloud
Monitoring
Cloud Build
Cloud
Source Repositories
Artifact Registry
Google
Kubernetes Engine
오늘의 Demo 시나리오
[Demo]
Google Cloud에서 만나는
DevOps 워크플로
● GKE, Cloud Build, 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
2 - Demo 리소스 만들기
(Cloud Source Repositories, Cloud Build 트리거)
Cloud Build
Cloud
Source Repositories
● Cloud Source Repositories 저장소 생성
● Cloud Build 트리거 생성
○ dev, prod 분기별 트리거 생성
● Cloud Monitoring
○ GKE 기본 대시보드 둘러보기
● 커스텀 Monitoring 대시보드 생성하기
● 커스텀 알림 정책 만들기
3- Monitoring 구성하기
(Cloud Monitoring)
Cloud
Monitoring
Google
Kubernetes Engine
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
● 애플리케이션 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
기존 DevOps 워크플로에 더하는
Google Cloud
Managed Service for Prometheus
https://www.youtube.com/watch?v=_mogL3kfKiU
Google Cloud & GitLab for DevOps in enterprise
Continuous
인프라 선호도에 관계없이 자동화를
통해 지속적인 개선을 위해 표준
DevOps 플랫폼에서 팀을
통합합니다.
Iterative
표준화된 DevOps 워크플로를 갖춘
관리형 클라우드 인프라를 통해 더
작고 간단한 기능을 더 빠른 사용자
피드백과 함께 제공할 수 있습니다.
Flexible
GitLab을 통해 워크플로우
이식성을 유지하면서도 K8s,
Knative, TF 등의 개방형 기술을
기반으로 워크로드 이식성을
제공합니다.
요약
• 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
참고하시면 좋은 자료들
• 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
Thank you

[메가존소프트] Google Cloud에서 만나는 DevOps 워크플로

  • 1.
    Google Cloud에서 만나는 DevOps워크플로 이수진 - Manager, 메가존소프트
  • 2.
    1. DevOps 업무 2.Google Cloud에서 만나는 DevOps 워크플로 3. 기존 DevOps 워크플로에 더하는 Google Cloud 4. 요약
  • 3.
  • 4.
    Cloud Monitoring Cloud Build Cloud Source Repositories ArtifactRegistry Google Kubernetes Engine Google Cloud에서도 할 수 있어요
  • 5.
    Cloud Monitoring Cloud Build Cloud Source Repositories ArtifactRegistry Google Kubernetes Engine Google Cloud의 DevOps 제품들
  • 6.
    Cloud Monitoring Cloud Build Cloud Source Repositories ArtifactRegistry Google Kubernetes Engine 오늘의 Demo 시나리오
  • 7.
  • 8.
    ● 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
  • 13.
    기존 DevOps 워크플로에더하는 Google Cloud
  • 14.
    Managed Service forPrometheus https://www.youtube.com/watch?v=_mogL3kfKiU
  • 15.
    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
  • 18.