- Add startupProbe to Helm chart template - Configure 300s startup timeout (10s × 30 attempts) - Set initialDelaySeconds to 0 for liveness/readiness - Prevents pod restart loop during slow startup
70 lines
1.1 KiB
YAML
70 lines
1.1 KiB
YAML
# Portfolio Web App Helm Values
|
|
|
|
name: portfolio
|
|
|
|
image:
|
|
registry: ghcr.io
|
|
repository: mayne0213/portfolio
|
|
tag: latest
|
|
pullPolicy: Always
|
|
|
|
imagePullSecrets: []
|
|
|
|
replicaCount: 1
|
|
containerPort: 3000
|
|
|
|
service:
|
|
enabled: true
|
|
type: ClusterIP
|
|
port: 80
|
|
|
|
ingress:
|
|
enabled: true
|
|
className: traefik
|
|
annotations:
|
|
cert-manager.io/cluster-issuer: letsencrypt-prod
|
|
hosts:
|
|
- host: minjo0213.kro.kr
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
- host: www.minjo0213.kro.kr
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
tls:
|
|
- secretName: portfolio-tls
|
|
hosts:
|
|
- minjo0213.kro.kr
|
|
- www.minjo0213.kro.kr
|
|
|
|
resources:
|
|
requests:
|
|
memory: 100Mi
|
|
cpu: 25m
|
|
limits:
|
|
memory: 150Mi
|
|
cpu: 38m
|
|
|
|
healthCheck:
|
|
enabled: true
|
|
path: /
|
|
startupProbe:
|
|
periodSeconds: 10
|
|
failureThreshold: 30
|
|
livenessProbe:
|
|
initialDelaySeconds: 0
|
|
periodSeconds: 10
|
|
readinessProbe:
|
|
initialDelaySeconds: 0
|
|
periodSeconds: 5
|
|
|
|
env:
|
|
- name: NODE_ENV
|
|
value: production
|
|
- name: PROMETHEUS_URL
|
|
value: http://prometheus.prometheus.svc.cluster.local:9090
|
|
|
|
externalSecret:
|
|
enabled: false
|