apiVersion: API 버젼 정보
kind: 리소스 종류
metadata:
name: 리소스 이름
spec:
리소스 상세 정보
apiVersion: v1
kind: Pod
metadata:
name: photoview-pod
labels:
app: photo-view
env: stage
spec:
containers:
- image: <임의의 레지스트리명>.azurecr.io/photo-view:v1.0
name: photoview-container
ports:
- containerPort: 80
apiVersion: v1
kind: ReplicaSet
metadata:
name: photoview-rs
spec:
replicas: 3
selector:
matchLabels:
app: photoview
template:
metadata:
labels:
app: photoview
env: prod
spec:
containers:
- images: sampleacrregistry.azurecr.io/photo-view:v1.0
name: photoview-container
ports:
- containerPort: 80
apiVersion: apps/v1
kind: Deploymnet
metadata:
name: nginx-deployment
spec:
replicas: 3
selector:
matchLabels:
app: nginx-pod
template:
metadata:
labels:
app: nginx-pod
spec:
containers:
- images: nginx
name: nginx:1.14
ports:
- containerPort: 80
아마존 EKS로 배우는 데브옵스 및 IaC 기반 서비스 배포와 관리