This commit is contained in:
lsh9672
2025-06-16 14:01:32 +09:00
commit d725cec031
22 changed files with 755 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: frontend-config
namespace: ns-hiorder
data:
# External IP 기반으로 변경
AUTH_SERVICE_URL: "http://20.249.131.89:8081"
MEMBER_SERVICE_URL: "http://20.249.131.89:8081"
STORE_SERVICE_URL: "http://20.249.163.158:8082"
REVIEW_SERVICE_URL: "http://20.249.113.225:8083"
ANALYTICS_SERVICE_URL: "http://20.249.113.195:8084"
RECOMMEND_SERVICE_URL: "http://4.217.130.203:8085"
ENVIRONMENT: "production"
+52
View File
@@ -0,0 +1,52 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: frontend-deployment
namespace: ns-hiorder
labels:
app: frontend
spec:
replicas: 1
selector:
matchLabels:
app: frontend
template:
metadata:
labels:
app: frontend
spec:
enableServiceLinks: false # 👈 추가
containers:
- name: frontend
image: acrdigitalgarage03.azurecr.io/hiorder/frontend:2506160207
ports:
- containerPort: 80
envFrom:
- configMapRef:
name: frontend-config
env:
- name: APP_VERSION
value: "1.0.0"
- name: KUBERNETES_SERVICE_HOST # 👈 추가
value: ""
- name: KUBERNETES_SERVICE_PORT # 👈 추가
value: ""
resources:
requests:
memory: "128Mi"
cpu: "100m"
limits:
memory: "256Mi"
cpu: "200m"
livenessProbe:
httpGet:
path: /health
port: 80
initialDelaySeconds: 30
periodSeconds: 10
readinessProbe:
httpGet:
path: /health
port: 80
initialDelaySeconds: 5
periodSeconds: 5
+15
View File
@@ -0,0 +1,15 @@
apiVersion: v1
kind: Service
metadata:
name: frontend-service
namespace: ns-hiorder
labels:
app: frontend
spec:
type: LoadBalancer
ports:
- port: 80
targetPort: 80
protocol: TCP
selector:
app: frontend