refactor(argocd): split bootstrap files
- rename bootstrap files for clarification - remove project and application from argocd-apps values - add new YAML for project configuration - add new YAML for application configuration
This commit is contained in:
parent
1e3c674e89
commit
24e08ab096
5 changed files with 54 additions and 50 deletions
|
@ -1,50 +0,0 @@
|
||||||
---
|
|
||||||
apiVersion: helm.cattle.io/v1
|
|
||||||
kind: HelmChart
|
|
||||||
metadata:
|
|
||||||
name: argocd-apps
|
|
||||||
namespace: kube-system
|
|
||||||
spec:
|
|
||||||
# do not change order! (needed for renovate)
|
|
||||||
chart: argocd-apps
|
|
||||||
repo: https://argoproj.github.io/argo-helm
|
|
||||||
version: 2.0.0
|
|
||||||
targetNamespace: argocd
|
|
||||||
valuesContent: |-
|
|
||||||
projects:
|
|
||||||
baseline:
|
|
||||||
namespace: argocd
|
|
||||||
finalizers:
|
|
||||||
- resources-finalizer.argocd.argoproj.io
|
|
||||||
sourceRepos:
|
|
||||||
- '*'
|
|
||||||
destinations:
|
|
||||||
- namespace: '*'
|
|
||||||
server: '*'
|
|
||||||
clusterResourceWhitelist:
|
|
||||||
- group: '*'
|
|
||||||
kind: '*'
|
|
||||||
applications:
|
|
||||||
baseline:
|
|
||||||
project: baseline
|
|
||||||
finalizers:
|
|
||||||
- resources-finalizer.argocd.argoproj.io
|
|
||||||
source:
|
|
||||||
repoURL: 'https://git.smsvc.net/k8s/baseline.git'
|
|
||||||
targetRevision: HEAD
|
|
||||||
path: manifests/
|
|
||||||
directory:
|
|
||||||
recurse: true
|
|
||||||
destination:
|
|
||||||
server: 'https://kubernetes.default.svc'
|
|
||||||
namespace: argocd
|
|
||||||
syncPolicy:
|
|
||||||
automated:
|
|
||||||
prune: true
|
|
||||||
selfHeal: true
|
|
||||||
retry:
|
|
||||||
limit: 5
|
|
||||||
backoff:
|
|
||||||
duration: 5s
|
|
||||||
factor: 2
|
|
||||||
maxDuration: 5m
|
|
12
argocd-bootstrap/002-helm-argocd-apps.yml
Normal file
12
argocd-bootstrap/002-helm-argocd-apps.yml
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
---
|
||||||
|
apiVersion: helm.cattle.io/v1
|
||||||
|
kind: HelmChart
|
||||||
|
metadata:
|
||||||
|
name: argocd-apps
|
||||||
|
namespace: kube-system
|
||||||
|
spec:
|
||||||
|
# do not change order! (needed for renovate)
|
||||||
|
chart: argocd-apps
|
||||||
|
repo: https://argoproj.github.io/argo-helm
|
||||||
|
version: 2.0.0
|
||||||
|
targetNamespace: argocd
|
17
argocd-bootstrap/003-baseline-project.yml
Normal file
17
argocd-bootstrap/003-baseline-project.yml
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
---
|
||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: AppProject
|
||||||
|
metadata:
|
||||||
|
name: baseline
|
||||||
|
namespace: argocd
|
||||||
|
finalizers:
|
||||||
|
- resources-finalizer.argocd.argoproj.io
|
||||||
|
spec:
|
||||||
|
sourceRepos:
|
||||||
|
- '*'
|
||||||
|
destinations:
|
||||||
|
- namespace: '*'
|
||||||
|
server: '*'
|
||||||
|
clusterResourceWhitelist:
|
||||||
|
- group: '*'
|
||||||
|
kind: '*'
|
25
argocd-bootstrap/004-baseline-app.yml
Normal file
25
argocd-bootstrap/004-baseline-app.yml
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
---
|
||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: baseline
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
project: baseline
|
||||||
|
source:
|
||||||
|
repoURL: 'https://git.smsvc.net/k8s/baseline.git'
|
||||||
|
targetRevision: HEAD
|
||||||
|
path: manifests/
|
||||||
|
directory:
|
||||||
|
recurse: true
|
||||||
|
destination:
|
||||||
|
server: 'https://kubernetes.default.svc'
|
||||||
|
namespace: argocd
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
|
retry:
|
||||||
|
backoff:
|
||||||
|
duration: 15s
|
||||||
|
maxDuration: 30m
|
Loading…
Reference in a new issue