From e6085cda820bec8af5719939e61836630e915cb1 Mon Sep 17 00:00:00 2001 From: darren Date: Wed, 29 Jul 2026 00:16:17 +0700 Subject: [PATCH] add fm fe --- apps/fm-fe.yaml | 38 ++++++++++++++++++++++++++++++++++++++ fm-fe/dev/values.yaml | 11 +++++++++++ 2 files changed, 49 insertions(+) create mode 100644 apps/fm-fe.yaml create mode 100644 fm-fe/dev/values.yaml diff --git a/apps/fm-fe.yaml b/apps/fm-fe.yaml new file mode 100644 index 0000000..5b1bbeb --- /dev/null +++ b/apps/fm-fe.yaml @@ -0,0 +1,38 @@ +# gitops-demo child Application — now Helm-based, using the shared chart. +# +# MULTI-SOURCE explained: ArgoCD lets an Application pull from more than one +# source. We use two, BOTH pointing at this same manifest repo: +# 1. ref: values — exposes the repo as "$values" so we can reference a file +# from it (the per-service values.yaml). +# 2. path: charts/app — the generic chart, rendered with that values file. +# This keeps the chart shared and each service's values in its own clean file, +# instead of duplicating manifests or inlining values here. +# +# NOTE: replace REPLACE_WITH_MANIFEST_REPO_URL in BOTH sources with the real +# repo URL (same as before — ArgoCD reads these straight from git). +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: fm-fe + namespace: argocd +spec: + project: default + sources: + - repoURL: https://gitea.lgkentang.com/darren.maverick/k3s-manifests.git + targetRevision: HEAD + ref: values + - repoURL: https://gitea.lgkentang.com/darren.maverick/k3s-manifests.git + targetRevision: HEAD + path: charts/app + helm: + valueFiles: + - $values/fm-fe/dev/values.yaml + destination: + server: https://kubernetes.default.svc + namespace: dev + syncPolicy: + automated: + prune: true + selfHeal: true + syncOptions: + - CreateNamespace=true diff --git a/fm-fe/dev/values.yaml b/fm-fe/dev/values.yaml new file mode 100644 index 0000000..53848cb --- /dev/null +++ b/fm-fe/dev/values.yaml @@ -0,0 +1,11 @@ +name: fm-fe +image: + repository: mybitlab/wfm + tag: fe-dev +replicas: 2 +containerPort: 3000 # whatever port your API listens on +ingress: + host: fm.dev.lgkentang.com + path: / # API traffic → backend + tls: true + clusterIssuer: letsencrypt-prod