mirror of
https://github.com/ktds-dg0501/kt-event-marketing.git
synced 2025-12-06 13:26:23 +00:00
- GitHub Actions workflow로 백엔드 서비스 자동 빌드/배포 구성 - Kustomize를 통한 dev/staging/prod 환경별 설정 관리 - 각 마이크로서비스별 Dockerfile 추가 - 배포 자동화 스크립트 및 환경 변수 설정 - CI/CD 가이드 문서 작성
63 lines
1.7 KiB
YAML
63 lines
1.7 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: distribution-service
|
|
labels:
|
|
app: distribution-service
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: distribution-service
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: distribution-service
|
|
spec:
|
|
imagePullSecrets:
|
|
- name: kt-event-marketing
|
|
containers:
|
|
- name: distribution-service
|
|
image: acrdigitalgarage01.azurecr.io/kt-event-marketing/distribution-service:latest
|
|
imagePullPolicy: Always
|
|
ports:
|
|
- containerPort: 8085
|
|
name: http
|
|
envFrom:
|
|
- configMapRef:
|
|
name: cm-common
|
|
- configMapRef:
|
|
name: cm-distribution-service
|
|
- secretRef:
|
|
name: secret-common
|
|
- secretRef:
|
|
name: secret-distribution-service
|
|
resources:
|
|
requests:
|
|
cpu: "256m"
|
|
memory: "256Mi"
|
|
limits:
|
|
cpu: "1024m"
|
|
memory: "1024Mi"
|
|
startupProbe:
|
|
httpGet:
|
|
path: /actuator/health
|
|
port: 8085
|
|
initialDelaySeconds: 30
|
|
periodSeconds: 10
|
|
failureThreshold: 30
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /actuator/health/readiness
|
|
port: 8085
|
|
initialDelaySeconds: 10
|
|
periodSeconds: 5
|
|
failureThreshold: 3
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /actuator/health/liveness
|
|
port: 8085
|
|
initialDelaySeconds: 30
|
|
periodSeconds: 10
|
|
failureThreshold: 3
|