set up repo with first app
This commit is contained in:
parent
2d416d2482
commit
a2f3587ce0
10 changed files with 276 additions and 0 deletions
5
apps-root-config/bootstrap/Chart.yaml
Normal file
5
apps-root-config/bootstrap/Chart.yaml
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
apiVersion: "v2"
|
||||
name: "bootstrap"
|
||||
version: "0.1.0"
|
||||
description: "Bootstrap Chart for Argo CD App of Apps"
|
24
apps-root-config/bootstrap/templates/argo-application.yaml
Normal file
24
apps-root-config/bootstrap/templates/argo-application.yaml
Normal file
|
@ -0,0 +1,24 @@
|
|||
{{- range .Values.bootstrap -}}
|
||||
---
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: {{ .name }}-apps
|
||||
namespace: {{ default "argocd-system" $.Values.argocdNamespace }}
|
||||
spec:
|
||||
destination:
|
||||
namespace: {{ default "argocd-system" $.Values.argocdNamespace }}
|
||||
server: https://kubernetes.default.svc
|
||||
project: default
|
||||
source:
|
||||
helm:
|
||||
valueFiles:
|
||||
- "{{ .name }}.yaml"
|
||||
path: apps-root-config/applications
|
||||
repoURL: {{ $.Values.repository }}
|
||||
targetRevision: HEAD
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
||||
{{ end }}
|
4
apps-root-config/bootstrap/values.yaml
Normal file
4
apps-root-config/bootstrap/values.yaml
Normal file
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
repository: "https://rievo.dev/rievo/k8s-cluster-aegir.gi"
|
||||
bootstrap:
|
||||
- name: cluster-apps-of-apps
|
Loading…
Add table
Add a link
Reference in a new issue