Files
web-apps/portfolio/deployment.yaml
Mayne0213 ebeb9945db INIT(repo): add jovies, portfolio, todo apps
- Add ArgoCD Application definitions for each app
- Add Kubernetes Deployment, Service, Ingress for each app
- Add ExternalSecret for todo (Vault integration)
- Configure Traefik ingress with Let's Encrypt TLS

Domains:
- jovies.kro.kr
- minjo0213.kro.kr
- todo0213.kro.kr
2026-01-05 01:55:49 +09:00

54 lines
1.1 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: portfolio
labels:
app: portfolio
spec:
replicas: 1
selector:
matchLabels:
app: portfolio
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 0
maxSurge: 1
revisionHistoryLimit: 3
template:
metadata:
labels:
app: portfolio
spec:
containers:
- name: portfolio
image: ghcr.io/mayne0213/portfolio:latest
imagePullPolicy: Always
ports:
- containerPort: 3000
protocol: TCP
env:
- name: NODE_ENV
value: production
- name: PROMETHEUS_URL
value: http://prometheus.prometheus.svc.cluster.local:9090
resources:
requests:
memory: 80Mi
cpu: 20m
limits:
memory: 150Mi
livenessProbe:
httpGet:
path: /
port: 3000
initialDelaySeconds: 30
periodSeconds: 10
readinessProbe:
httpGet:
path: /
port: 3000
initialDelaySeconds: 5
periodSeconds: 5
restartPolicy: Always