- 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
111 lines
1.8 KiB
YAML
111 lines
1.8 KiB
YAML
# Web App Helm Chart Default Values
|
|
|
|
# Application name (used for labels, selectors, service names)
|
|
name: ""
|
|
|
|
# Image configuration
|
|
image:
|
|
registry: ghcr.io
|
|
repository: mayne0213/app
|
|
tag: latest
|
|
pullPolicy: Always
|
|
|
|
# Image pull secrets
|
|
imagePullSecrets:
|
|
- name: ghcr-secret
|
|
|
|
# Replicas
|
|
replicaCount: 1
|
|
|
|
# Container port
|
|
containerPort: 3000
|
|
|
|
# Service configuration
|
|
service:
|
|
enabled: true
|
|
type: ClusterIP
|
|
port: 80
|
|
|
|
# Ingress configuration
|
|
ingress:
|
|
enabled: true
|
|
className: traefik
|
|
annotations:
|
|
cert-manager.io/cluster-issuer: letsencrypt-prod
|
|
hosts:
|
|
- host: app.example.com
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
tls:
|
|
- secretName: app-tls
|
|
hosts:
|
|
- app.example.com
|
|
|
|
# Resources
|
|
resources:
|
|
requests:
|
|
memory: 80Mi
|
|
cpu: 20m
|
|
limits:
|
|
memory: 200Mi
|
|
|
|
# Health checks
|
|
healthCheck:
|
|
enabled: true
|
|
path: /
|
|
livenessProbe:
|
|
initialDelaySeconds: 30
|
|
periodSeconds: 10
|
|
readinessProbe:
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 5
|
|
|
|
# Environment variables (plain)
|
|
env: []
|
|
# - name: NODE_ENV
|
|
# value: production
|
|
|
|
# Environment variables from secrets
|
|
envFrom: []
|
|
# - secretRef:
|
|
# name: app-secrets
|
|
|
|
# External Secrets configuration
|
|
externalSecret:
|
|
enabled: false
|
|
refreshInterval: 1h
|
|
secretStoreRef:
|
|
name: vault-backend
|
|
kind: ClusterSecretStore
|
|
target:
|
|
creationPolicy: Owner
|
|
deletionPolicy: Retain
|
|
data: []
|
|
# - secretKey: DATABASE_URL
|
|
# remoteRef:
|
|
# key: myapp
|
|
# property: DATABASE_URL
|
|
|
|
# Deployment strategy
|
|
strategy:
|
|
type: RollingUpdate
|
|
rollingUpdate:
|
|
maxUnavailable: 0
|
|
maxSurge: 1
|
|
|
|
# Revision history
|
|
revisionHistoryLimit: 3
|
|
|
|
# Pod annotations
|
|
podAnnotations: {}
|
|
|
|
# Node selector
|
|
nodeSelector: {}
|
|
|
|
# Tolerations
|
|
tolerations: []
|
|
|
|
# Affinity
|
|
affinity: {}
|