From b972752d7fc51c2a1a3d16c80a59d6ab5d50664b Mon Sep 17 00:00:00 2001 From: Darren Maverick Date: Sat, 25 Jul 2026 13:45:53 +0700 Subject: [PATCH] add steven nginx --- apps/steven.yaml.yaml | 38 ++++++++++++++++++++++++++++++++++++++ steven/dev/values.yaml | 11 +++++++++++ 2 files changed, 49 insertions(+) create mode 100644 apps/steven.yaml.yaml create mode 100644 steven/dev/values.yaml diff --git a/apps/steven.yaml.yaml b/apps/steven.yaml.yaml new file mode 100644 index 0000000..a52edbe --- /dev/null +++ b/apps/steven.yaml.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: 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/steven/dev/values.yaml + destination: + server: https://kubernetes.default.svc + namespace: dev + syncPolicy: + automated: + prune: true + selfHeal: true + syncOptions: + - CreateNamespace=true diff --git a/steven/dev/values.yaml b/steven/dev/values.yaml new file mode 100644 index 0000000..3c265b0 --- /dev/null +++ b/steven/dev/values.yaml @@ -0,0 +1,11 @@ +name: steven +image: + repository: nginx + tag: latest +replicas: 1 +containerPort: 80 +ingress: + host: steven-nginx.dev.lgkentang.com + path: / # catch-all → frontend + tls: true # ← FE issues the cert for this host + clusterIssuer: letsencrypt-prod \ No newline at end of file