Skip to Content
쿠버네티스를 활용한 클라우드 네이티브 데브옵스
book

쿠버네티스를 활용한 클라우드 네이티브 데브옵스

by 최경현, 저스틴 도밍거스, 존 어런들
December 2019
Beginner to intermediate
420 pages
8h 34m
Korean
Hanbit Media, Inc.
Content preview from 쿠버네티스를 활용한 클라우드 네이티브 데브옵스
352
쿠버네티스를 활용한 클라우드 네이티브 데브옵스
14.4.6
애플리케이션 컨테이너 빌드하기
여기서는
docker
build
를 다시 실행한다. 그러나 전체 멀티 스테이지 빌드로 최종 애플리케
이션 컨테이너를 빌드하기 위해
--
target
플래그는 추가하지 않는다.
- id: build-app
dir: hello-cloudbuild
name: gcr.io/cloud-builders/docker
entrypoint: bash
args:
- -c
- |
docker build --tag gcr.io/${PROJECT_ID}/demo:${COMMIT_SHA}
14.4.7
쿠버네티스 매니페스트 검증하기
이제 테스트를 통과하고 쿠버네티스에서 실행할 수 있는 컨테이너가 준비되었다. 하지만 실
제로 컨테이너를 배포하기 위해서는 헬름 차트를 사용해야 한다. 이번 단계에서는
helm
template
명령어를 실행하여 쿠버네티스 매니페스트를 생성한다. 그리고
kubeval
도구를 사
용하여 매니페스트를 검증한다 (‘
12
.
4
.
6
kubeval
’ 참조 ).
- id: kubeval
dir: hello-cloudbuild
name: cloudnatived/helm-cloudbuilder
entrypoint: bash
args:
- -c
- |
helm template ./k8s/demo/ ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

쿼커스 쿡북: 쿠버네티스를 위한 네이티브 자바 솔루션

쿼커스 쿡북: 쿠버네티스를 위한 네이티브 자바 솔루션

유동환, 알렉스 소토 부에노, 제이슨 포터

Publisher Resources

ISBN: 9791162248249