add build, deploy protytpe

This commit is contained in:
hiondal
2025-10-31 13:28:31 +09:00
parent db16306b06
commit 2843aee207
7 changed files with 554 additions and 0 deletions
+42
View File
@@ -0,0 +1,42 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: hgzero-uiux-prototype
namespace: hgzero
labels:
app: hgzero-uiux-prototype
tier: frontend
version: v1.0.0
spec:
replicas: 1
selector:
matchLabels:
app: hgzero-uiux-prototype
template:
metadata:
labels:
app: hgzero-uiux-prototype
tier: frontend
version: v1.0.0
spec:
containers:
- name: nginx
image: acrdigitalgarage02.azurecr.io/hgzero-uiux-prototype:latest
imagePullPolicy: IfNotPresent
ports:
- containerPort: 80
name: http
protocol: TCP
resources:
requests:
cpu: 50m
memory: 64Mi
limits:
cpu: 200m
memory: 128Mi
env:
- name: TZ
value: "Asia/Seoul"
restartPolicy: Always
terminationGracePeriodSeconds: 5
+42
View File
@@ -0,0 +1,42 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: hgzero-uiux-prototype
namespace: hgzero
labels:
app: hgzero-uiux-prototype
tier: frontend
component: prototype
annotations:
# Nginx Ingress Controller 설정
# rewrite-target 제거: Pod 내부 nginx가 직접 처리하도록
nginx.ingress.kubernetes.io/ssl-redirect: "false"
# CORS 설정 (필요시 활성화)
# nginx.ingress.kubernetes.io/enable-cors: "true"
# nginx.ingress.kubernetes.io/cors-allow-methods: "GET, OPTIONS"
# nginx.ingress.kubernetes.io/cors-allow-origin: "*"
# 타임아웃 설정
nginx.ingress.kubernetes.io/proxy-connect-timeout: "30"
nginx.ingress.kubernetes.io/proxy-send-timeout: "30"
nginx.ingress.kubernetes.io/proxy-read-timeout: "30"
# 버퍼 크기 설정
nginx.ingress.kubernetes.io/proxy-body-size: "10m"
# Rate limiting (필요시 활성화)
# nginx.ingress.kubernetes.io/limit-rps: "10"
spec:
ingressClassName: nginx
rules:
- host: prototype.hgzero.kubepia.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: hgzero-uiux-prototype
port:
number: 80
+19
View File
@@ -0,0 +1,19 @@
apiVersion: v1
kind: Service
metadata:
name: hgzero-uiux-prototype
namespace: hgzero
labels:
app: hgzero-uiux-prototype
tier: frontend
spec:
type: NodePort
selector:
app: hgzero-uiux-prototype
ports:
- name: http
protocol: TCP
port: 80
targetPort: 80
nodePort: 30080
sessionAffinity: None