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