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:
2026-01-06 01:04:43 +09:00
parent 5e0b33d44f
commit 128ab8cdb7
59 changed files with 962 additions and 968 deletions

View File

@@ -10,7 +10,13 @@ spec:
sources:
- repoURL: https://github.com/K3S-HOME/web-apps.git
targetRevision: main
path: jovies
path: charts/web-app
helm:
valueFiles:
- $values/jovies/helm-values.yaml
- repoURL: https://github.com/K3S-HOME/web-apps.git
targetRevision: main
ref: values
destination:
server: https://kubernetes.default.svc
namespace: jovies

View File

@@ -1,51 +0,0 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: jovies
labels:
app: jovies
spec:
replicas: 1
selector:
matchLabels:
app: jovies
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 0
maxSurge: 1
revisionHistoryLimit: 3
template:
metadata:
labels:
app: jovies
spec:
containers:
- name: jovies
image: ghcr.io/mayne0213/jovies:latest
imagePullPolicy: Always
ports:
- containerPort: 3000
protocol: TCP
env:
- name: NODE_ENV
value: production
resources:
requests:
memory: 40Mi
cpu: 5m
limits:
memory: 100Mi
livenessProbe:
httpGet:
path: /
port: 3000
initialDelaySeconds: 30
periodSeconds: 10
readinessProbe:
httpGet:
path: /
port: 3000
initialDelaySeconds: 5
periodSeconds: 5
restartPolicy: Always

63
jovies/helm-values.yaml Normal file
View File

@@ -0,0 +1,63 @@
# Jovies Web App Helm Values
name: jovies
image:
registry: ghcr.io
repository: mayne0213/jovies
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: jovies.kro.kr
paths:
- path: /
pathType: Prefix
- host: www.jovies.kro.kr
paths:
- path: /
pathType: Prefix
tls:
- secretName: jovies-tls
hosts:
- jovies.kro.kr
- www.jovies.kro.kr
resources:
requests:
memory: 40Mi
cpu: 5m
limits:
memory: 100Mi
healthCheck:
enabled: true
path: /
livenessProbe:
initialDelaySeconds: 30
periodSeconds: 10
readinessProbe:
initialDelaySeconds: 5
periodSeconds: 5
env:
- name: NODE_ENV
value: production
externalSecret:
enabled: false

View File

@@ -1,34 +0,0 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: jovies-ingress
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
spec:
ingressClassName: traefik
tls:
- hosts:
- jovies.kro.kr
- www.jovies.kro.kr
secretName: jovies-tls
rules:
- host: jovies.kro.kr
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: jovies
port:
number: 80
- host: www.jovies.kro.kr
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: jovies
port:
number: 80

View File

@@ -1,7 +0,0 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: jovies
resources:
- deployment.yaml
- service.yaml
- ingress.yaml

View File

@@ -1,15 +0,0 @@
apiVersion: v1
kind: Service
metadata:
name: jovies
labels:
app: jovies
spec:
type: ClusterIP
ports:
- name: http
port: 80
targetPort: 3000
protocol: TCP
selector:
app: jovies