ArgoCD Deployment

This commit is contained in:
2026-09-28 19:28:51 +01:00
parent 9bc0bce407
commit f487d5e7c1
8 changed files with 225 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
# Lives on the HUB, in the agent's namespace. The argocd-agent pushes it to the spoke.
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: demo-vivek-11
namespace: apps-lab
spec:
project: apps-lab
source:
repoURL: https://gitea.kyndemo.live/validate/demo-vivek-11.git
targetRevision: main
path: deploy/manifests
destination:
# name, never server: server https://kubernetes.default.svc resolves to the hub itself.
name: apps-lab
namespace: demo-vivek-11
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true

View File

@@ -0,0 +1,19 @@
# Scopes Applications in the apps-lab namespace to the apps-lab spoke. Lives on the HUB, in argocd.
apiVersion: argoproj.io/v1alpha1
kind: AppProject
metadata:
name: apps-lab
namespace: argocd
spec:
description: Workloads delivered to the apps-lab spoke
# Without this, Argo CD refuses Applications that live in the apps-lab namespace.
sourceNamespaces:
- apps-lab
sourceRepos:
- https://gitea.kyndemo.live/validate/demo-vivek-11.git
destinations:
- name: apps-lab
namespace: "*"
clusterResourceWhitelist:
- group: ""
kind: Namespace