REFACTOR(repo): migrate to Helm chart structure
- Add web-app Helm chart in charts/web-app/ - Replace individual deployment/service/ingress YAML with helm-values - Update ArgoCD applications to use Helm chart with values files - Reduces per-app files from 6 to 2 (argocd.yaml + helm-values.yaml) Apps migrated: jaejadle, jaejadle-dev, joossam, joossam-dev, jotion, jovies, portfolio, todo
This commit is contained in:
81
todo/helm-values.yaml
Normal file
81
todo/helm-values.yaml
Normal file
@@ -0,0 +1,81 @@
|
||||
# Todo Web App Helm Values
|
||||
|
||||
name: todo
|
||||
|
||||
image:
|
||||
registry: ghcr.io
|
||||
repository: mayne0213/todo
|
||||
tag: latest
|
||||
pullPolicy: Always
|
||||
|
||||
# No imagePullSecrets needed (public or already configured)
|
||||
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: todo0213.kro.kr
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
- host: www.todo0213.kro.kr
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
tls:
|
||||
- secretName: todo-tls
|
||||
hosts:
|
||||
- todo0213.kro.kr
|
||||
- www.todo0213.kro.kr
|
||||
|
||||
resources:
|
||||
requests:
|
||||
memory: 50Mi
|
||||
cpu: 20m
|
||||
limits:
|
||||
memory: 120Mi
|
||||
|
||||
healthCheck:
|
||||
enabled: true
|
||||
path: /api/health
|
||||
livenessProbe:
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 10
|
||||
readinessProbe:
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 5
|
||||
|
||||
env:
|
||||
- name: NODE_ENV
|
||||
value: production
|
||||
- name: DATABASE_URL
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: todo-secrets
|
||||
key: database-url
|
||||
|
||||
externalSecret:
|
||||
enabled: true
|
||||
refreshInterval: 1h
|
||||
secretStoreRef:
|
||||
name: vault-backend
|
||||
kind: ClusterSecretStore
|
||||
target:
|
||||
creationPolicy: Owner
|
||||
deletionPolicy: Retain
|
||||
data:
|
||||
- secretKey: database-url
|
||||
remoteRef:
|
||||
key: todo/prod
|
||||
property: DATABASE_URL
|
||||
Reference in New Issue
Block a user