From fb5f591065b737740c7461f99ca5ddb4f25d2139 Mon Sep 17 00:00:00 2001 From: HappyTanuki Date: Thu, 9 Apr 2026 17:05:40 +0900 Subject: [PATCH] =?UTF-8?q?=EC=88=98=EC=97=85=EC=A2=85=EB=A3=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Week5/deployment-nginx.yaml | 20 ++++++++++++++++++++ Week5/nginx-pod-with-ubuntu.yaml | 17 +++++++++++++++++ Week5/nginx-pod.yaml | 11 +++++++++++ 3 files changed, 48 insertions(+) create mode 100644 Week5/deployment-nginx.yaml create mode 100644 Week5/nginx-pod-with-ubuntu.yaml create mode 100644 Week5/nginx-pod.yaml diff --git a/Week5/deployment-nginx.yaml b/Week5/deployment-nginx.yaml new file mode 100644 index 0000000..15d2e0b --- /dev/null +++ b/Week5/deployment-nginx.yaml @@ -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 diff --git a/Week5/nginx-pod-with-ubuntu.yaml b/Week5/nginx-pod-with-ubuntu.yaml new file mode 100644 index 0000000..7a69e52 --- /dev/null +++ b/Week5/nginx-pod-with-ubuntu.yaml @@ -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"] \ No newline at end of file diff --git a/Week5/nginx-pod.yaml b/Week5/nginx-pod.yaml new file mode 100644 index 0000000..fb2d437 --- /dev/null +++ b/Week5/nginx-pod.yaml @@ -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