From dc5471054aaec41169816190e19378ab22297f93 Mon Sep 17 00:00:00 2001 From: TakahashiNg <83152264+TakahashiNguyen@users.noreply.github.com> Date: Fri, 27 Mar 2026 04:18:33 +0000 Subject: [PATCH] chore: add k8s config --- k8s.yaml | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 k8s.yaml diff --git a/k8s.yaml b/k8s.yaml new file mode 100644 index 0000000..e6b77f5 --- /dev/null +++ b/k8s.yaml @@ -0,0 +1,42 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: drinkool_frontend + labels: + app: web +spec: + replicas: 1 + selector: + matchLabels: + app: web + template: + metadata: + labels: + app: web + spec: + containers: + - name: nginx-container + image: nginx:latest + ports: + - containerPort: 80 + resources: + limits: + cpu: "50m" + memory: "32Mi" + requests: + cpu: "10m" + memory: "16Mi" +--- +apiVersion: v1 +kind: Service +metadata: + name: my-web-service +spec: + type: NodePort + selector: + app: web + ports: + - protocol: TCP + port: 80 + targetPort: 80 + nodePort: 30080 \ No newline at end of file