fix: deployment

This commit is contained in:
OhSeongRak 2025-06-17 17:48:24 +09:00
parent 2652b3a54c
commit fbfcd04758

View File

@ -1,4 +1,3 @@
# ConfigMap
apiVersion: v1 apiVersion: v1
kind: ConfigMap kind: ConfigMap
metadata: metadata:
@ -7,9 +6,11 @@ metadata:
data: data:
runtime-env.js: | runtime-env.js: |
window.__runtime_config__ = { window.__runtime_config__ = {
AUTH_URL: 'http://${ingress_host}/auth', AUTH_URL: 'http://${ingress_host}/api/auth',
CONTENT_URL: 'http://${ingress_host}/content', MEMBER_URL: 'http://${ingress_host}/api/member',
AI_URL: 'http://${ingress_host}/ai' STORE_URL: 'http://${ingress_host}/api/store',
CONTENT_URL: 'http://${ingress_host}/api/content',
RECOMMEND_URL: 'http://${ingress_host}/api/recommend'
}; };
--- ---
@ -52,16 +53,20 @@ spec:
subPath: runtime-env.js subPath: runtime-env.js
livenessProbe: livenessProbe:
httpGet: httpGet:
path: /health path: /
port: ${export_port} port: ${export_port}
initialDelaySeconds: 30 initialDelaySeconds: 30
periodSeconds: 10 periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 3
readinessProbe: readinessProbe:
httpGet: httpGet:
path: /health path: /
port: ${export_port} port: ${export_port}
initialDelaySeconds: 5 initialDelaySeconds: 5
periodSeconds: 5 periodSeconds: 5
timeoutSeconds: 3
failureThreshold: 3
volumes: volumes:
- name: runtime-config - name: runtime-config
configMap: configMap:
@ -77,10 +82,11 @@ metadata:
labels: labels:
app: smarketing-frontend app: smarketing-frontend
spec: spec:
type: ClusterIP type: LoadBalancer
ports: ports:
- port: 80 - port: 80
targetPort: ${export_port} targetPort: ${export_port}
protocol: TCP protocol: TCP
name: http
selector: selector:
app: smarketing-frontend app: smarketing-frontend