add scuderia fe+be (path-based routing)

This commit is contained in:
2026-07-19 22:20:57 +07:00
parent 8cde76ff69
commit 50179f234a
7 changed files with 81 additions and 12 deletions

View File

@@ -13,7 +13,7 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: scuderia
name: scuderia-fe
namespace: argocd
spec:
project: default
@@ -26,7 +26,7 @@ spec:
path: charts/app
helm:
valueFiles:
- $values/scuderia/dev/values.yaml
- $values/scuderia-be/dev/values.yaml
destination:
server: https://kubernetes.default.svc
namespace: dev

38
apps/scuderia-fe.yaml Normal file
View File

@@ -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: scuderia-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/scuderia-fe/dev/values.yaml
destination:
server: https://kubernetes.default.svc
namespace: dev
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true