ArgoCD Deployment
This commit is contained in:
22
deploy/argocd/application.yaml
Normal file
22
deploy/argocd/application.yaml
Normal 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
|
||||
19
deploy/argocd/appproject.yaml
Normal file
19
deploy/argocd/appproject.yaml
Normal 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
|
||||
Reference in New Issue
Block a user