init
This commit is contained in:
5
argocd/apps/local/vcluster/Chart.yaml
Normal file
5
argocd/apps/local/vcluster/Chart.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
apiVersion: v2
|
||||
name: my-argocd-app
|
||||
description: A Helm chart to deploy Argo CD applications
|
||||
version: 0.1.0
|
||||
appVersion: "1.16.0"
|
||||
26
argocd/apps/local/vcluster/templates/application.yaml
Normal file
26
argocd/apps/local/vcluster/templates/application.yaml
Normal file
@@ -0,0 +1,26 @@
|
||||
{{- range $value := .Values.applications }}
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: {{ $value.name }}
|
||||
namespace: argocd
|
||||
finalizers:
|
||||
- resources-finalizer.argocd.argoproj.io
|
||||
spec:
|
||||
destination:
|
||||
namespace: {{ $value.namespace }}
|
||||
name: {{ $value.cluster }} # Uncomment and use this line
|
||||
# server: https://kubernetes.default.svc # Alternatively, use this line
|
||||
project: default
|
||||
source:
|
||||
path: {{ $value.path }}
|
||||
repoURL: {{ $value.repoURL }}
|
||||
targetRevision: HEAD
|
||||
helm:
|
||||
valueFiles:
|
||||
- vcluster.yaml
|
||||
syncPolicy:
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
||||
---
|
||||
{{- end }}
|
||||
12
argocd/apps/local/vcluster/values.yaml
Normal file
12
argocd/apps/local/vcluster/values.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
applications:
|
||||
- name: vcluster-username
|
||||
namespace: vcluster-username
|
||||
path: vcluster-0.21.1
|
||||
cluster: in-cluster
|
||||
repoURL: http://192.168.1.10:3000/admin/applications
|
||||
|
||||
- name: vcluster-behrooz
|
||||
namespace: vcluster-behrooz
|
||||
path: vcluster-0.21.1
|
||||
cluster: in-cluster
|
||||
repoURL: http://192.168.1.10:3000/admin/applications
|
||||
Reference in New Issue
Block a user