- 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
18 lines
429 B
YAML
18 lines
429 B
YAML
{{- if .Values.service.enabled }}
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ include "web-app.fullname" . }}
|
|
labels:
|
|
{{- include "web-app.labels" . | nindent 4 }}
|
|
spec:
|
|
type: {{ .Values.service.type }}
|
|
ports:
|
|
- name: http
|
|
port: {{ .Values.service.port }}
|
|
targetPort: {{ .Values.containerPort }}
|
|
protocol: TCP
|
|
selector:
|
|
{{- include "web-app.selectorLabels" . | nindent 4 }}
|
|
{{- end }}
|