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
View File
+52
View File
@@ -0,0 +1,52 @@
# store-deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: store
namespace: ns-hiorder
spec:
replicas: 1
selector:
matchLabels:
app: store
template:
metadata:
labels:
app: store
spec:
enableServiceLinks: false
containers:
- name: store
image: acrdigitalgarage03.azurecr.io/hiorder/store:2506160225
ports:
- containerPort: 8082
env:
# Spring Boot 설정
- name: SPRING_PROFILES_ACTIVE
value: "common"
- name: JAVA_OPTS
value: "-Xms512m -Xmx1024m"
# Redis 연결 설정
- name: REDIS_HOST
value: "redis-service.ns-hiorder.svc.cluster.local"
- name: REDIS_PORT
value: "6379"
# JPA 설정
- name: JPA_DDL_AUTO
value: "update"
- name: JPA_SHOW_SQL
value: "false"
resources:
requests:
memory: "512Mi"
cpu: "250m"
limits:
memory: "1024Mi"
cpu: "500m"
securityContext:
allowPrivilegeEscalation: false
runAsNonRoot: true
runAsUser: 1000
capabilities:
drop:
- ALL
+16
View File
@@ -0,0 +1,16 @@
apiVersion: v1
kind: Service
metadata:
name: store-service
namespace: ns-hiorder
labels:
app: store
spec:
type: LoadBalancer
ports:
- port: 8082
targetPort: 8082
protocol: TCP
name: http
selector:
app: store