Terraform을 활용하여 네이버클라우드플랫폼 인프라 생성 및 관리하는 방안에 대해 소개합니다. | Introduce how to create and manage an infrastructure for Naver Cloud Platform by utilizing Terraform.
[ 2018 컨테이너 기술의 모든 것 ] NBP 박기은 CTO 세션에서 소개된 네이버 클라우드 플랫폼의 컨테이너 기술 관련 서비스 및 향후 로드맵을 공유합니다.
[ 2018 All About Container ] Presentation about container technology & service roadmap of NAVER CLOUD PLATFORM by NBP cloud solution CTO "Park Ki Eun"
[ 2018 컨테이너 기술의 모든 것 ] NBP 박기은 CTO 세션에서 소개된 네이버 클라우드 플랫폼의 컨테이너 기술 관련 서비스 및 향후 로드맵을 공유합니다.
[ 2018 All About Container ] Presentation about container technology & service roadmap of NAVER CLOUD PLATFORM by NBP cloud solution CTO "Park Ki Eun"
Custom DevOps Monitoring System in MelOn (with InfluxDB + Telegraf + Grafana)Seungmin Yu
2016년도 데이터야놀자에서 발표한 자료입니다.
멜론에서 InfluxDB + Telegraf + Grafana 조합으로 모니터링 시스템을 구축하고 활용한 사례를 발표한 내용입니다. 다양한 메트릭데이터와 DevOps 측면의 활용 가치에 대해서도 생각해 볼 수 있을 것 같습니다.
글로벌 향 서비스 구축 시, 네이버 클라우드 플랫폼에서 사용할 수 있는 서비스들과 인프라단에서 고려해야 할 사항들에 대해서 자세히 소개해 드립니다 | Let me introduce you in detail the services available on the Naver cloud platform and what the infrastructure needs to consider when building a global service.
Terraform을 기반한 AWS 기반 대규모 마이크로서비스 인프라 운영 노하우 - 이용욱, 삼성전자 :: AWS Summit Seoul ...Amazon Web Services Korea
Terraform을 기반한 AWS 기반 대규모 마이크로서비스 인프라 운영 노하우
이용욱, 삼성전자
EC2 및 ECS/EKS 등 다양한 컴퓨팅 환경 및 다양한 AWS 서비스를 활용하는 수십 종의 Microservice로 구성된 대규모 서비스 인프라를 Terraform 모듈을 이용하여 구성하고, 이를 원활하게 운영 관리하기 위해 필요한 terraform코드 구성 방법 및 Kitchen을 이용한 terraform 코드 테스팅 경험을 공유합니다.
게임사들이 활용할 수 있는 네이버클라우드플랫폼 서비스들과 클라우드 상에서 게임 인프라 구축시 고려해야 할 포인트들에 대해서 소개합니다. | Introduce the Naver Cloud Platform service that game companies can use and the points to consider when building game infrastructure in the cloud.
이젠 사물 인터넷을 넘어, 지능형 사물 인터넷 시대로 접어들고 있습니다. 지능형 사물 인터넷 트렌드는 어떤 지, 그리고 클라우드 기반의 IoT 서비스는 어떻게 구축이 가능한 지 함께 살펴보겠습니다 | Now beyond the Internet of Things, we are entering the era of the intelligent Internet of Things. Let's take a look at what the intelligent Internet of Things trend is and how cloud-based IoT services can be built.
클라우드 개념부터 클라우드와 함께하는 중요 기술들에 대해 살펴보며, 클라우드 컴퓨팅에 대한 이해와 기술 트렌드를 살펴보실 수 있습니다 | From the concept of cloud to important technologies with the cloud, you can see the understanding of cloud computing and technology trends.
More Related Content
Similar to 네이버클라우드플랫폼 온라인 교육 시리즈 - Terraform을 이용한 네이버클라우드플랫폼 인프라 만들기(윤성훈 클라우드 솔루션 아키텍트)
Custom DevOps Monitoring System in MelOn (with InfluxDB + Telegraf + Grafana)Seungmin Yu
2016년도 데이터야놀자에서 발표한 자료입니다.
멜론에서 InfluxDB + Telegraf + Grafana 조합으로 모니터링 시스템을 구축하고 활용한 사례를 발표한 내용입니다. 다양한 메트릭데이터와 DevOps 측면의 활용 가치에 대해서도 생각해 볼 수 있을 것 같습니다.
글로벌 향 서비스 구축 시, 네이버 클라우드 플랫폼에서 사용할 수 있는 서비스들과 인프라단에서 고려해야 할 사항들에 대해서 자세히 소개해 드립니다 | Let me introduce you in detail the services available on the Naver cloud platform and what the infrastructure needs to consider when building a global service.
Terraform을 기반한 AWS 기반 대규모 마이크로서비스 인프라 운영 노하우 - 이용욱, 삼성전자 :: AWS Summit Seoul ...Amazon Web Services Korea
Terraform을 기반한 AWS 기반 대규모 마이크로서비스 인프라 운영 노하우
이용욱, 삼성전자
EC2 및 ECS/EKS 등 다양한 컴퓨팅 환경 및 다양한 AWS 서비스를 활용하는 수십 종의 Microservice로 구성된 대규모 서비스 인프라를 Terraform 모듈을 이용하여 구성하고, 이를 원활하게 운영 관리하기 위해 필요한 terraform코드 구성 방법 및 Kitchen을 이용한 terraform 코드 테스팅 경험을 공유합니다.
게임사들이 활용할 수 있는 네이버클라우드플랫폼 서비스들과 클라우드 상에서 게임 인프라 구축시 고려해야 할 포인트들에 대해서 소개합니다. | Introduce the Naver Cloud Platform service that game companies can use and the points to consider when building game infrastructure in the cloud.
이젠 사물 인터넷을 넘어, 지능형 사물 인터넷 시대로 접어들고 있습니다. 지능형 사물 인터넷 트렌드는 어떤 지, 그리고 클라우드 기반의 IoT 서비스는 어떻게 구축이 가능한 지 함께 살펴보겠습니다 | Now beyond the Internet of Things, we are entering the era of the intelligent Internet of Things. Let's take a look at what the intelligent Internet of Things trend is and how cloud-based IoT services can be built.
클라우드 개념부터 클라우드와 함께하는 중요 기술들에 대해 살펴보며, 클라우드 컴퓨팅에 대한 이해와 기술 트렌드를 살펴보실 수 있습니다 | From the concept of cloud to important technologies with the cloud, you can see the understanding of cloud computing and technology trends.
21년도 12월부터 순차적으로 개시되는 마이데이터 사업에 대해 알아봅니다. 이를 통해 마이데이터 사업이 우리 삶과 비즈니스에 끼치는 영향에 대해 이해하고, 클라우드 상에서 마이데이터 사업을 어떻게 적용시킬 수 있는지에 대해 살펴봅니다. | Let's learn about the MyData business that starts sequentially in December 2021. Through this, we understand the impact of MyData business on our lives and businesses, and look at how we can apply MyData business on the cloud.
도커의 근간 기술을 이해하기 위해 도커의 역사를 살펴보고, 클러스터 환경으로 컨테이너 환경을 운영하는 쿠버네티스에 대한 핵심 개념에 대해 알아봅니다. 마지막으로 쿠버네티스 클러스터를 손쉽게 생성하고 관리할 수 있는 네이버 클라우드 플랫폼 Kubernetes service를 데모를 통해 소개해드립니다 | To understand Docker's underlying technology, we look at Docker's history and learn about the core concepts of Kubernetis, which operates a container environment in a cluster environment. Lastly, I will introduce Naver's cloud platform Kubernetes service, which allows you to easily create and manage Kubernetes clusters, through a demo.
8월 온투법과 9월 특금법 시행을 앞둔 기업이라면, 자금세탁방지시스템[AML] 구축은 필수입니다. AML 업계 1위 제품인 AMLXpress에 대해 소개해드립니다 | Let me introduce AMLXpress, the No. 1 product in AML industry
서로 다른 애플리케이션의 중개자 역할을 하는 API가져온 API Economy의 정의를 살펴보고 API Economy 성공 기업들을 소개합니다 | Explore API Economy, which acts as a broker for different applications, and introduce API Economy successful companies.
클라우드에서 인프라 구축 시 고려해야 할 사항들을 살펴보고, 네이버 클라우드 플랫폼을 활용하여 고가용성을 유지하는 방안에 대해 소개합니다. | Explore the considerations of building infrastructure in the cloud and introduce ways to maintain high availability by leveraging the Naver cloud platform.
최근 화두인 마이데이터사업에 대한 정의를 살펴보고, 마이데이터 사업을 위한 네이버클라우드플랫폼 서비스 및 구성방안에 대해 안내해드립니다. | We will look at the definition of MyData business, which is a hot topic recently, and guide you on Naver Cloud Platform service and architecture for MyData business.
VPC 환경에서의 보안과 네이버클라우드플랫폼에서 제공하는 보안관제서비스인 security monitoring 서비스에 대해 소개합니다. | Introduce Naver Cloud Platform security services, world-class security technologies to protect your data and services from external threats.
매년 가트너에서는 향후 5년간 IT업계의 파괴적 혁신을 도모할 주요 기술 흐름을 소개합니다. 가트너에서 2021년도 혁신 기술로서 언급한 내용들을 간략하게 정리하여 공유드립니다 | 98 / 5000소스 TTS복사하기필기인식기번역하기자동완성
영어열기/닫기 아이콘
Every year Gartner introduces key technology trends that will drive disruptive innovation in the IT industry over the next five years. We share a brief summary of what Gartner mentioned as an innovation technology of 2021.
클라우드 상에서 논리적으로 격리된 고객 전용 네트워크를 제공하는 VPC에 대해 살펴보고 스토리지 암호화, 감사 등 보안을 위한 다양한 기능들을 소개해드립니다 | Explore VPC providing a logically siloed customer-only network on the cloud and introduce a range of security features including storage encryption and auditing.
2025년도 까지의 데이터 시장의 전망을 살펴보고, 클라우드 상에서 데이터를 효율적으로 다루기 위한 서비스들을 소개합니다 | Explore the prospects for the data market by 2025 and introduce services to efficiently address data in the cloud
대규모 분산 서비스 및 시스템 성능을 분석하고 진단하기 위한 APM(Application Performance Management) tool Pinpoint의 특징과 기능에 대해 소개합니다 | Introduce the features and capabilities of Application Performance Management (APM) tool pinpoint for analyzing and diagnosing large distributed services and system performance
포스트코로나 시대에 비대면 서비스가 활성화되면서, 이를 실현하기 위한 AI 기술이 주목받고 있습니다. 네이버클라우드플랫폼에서 제공하는 AI 서비스를 살펴보시고 여러분들의 비즈니스에 적합한 AI서비스를 활용해보세요! | As non-face-to-face services are activated in the post-corona era, AI technology to realize them is attracting attention. Take a look at the AI service offered by Naver Cloud Platform and take advantage of the AI service that's right for your business!
코로나로 인해 촉발된 언택트 시대로 인해 우리 삶에 많은 변화가 일어나고 있습니다. 이러한 변화가 의료계에서는 어떤 모습으로 나타나고 있는지 살펴봅니다. | The untact era triggered by the corona is causing a lot of changes in our lives. Let's take a look at what these changes look like in the medical world.
엄청난 동시 접속 수로 고사양이 요구되는 게임 '배틀그라운드'! 속도가 중요한 게임 서비스에서 가장 필요한 고성능 서버입니다. 배틀그라운드 사례 뿐아니라 SK텔레콤도 선정하여 사용하고 있는 네이버클라우드플랫폼 베어메탈 서버에 대해 소개합니다 | Battlegrounds is a game that requires a lot of simultaneous access! High-performance servers most needed for speed-critical gaming services. In addition to the case of Battlegrounds, SK Telecom has selected and used Naver Cloud Platform Bare Metal Server.
네이버 클라우드 플랫폼의 "TensorFlow Server"상품은 TensorFlow를 비롯한 딥러닝 및 머신러닝 패키지와 코드를 작성할 수 있는 웹 기반의 Jupyter Notebook을 제공하여 빠르게 딥러닝, 머신러닝을 구현할 수 있게 해주는 상품입니다. 해당 온라인 교육을 통해 네이버 클라우드 플랫폼 상에서 Jupyter를 이용해 데이터 분석환경을 구축하는 법을 알아봅니다. | The "TensorFlow Server" product on Naver's cloud platform includes TensorFlow. This product provides a web-based Jupyter Notebook that allows users to write deep learning and machine learning packages and code so that they can quickly implement deep learning and machine learning.In this chapter, we will learn how to build a data analysis environment using Jupyter on Naver's cloud platform.
왜 기업은 멀티/하이브리드 클라우드에 주목해야하는지, 그리고 실제 멀티/하이브리드 유형과 사례를 살펴봄으써 멀티/하이브리드 수행 전략을 세움에 있어 실질적인 도움을 드립니다 | Why businesses should pay attention to multi-/hybrid clouds, and by looking at real-world multi/hybrid types and examples, we offer real help in creating a multi- and hybrid performance strategy.
사람에 가까운 자연스럽고 깨끗한 합성음을 제공하는 음성 합성 API인 Clova Premium Voice에 대한 기능 및 데모를 통한 사용법을 소개합니다 | Introducing features and demos for Clova Premium Voice, a voice synthesis API that provides near-human, natural, clean sounds
네이버클라우드플랫폼에서 제공하는 클라우드 데이터베이스 서비스를 소개하고, 네이버클라우드 플랫폼의 클라우드 데이터베이스 관리 노하우에 대해 소개합니다 | Introduce cloud database services provided by Naver Cloud Platform and know-how of managing cloud databases on Naver Cloud Platform
2. 코드 형태의 인프라 및 도구
코드 형태 인프라의 이해
Infrastructure as code (IAC)는 코드 버전 관리와 같은 소프트웨어 개발 기술을 사용하
여 명시적인 코드 형태로 인프라를 프로비저닝하고 관리하는 방식이며, 또한 인프라가 코
드를 통해 정의되므로 인프라와 서버를 표준화된 패턴을 사용하여 배포하고, 최신 패치와
버전으로 업데이트하거나, 복제를 통해 다양한 환경에 동일한 인프라 구성 매칭이 가능하
다.
N A V E R CLOUD PLA TFORM – Terra fo rm2/
*.tf
3. 코드 형태 인프라의 이점
IAC로 인프라 리소스 구성을 자동화 하였을때 self-service 형태로 인프라를 서비스화 가
능하며, 빠르고 안전하게 리소스를 증설 및 복구가 가능하다. 또한 명시적인 코드 형태 관
리를 통해 문서화와 버전 관리가 손쉬워 변경 이력 및 서비스 영향도에 대해 명확하게 파
악 가능하다.
N A V E R CLOUD PLA TFORM – Terra fo rm3/
출처 : 2017 state of devops report
4. 코드 형태의 인프라 구성 도구
클라우드 플랫폼 별 IAC 도구 존재하며, 각 클라우드 API를 통해 Mashup 인터페이스 형
태로 제공하는 Terraform도 존재
도구 특성
AWS CloudFormation
AWS 리소스 생성을 위한 IAC 도구, 템플릿은 YAML, JSON 포맷
사용, Rollback Triggers 제공
Google Cloud Deployment Manager
GCP 리소스 생성을 위한 IAC 도구, 템플릿은 YAML, Python,
Jinja2 포맷 지원
Terraform
멀티클라우드 환경에서 동일한 인터페이스 형태(Terraform api)
로 각 플랫폼 별 리소스 생성 IAC 도구, 템플릿은 HCL(.tf), Json
포맷 지원
N A V E R CLOUD PLA TFORM – Terra fo rm4/
5. N A V E R CLOUD PLA TFORM – Terra fo rm5/
Hashicorp Terraform
특정 클라우드 플랫폼에 종속되지 않고 멀티 클라우드 환경에서 사용가능하며, 인프라를
코드화 하여 관리 및 버저닝 가능하다. 그리고 실 환경에 적용 전 테스트 기능(plan)을 제
공하며 서비스 영향도를 사전에 확인 가능하다.
6. N A V E R CLOUD PLA TFORM – S erver I ma ge Bui lder6/
Terraform 특성
Infrastructure as Code
Execution Plans
Resource Graph
Change Automation
8. Terraform Workflow
N A V E R CLOUD PLA TFORM – Terra fo rm8/
Plan Apply
*.tfstate.*
Configure Cloud Provider
Define Infrastructure
HCL
9. Terraform graph
프로바이더 별 리소스 간 종속성 있음
리소스 간 종속성은 Terraform 자체 파악 후 리소스 생성
Dependency graph 확인 : terraform graph
DOT을 이미지로 변환 하기 위해 다양한 툴 존재 : Graphviz /Graphviz Online
N A V E R CLOUD PLA TFORM – Terra fo rm9/
10. Demo Architecture
NAVER CLOUD PLATFORM
KR-2
RR
Web Servers
KR-1
NAS
HTTP 80
HTTP 80
Public LoadBalancer
”tf_webinar_lb"
N A V E R CLOUD PLA TFORM – Terra fo rm10/
11. Terraform 설치 in NAVER Cloud Platform
OS 맞는 Terraform 패키지 다운로드
NCP용 프로바이더(바이너리 파일) 다운로드
설치 확인
$wget https://releases.hashicorp.com/terraform/0.11.8/terraform_0.11.8_linux_amd64.zip 1903
$unzip terraform_0.11.8_linux_amd64.zip && mv terraform /usr/bin/
$wget https://github.com/NaverCloudPlatform/terraform-provider-ncloud/releases/download/v1.3.1/terraform-
provider-ncloud_linux_amd64_1.3.1.zip
$unzip terraform-provider-ncloud_linux_amd64_1.0.0.zip && mv terraform-provider-ncloud /usr/bin/
N A V E R CLOUD PLA TFORM – Terra fo rm11/
21. destroy
N A V E R CLOUD PLA TFORM – Terra fo rm21/
parallel
22. Demo
N A V E R C L O U D P L A T F O RM - C l o u d T r a n s f o rm a ti o n2 2 /
23. Plan & .tf.state & apply
*.tf
Desired State
.tfstate
Current State
N A V E R CLOUD PLA TFORM – Terra fo rm23/
• plan & apply 실행 전 real 인프라 환경과 .tfstate 파일 비교(refreshing)
• plan 실행 시 .tfstate 파일 베이스로 생성, 삭제, 변경되는 리소스를 visualizing
• apply 실행 후 .tfstate 파일을 업데이트
• 버저닝과 오류 발생시 rollback, 보안을 위해 .tfstate 파일은 원격지에 보관을 권장
NAVER CLOUD PLATFORM
KR-2
RR
Web
Servers
KR-1
NAS
HTTP 80
HTTP 80
Public
LoadBalancer
24. Terraform in NAVER Cloud Platform 의 한계
제어 가능한 Resources 제약
ACG의 경우 이미 생성된 것을 하드코딩해서만 사용 가능
N A V E R CLOUD PLA TFORM – Terra fo rm24/
25. 참고 URL
NCP Terraform github
NCP 프로바이더 다운로드 페이지
GraphvizOnline
N A V E R CLOUD PLA TFORM – Terra fo rm25/
26. Quiz
N A V E R C L O U D P L A T F O RM - C l o u d T r a n s f o rm a ti o n2 6 /
27. N A V E R C L O U D P L A T F O RM - C l o u d T r a n s f o rm a ti o n2 7 /
Thank you