수업종료

This commit is contained in:
2026-04-09 17:05:40 +09:00
parent 39aed23305
commit fb5f591065
3 changed files with 48 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: my-nginx-deployment
spec:
replicas: 5
selector:
matchLabels:
app: my-nginx
template: # Template describes the pods that will be created.
metadata:
name: my-nginx-pod
labels:
app: my-nginx
spec:
containers:
- name: nginx
image: nginx:1.10
ports:
- containerPort: 80
+17
View File
@@ -0,0 +1,17 @@
apiVersion: v1
kind: Pod
metadata:
name: my-nginx-pod
spec:
containers:
- name: my-nginx-container
image: nginx:latest
ports:
- containerPort: 80
protocol: TCP
- name: ubuntu-sidecar-container
image: alicek106/rr-test:curl
command: ["tail"]
args: ["-f", "/dev/null"]
+11
View File
@@ -0,0 +1,11 @@
apiVersion: v1 # YAML 파일에서 정의한 오브젝트의 API 버전
kind: Pod # 리소스의 종류 (kubectl api-resources 명령의 KIND 항목)
metadata: # 라벨, 주석(Annotation), 이름과 같은 리소스의 부가 정보
name: my-nginx-pod
spec: # 리소스 생성을 위한 정보
containers:
- name: my-nginx-container
image: nginx:latest
ports:
- containerPort: 80
protocol: TCP