test
This commit is contained in:
@@ -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"
|
||||
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user