애저 쿠버네티스로 앱 무작정 구축하기(뽀~) > Azure 자료실

본문 바로가기

사이트 내 전체검색

뒤로가기 Azure 자료실

애저 쿠버네티스로 앱 무작정 구축하기(뽀~)

페이지 정보

작성자 조선제일검 작성일 22-07-24 01:02 조회 1,918 댓글 0

본문

10. manifest

매니페스트 파일은 클러스터에 애플리케이션을 배포하여 컨테이너를 몇 개 배포할지,

네트워크 구성과 관련된 부분을 정의하는 선언적 설정을 의미한다.

first-deployment.yaml

------------------------------

apiVersion: apps/v1

kind: Deployment

metadata:

name: first-deployment

spec:

replicas: 5

selector:

matchLabels:

app: first-view

template:

metadata:

labels:

app: first-view

env: test

spec:

containers:

- image: acrsplunkname.azurecr.io/website:v1.0

&sp;name: first-container

ports:

- containerPort: 80

pasted image 0.png

 

총 5개의 PODS가 구성되어 있다.

 

 

first-service.yaml

------------------------------

apiVersion: v1

kind: Service

metadata:

name: webserver

spec:

type: LoadBalancer

ports:

- port: 80

targetPort: 80

protocol: TCP

selector:

app: first-view

pasted image 0 (1).png

 

 11. Page Check

image.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

댓글목록 0

등록된 댓글이 없습니다.

Copyright © 소유하신 도메인. All rights reserved.

사이트 정보

회사명 : (주)리눅스데이타시스템 / 대표 : 정정모
서울본사 : 서울특별시 강남구 봉은사로 114길 40 홍선빌딩 2층 / tel : 02-6207-1160
대전지사 : 대전광역시 유성구 노은로174 도원프라자 5층 / tel : 042-331-1161

PC 버전으로 보기