mirror of
https://github.com/cna-bootcamp/phonebill.git
synced 2025-12-06 08:06:24 +00:00
- 공통 매니페스트: Image Pull Secret, Ingress, ConfigMap, Secret - 서비스별 매니페스트: user-service, bill-service, product-service, api-gateway, kos-mock - 환경변수 매핑 테이블 작성 및 검증 완료 - 배포 가이드 및 트러블슈팅 문서 포함 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
60 lines
1.4 KiB
YAML
60 lines
1.4 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: user-service
|
|
namespace: phonebill-dev
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: user-service
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: user-service
|
|
spec:
|
|
imagePullSecrets:
|
|
- name: phonebill
|
|
containers:
|
|
- name: user-service
|
|
image: acrdigitalgarage01.azurecr.io/phonebill/user-service:latest
|
|
imagePullPolicy: Always
|
|
ports:
|
|
- containerPort: 8081
|
|
envFrom:
|
|
- configMapRef:
|
|
name: cm-common
|
|
- configMapRef:
|
|
name: cm-user-service
|
|
- secretRef:
|
|
name: secret-common
|
|
- secretRef:
|
|
name: secret-user-service
|
|
resources:
|
|
requests:
|
|
cpu: "256m"
|
|
memory: "256Mi"
|
|
limits:
|
|
cpu: "1024m"
|
|
memory: "1024Mi"
|
|
startupProbe:
|
|
httpGet:
|
|
path: /actuator/health
|
|
port: 8081
|
|
initialDelaySeconds: 30
|
|
periodSeconds: 10
|
|
failureThreshold: 30
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /actuator/health/readiness
|
|
port: 8081
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 5
|
|
failureThreshold: 3
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /actuator/health/liveness
|
|
port: 8081
|
|
initialDelaySeconds: 60
|
|
periodSeconds: 30
|
|
failureThreshold: 3 |