Add Gitea to applications layer

This commit is contained in:
Khue Doan 2021-08-23 00:03:11 +07:00
parent eeb387a4f0
commit 5a01dba65e
5 changed files with 41 additions and 30 deletions

View File

@ -0,0 +1,7 @@
apiVersion: v2
name: gitea
version: 4.0.3
dependencies:
- name: gitea
version: 4.0.3
repository: https://dl.gitea.io/charts/

View File

@ -0,0 +1,5 @@
gitea:
ingress:
enabled: true
hosts:
- host: git.khuedoan.com

View File

@ -1,29 +0,0 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: gitea
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
destination:
name: in-cluster
namespace: gitea
server: ''
source:
path: ''
repoURL: 'https://dl.gitea.io/charts/'
targetRevision: 2.2.5
chart: gitea
helm:
parameters:
- name: 'ingress.enabled'
value: 'true'
- name: 'ingress.hosts[0]'
value: git.khuedoan.com
project: default
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true

View File

@ -0,0 +1,28 @@
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: applications
spec:
generators:
- git:
repoURL: https://github.com/khuedoan/homelab.git
revision: master
directories:
- path: applications/*
template:
metadata:
name: '{{path.basename}}'
spec:
destination:
name: in-cluster
namespace: '{{path.basename}}'
project: default
source:
repoURL: https://github.com/khuedoan/homelab.git
path: '{{path}}'
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true

View File

@ -6,6 +6,6 @@ resources:
- applicationsets/bootstrap.yaml
- applicationsets/system.yaml
- applicationsets/operations.yaml
# - applicationsets/applications.yaml
- applicationsets/applications.yaml
namespace: argocd