feat(helm): Trying to use a local Helm chart

This commit is contained in:
Vegard Hagen
2023-04-10 13:08:04 +02:00
parent f906558832
commit 1c6e0c6c99
11 changed files with 107 additions and 60 deletions
+11
View File
@@ -0,0 +1,11 @@
namespace: arr
env:
- name: PUID
value: "1000"
- name: PGID
value: "1000"
- name: TZ
value: Europe/Oslo
auth:
enabled: true
create: false
+1 -1
View File
@@ -8,4 +8,4 @@ resources:
- prowlarr
- sonarr
- radarr
- lidarr.yaml
- lidarr.yaml
+4 -14
View File
@@ -8,13 +8,11 @@ metadata:
spec:
project: applications
source:
path: helm/application
repoURL: https://github.com/vehagn/homelab
targetRevision: HEAD
path: helm/application
helm:
values: |
values: |-
name: lidarr
namespace: arr
image:
name: lscr.io/linuxserver/lidarr
hostVolumes:
@@ -24,18 +22,10 @@ spec:
- name: media-data
hostPath: /disk/data
mountPath: /app/data
env:
- name: PUID
value: "1000"
- name: PGID
value: "1000"
- name: TZ
value: Europe/Oslo
service:
containerPort: 8686
auth:
enabled: true
create: false
valueFiles:
- ../../apps/arr/common-values.yaml
destination:
namespace: arr
name: in-cluster
+3 -1
View File
@@ -6,8 +6,10 @@ metadata:
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: app-of-apps
project: applications
source:
plugin:
name: kustomize-build-with-helm
path: apps/test
repoURL: https://github.com/vehagn/homelab
targetRevision: HEAD
+6 -12
View File
@@ -1,27 +1,21 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: test-app1
name: app1
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: applications
source:
path: helm/application
repoURL: https://github.com/vehagn/homelab
targetRevision: HEAD
path: helm/application
helm:
values: |
values: |-
name: app1
namespace: test
image:
name: containous/whoami
service:
containerPort: 80
auth:
enabled: true
create: false
replicas: 3
valueFiles:
- ../../apps/test/common-values.yaml
destination:
namespace: test
name: in-cluster
+12 -16
View File
@@ -1,27 +1,23 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: test-app2
name: app2
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: applications
source:
path: helm/application
repoURL: https://github.com/vehagn/homelab
targetRevision: HEAD
helm:
values: |
name: app2
namespace: test
image:
name: containous/whoami
service:
containerPort: 80
auth:
enabled: true
create: false
sources:
- repoURL: https://github.com/vehagn/homelab
path: helm/application
helm:
parameters:
- name: name
value: app2
valueFiles:
- $values/apps/test/common-values.yaml
- repoURL: https://github.com/vehagn/homelab
ref: values
destination:
namespace: test
name: in-cluster
+29
View File
@@ -0,0 +1,29 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: app3
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: applications
sources:
- repoURL: https://github.com/vehagn/homelab
path: helm/application
helm:
parameters:
- name: name
value: app3
valueFiles:
- $values/apps/test/common-values.yaml
- repoURL: https://github.com/vehagn/homelab
ref: values
destination:
namespace: test
name: in-cluster
syncPolicy:
automated:
selfHeal: true
prune: true
syncOptions:
- CreateNamespace=true
+8
View File
@@ -0,0 +1,8 @@
name: auth
namespace: test
authOnly: true
auth:
host: auth-test
whitelist:
- [email protected]
- [email protected]
+9 -15
View File
@@ -1,26 +1,20 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: test-auth
name: auth
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: applications
source:
path: helm/application
repoURL: https://github.com/vehagn/homelab
targetRevision: HEAD
helm:
values: |
name: test-auth
namespace: test
authOnly: true
auth:
host: auth-test
whitelist:
- [email protected]
- [email protected]
sources:
- repoURL: https://github.com/vehagn/homelab
path: helm/application
helm:
valueFiles:
- $values/apps/test/auth-values.yaml
- repoURL: https://github.com/vehagn/homelab
ref: values
destination:
namespace: test
name: in-cluster
+9
View File
@@ -0,0 +1,9 @@
name: app
namespace: test
image:
name: containous/whoami
service:
containerPort: 80
auth:
enabled: true
create: false
+15 -1
View File
@@ -4,4 +4,18 @@ kind: Kustomization
resources:
- app1.yaml
- app2.yaml
- auth.yaml
- app3.yaml
- auth.yaml
#helmGlobals:
# chartHome: ../../helm
#
#helmCharts:
# - name: application
# valuesFile: auth.yaml
# - name: application
# valuesFile: app1.yaml
# - name: application
# valuesFile: app2.yaml
# - name: application
# valuesFile: app3.yaml