Compare commits
101 Commits
eab4de44ac
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| c5ffac41ce | |||
| bb09fdb3d2 | |||
| 631c142475 | |||
| d49317ef58 | |||
| ac5c7a83ee | |||
| 742a042b1e | |||
| cc926cd2fc | |||
| 6ef197ceae | |||
| 8e5e8492b1 | |||
| 6f2ca22f89 | |||
| f0552c9548 | |||
| 3e00bef7fa | |||
| d8029652d1 | |||
| d11b156f15 | |||
| 854f936c13 | |||
| 88e49484bb | |||
| d72e29ff16 | |||
| 3bbb2f8240 | |||
| c84b0cd754 | |||
| b0b300073f | |||
| 4c8e4fdda8 | |||
| 33ae8790bc | |||
| ef882de1d8 | |||
| 975319c401 | |||
| 08359d4642 | |||
| 7924303a33 | |||
| 4092438f95 | |||
| 180b147897 | |||
| beaf854645 | |||
| c06b8bf2f3 | |||
| 71d8aa9fc5 | |||
| b648b0fc49 | |||
| 5ffcfa4039 | |||
| d083169e65 | |||
| 661abbce61 | |||
| d6c0a3c548 | |||
| 05f4d90f56 | |||
| 9ac2647482 | |||
| a3fa03c9f3 | |||
| d3cb5b4365 | |||
| 277ea22a82 | |||
| 529ebc8095 | |||
| 70118e5aeb | |||
| 7250745e1b | |||
| 4bcde27ac1 | |||
| b2cb0216d8 | |||
| 861b2053c1 | |||
| 06857a895c | |||
| f9bc508d58 | |||
| c362721538 | |||
| e2d372571c | |||
| a857624a05 | |||
| 08aad1ca8c | |||
| 309d61aa78 | |||
| 0f38692cb2 | |||
| c42fd89401 | |||
| 820e802cf5 | |||
| aced9ae111 | |||
| e3225f7857 | |||
| 8984a8d724 | |||
| f760fb39fa | |||
| e7499cca2e | |||
| 27eb541988 | |||
| 2830fc02ea | |||
| cc2297d2ac | |||
| e6b1d93c84 | |||
| d52e217a0f | |||
| 1901e0708a | |||
| 3242d4f457 | |||
| cb4bd089fc | |||
| f84f9c6b6e | |||
| 40957575f9 | |||
| 7ad534a148 | |||
| ed9d983be2 | |||
| c708493095 | |||
| 0dea2b2499 | |||
| f370d89d61 | |||
| e7f7665733 | |||
| 881245657d | |||
| 3637c12f41 | |||
| 81fdbc130c | |||
| 2d58d848db | |||
| cb43e2332f | |||
| d870497573 | |||
| f3a230c0eb | |||
| 225fa64f39 | |||
| 64600c00b1 | |||
| 2a81a080f1 | |||
| 451d8cd8ba | |||
| 6654cf081c | |||
| 462ebc4af7 | |||
| 29161da328 | |||
| 008a6d1374 | |||
| 1a9babcf15 | |||
| ec1e6f5f00 | |||
| a84c4f333a | |||
| ee33ea6492 | |||
| 222ac5285d | |||
| db8ef4c8da | |||
| ee0a59ecf9 | |||
| a8a74d42ef |
@@ -2,4 +2,5 @@ apiVersion: v2
|
|||||||
name: immich-argocd-apps
|
name: immich-argocd-apps
|
||||||
description: A Helm chart for deploying Immich as an ArgoCD app
|
description: A Helm chart for deploying Immich as an ArgoCD app
|
||||||
type: application
|
type: application
|
||||||
version: 0.1.0
|
version: 0.8.0
|
||||||
|
appVersion: v1.131.0
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ metadata:
|
|||||||
- resources-finalizer.argocd.argoproj.io
|
- resources-finalizer.argocd.argoproj.io
|
||||||
annotations:
|
annotations:
|
||||||
argocd.argoproj.io/sync-wave: "0"
|
argocd.argoproj.io/sync-wave: "0"
|
||||||
|
notifications.argoproj.io/subscribe.on-sync-succeeded.telegram: "-1002270587578"
|
||||||
spec:
|
spec:
|
||||||
project: default
|
project: default
|
||||||
source:
|
source:
|
||||||
@@ -16,6 +17,8 @@ spec:
|
|||||||
helm:
|
helm:
|
||||||
releaseName: immich
|
releaseName: immich
|
||||||
valuesObject:
|
valuesObject:
|
||||||
|
image:
|
||||||
|
tag: {{ .Chart.AppVersion }}
|
||||||
immich:
|
immich:
|
||||||
persistence:
|
persistence:
|
||||||
library:
|
library:
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ metadata:
|
|||||||
- resources-finalizer.argocd.argoproj.io
|
- resources-finalizer.argocd.argoproj.io
|
||||||
annotations:
|
annotations:
|
||||||
argocd.argoproj.io/sync-wave: "1"
|
argocd.argoproj.io/sync-wave: "1"
|
||||||
|
notifications.argoproj.io/subscribe.on-sync-succeeded.telegram: "-1002270587578"
|
||||||
spec:
|
spec:
|
||||||
project: default
|
project: default
|
||||||
source:
|
source:
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ metadata:
|
|||||||
- resources-finalizer.argocd.argoproj.io
|
- resources-finalizer.argocd.argoproj.io
|
||||||
annotations:
|
annotations:
|
||||||
argocd.argoproj.io/sync-wave: "0"
|
argocd.argoproj.io/sync-wave: "0"
|
||||||
|
notifications.argoproj.io/subscribe.on-sync-succeeded.telegram: "-1002270587578"
|
||||||
spec:
|
spec:
|
||||||
project: default
|
project: default
|
||||||
source:
|
source:
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ metadata:
|
|||||||
- resources-finalizer.argocd.argoproj.io
|
- resources-finalizer.argocd.argoproj.io
|
||||||
annotations:
|
annotations:
|
||||||
argocd.argoproj.io/sync-wave: "-1"
|
argocd.argoproj.io/sync-wave: "-1"
|
||||||
|
notifications.argoproj.io/subscribe.on-sync-succeeded.telegram: "-1002270587578"
|
||||||
spec:
|
spec:
|
||||||
project: default
|
project: default
|
||||||
source:
|
source:
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ type: application
|
|||||||
# This is the chart version. This version number should be incremented each time you make changes
|
# This is the chart version. This version number should be incremented each time you make changes
|
||||||
# to the chart and its templates, including the app version.
|
# to the chart and its templates, including the app version.
|
||||||
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
||||||
version: 0.1.0
|
version: 0.1.1
|
||||||
|
|
||||||
# This is the version number of the application being deployed. This version number should be
|
# This is the version number of the application being deployed. This version number should be
|
||||||
# incremented each time you make changes to the application. Versions are not expected to
|
# incremented each time you make changes to the application. Versions are not expected to
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
apiVersion: networking.k8s.io/v1
|
apiVersion: networking.k8s.io/v1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
name: ts-filebrowser
|
name: ts-filebrowser-bis
|
||||||
spec:
|
spec:
|
||||||
defaultBackend:
|
defaultBackend:
|
||||||
service:
|
service:
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{{- if .Values.certManager.enabled -}}
|
{{- if .Values.certManager.enable -}}
|
||||||
apiVersion: argoproj.io/v1alpha1
|
apiVersion: argoproj.io/v1alpha1
|
||||||
kind: Application
|
kind: Application
|
||||||
metadata:
|
metadata:
|
||||||
@@ -6,6 +6,8 @@ metadata:
|
|||||||
namespace: {{ .Values.argocd.namespace }}
|
namespace: {{ .Values.argocd.namespace }}
|
||||||
# finalizers:
|
# finalizers:
|
||||||
# - resources-finalizer.argocd.argoproj.io
|
# - resources-finalizer.argocd.argoproj.io
|
||||||
|
annotations:
|
||||||
|
notifications.argoproj.io/subscribe.on-sync-succeeded.telegram: "-1002270587578"
|
||||||
spec:
|
spec:
|
||||||
project: {{ .Values.argocd.project }}
|
project: {{ .Values.argocd.project }}
|
||||||
source:
|
source:
|
||||||
|
|||||||
@@ -6,6 +6,8 @@ metadata:
|
|||||||
namespace: {{ .Values.argocd.namespace }}
|
namespace: {{ .Values.argocd.namespace }}
|
||||||
# finalizers:
|
# finalizers:
|
||||||
# - resources-finalizer.argocd.argoproj.io
|
# - resources-finalizer.argocd.argoproj.io
|
||||||
|
annotations:
|
||||||
|
notifications.argoproj.io/subscribe.on-sync-succeeded.telegram: "-1002270587578"
|
||||||
spec:
|
spec:
|
||||||
project: {{ .Values.argocd.project }}
|
project: {{ .Values.argocd.project }}
|
||||||
source:
|
source:
|
||||||
|
|||||||
28
k3s-tooling/templates/keycloak-operator.yaml
Normal file
28
k3s-tooling/templates/keycloak-operator.yaml
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
{{- if .Values.keycloakOperator.enable -}}
|
||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: keycloak-operator
|
||||||
|
namespace: {{ .Values.argocd.namespace }}
|
||||||
|
annotations:
|
||||||
|
notifications.argoproj.io/subscribe.on-sync-succeeded.telegram: "-1002270587578"
|
||||||
|
spec:
|
||||||
|
project: {{ .Values.argocd.project }}
|
||||||
|
source:
|
||||||
|
repoURL: "https://github.com/roukydesbois/keycloak-operator.git"
|
||||||
|
targetRevision: HEAD
|
||||||
|
path: 'keycloak-operator'
|
||||||
|
helm:
|
||||||
|
releaseName: keycloak-operator
|
||||||
|
destination:
|
||||||
|
server: {{ .Values.keycloakOperator.destination.server }}
|
||||||
|
namespace: {{ .Values.keycloakOperator.destination.namespace }}
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true # Automatically remove resources no longer in the repo
|
||||||
|
selfHeal: true # Automatically self-heal when drift is detected
|
||||||
|
syncOptions:
|
||||||
|
- ApplyOutOfSyncOnly=true
|
||||||
|
- ServerSideApply=true
|
||||||
|
- CreateNamespace=true
|
||||||
|
{{- end }}
|
||||||
@@ -6,6 +6,8 @@ metadata:
|
|||||||
namespace: {{ .Values.argocd.namespace }}
|
namespace: {{ .Values.argocd.namespace }}
|
||||||
# finalizers:
|
# finalizers:
|
||||||
# - resources-finalizer.argocd.argoproj.io
|
# - resources-finalizer.argocd.argoproj.io
|
||||||
|
annotations:
|
||||||
|
notifications.argoproj.io/subscribe.on-sync-succeeded.telegram: "-1002270587578"
|
||||||
spec:
|
spec:
|
||||||
project: {{ .Values.argocd.project }}
|
project: {{ .Values.argocd.project }}
|
||||||
source:
|
source:
|
||||||
|
|||||||
@@ -6,6 +6,8 @@ metadata:
|
|||||||
namespace: {{ .Values.argocd.namespace }}
|
namespace: {{ .Values.argocd.namespace }}
|
||||||
# finalizers:
|
# finalizers:
|
||||||
# - resources-finalizer.argocd.argoproj.io
|
# - resources-finalizer.argocd.argoproj.io
|
||||||
|
annotations:
|
||||||
|
notifications.argoproj.io/subscribe.on-sync-succeeded.telegram: "-1002270587578"
|
||||||
spec:
|
spec:
|
||||||
project: {{ .Values.argocd.project }}
|
project: {{ .Values.argocd.project }}
|
||||||
source:
|
source:
|
||||||
|
|||||||
@@ -6,6 +6,8 @@ metadata:
|
|||||||
namespace: {{ .Values.argocd.namespace }}
|
namespace: {{ .Values.argocd.namespace }}
|
||||||
# finalizers:
|
# finalizers:
|
||||||
# - resources-finalizer.argocd.argoproj.io
|
# - resources-finalizer.argocd.argoproj.io
|
||||||
|
annotations:
|
||||||
|
notifications.argoproj.io/subscribe.on-sync-succeeded.telegram: "-1002270587578"
|
||||||
spec:
|
spec:
|
||||||
project: {{ .Values.argocd.project }}
|
project: {{ .Values.argocd.project }}
|
||||||
source:
|
source:
|
||||||
|
|||||||
@@ -41,3 +41,8 @@ traefik:
|
|||||||
server: https://kubernetes.default.svc
|
server: https://kubernetes.default.svc
|
||||||
namespace: kube-system
|
namespace: kube-system
|
||||||
|
|
||||||
|
keycloakOperator:
|
||||||
|
enable: false
|
||||||
|
destination:
|
||||||
|
server: https://kubernetes.default.svc
|
||||||
|
namespace: keycloak
|
||||||
23
keycloak-argocd-apps/.helmignore
Normal file
23
keycloak-argocd-apps/.helmignore
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
# Patterns to ignore when building packages.
|
||||||
|
# This supports shell glob matching, relative path matching, and
|
||||||
|
# negation (prefixed with !). Only one pattern per line.
|
||||||
|
.DS_Store
|
||||||
|
# Common VCS dirs
|
||||||
|
.git/
|
||||||
|
.gitignore
|
||||||
|
.bzr/
|
||||||
|
.bzrignore
|
||||||
|
.hg/
|
||||||
|
.hgignore
|
||||||
|
.svn/
|
||||||
|
# Common backup files
|
||||||
|
*.swp
|
||||||
|
*.bak
|
||||||
|
*.tmp
|
||||||
|
*.orig
|
||||||
|
*~
|
||||||
|
# Various IDEs
|
||||||
|
.project
|
||||||
|
.idea/
|
||||||
|
*.tmproj
|
||||||
|
.vscode/
|
||||||
5
keycloak-argocd-apps/Chart.yaml
Normal file
5
keycloak-argocd-apps/Chart.yaml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
apiVersion: v2
|
||||||
|
name: keycloak-argocd-apps
|
||||||
|
description: A Helm chart for deploying the different argocd apps to deploy Keycloak
|
||||||
|
type: application
|
||||||
|
version: 0.2.1
|
||||||
62
keycloak-argocd-apps/templates/_helpers.tpl
Normal file
62
keycloak-argocd-apps/templates/_helpers.tpl
Normal file
@@ -0,0 +1,62 @@
|
|||||||
|
{{/*
|
||||||
|
Expand the name of the chart.
|
||||||
|
*/}}
|
||||||
|
{{- define "keycloak-argocd-apps.name" -}}
|
||||||
|
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create a default fully qualified app name.
|
||||||
|
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
|
||||||
|
If release name contains chart name it will be used as a full name.
|
||||||
|
*/}}
|
||||||
|
{{- define "keycloak-argocd-apps.fullname" -}}
|
||||||
|
{{- if .Values.fullnameOverride }}
|
||||||
|
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- else }}
|
||||||
|
{{- $name := default .Chart.Name .Values.nameOverride }}
|
||||||
|
{{- if contains $name .Release.Name }}
|
||||||
|
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create chart name and version as used by the chart label.
|
||||||
|
*/}}
|
||||||
|
{{- define "keycloak-argocd-apps.chart" -}}
|
||||||
|
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Common labels
|
||||||
|
*/}}
|
||||||
|
{{- define "keycloak-argocd-apps.labels" -}}
|
||||||
|
helm.sh/chart: {{ include "keycloak-argocd-apps.chart" . }}
|
||||||
|
{{ include "keycloak-argocd-apps.selectorLabels" . }}
|
||||||
|
{{- if .Chart.AppVersion }}
|
||||||
|
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
|
||||||
|
{{- end }}
|
||||||
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Selector labels
|
||||||
|
*/}}
|
||||||
|
{{- define "keycloak-argocd-apps.selectorLabels" -}}
|
||||||
|
app.kubernetes.io/name: {{ include "keycloak-argocd-apps.name" . }}
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create the name of the service account to use
|
||||||
|
*/}}
|
||||||
|
{{- define "keycloak-argocd-apps.serviceAccountName" -}}
|
||||||
|
{{- if .Values.serviceAccount.create }}
|
||||||
|
{{- default (include "keycloak-argocd-apps.fullname" .) .Values.serviceAccount.name }}
|
||||||
|
{{- else }}
|
||||||
|
{{- default "default" .Values.serviceAccount.name }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
43
keycloak-argocd-apps/templates/keycloak-deployment-app.yaml
Normal file
43
keycloak-argocd-apps/templates/keycloak-deployment-app.yaml
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: {{ .Values.argocd.prefix }}keycloak-deployment
|
||||||
|
namespace: {{ .Values.argocd.namespace }}
|
||||||
|
annotations:
|
||||||
|
argocd.argoproj.io/sync-wave: "0"
|
||||||
|
notifications.argoproj.io/subscribe.on-sync-succeeded.telegram: "-1002270587578"
|
||||||
|
spec:
|
||||||
|
project: {{ .Values.argocd.project }}
|
||||||
|
source:
|
||||||
|
repoURL: "https://git.blarre.net/thomas/helm-charts.git"
|
||||||
|
targetRevision: {{ .Values.keycloakDeployment.targetRevision }}
|
||||||
|
path: keycloak-deployment
|
||||||
|
helm:
|
||||||
|
releaseName: keycloak-deployment
|
||||||
|
valuesObject:
|
||||||
|
prefix: {{ .Values.argocd.prefix }}
|
||||||
|
keycloakDeployment:
|
||||||
|
deploymentName: {{ .Values.keycloakDeployment.deploymentName }}
|
||||||
|
numInstances: {{ .Values.keycloakDeployment.numInstances }}
|
||||||
|
hostname: {{ .Values.keycloakDeployment.hostname }}
|
||||||
|
vendor: {{ .Values.keycloakDeployment.vendor }}
|
||||||
|
dbHost: {{ .Values.keycloakDeployment.dbHost }}
|
||||||
|
dbPort: {{ .Values.keycloakDeployment.dbPort }}
|
||||||
|
usernameSecret:
|
||||||
|
name: {{ .Values.keycloakDeployment.usernameSecret.name }}
|
||||||
|
key: {{ .Values.keycloakDeployment.usernameSecret.key }}
|
||||||
|
passwordSecret:
|
||||||
|
name: {{ .Values.keycloakDeployment.passwordSecret.name }}
|
||||||
|
key: {{ .Values.keycloakDeployment.passwordSecret.key }}
|
||||||
|
database: {{ .Values.keycloakDeployment.database }}
|
||||||
|
destination:
|
||||||
|
server: {{ .Values.mainDestination }}
|
||||||
|
namespace: {{ .Values.mainNamespace }}
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true # Automatically remove resources no longer in the repo
|
||||||
|
selfHeal: true # Automatically self-heal when drift is detected
|
||||||
|
syncOptions:
|
||||||
|
- ApplyOutOfSyncOnly=true
|
||||||
|
- ServerSideApply=true
|
||||||
|
- CreateNamespace=true
|
||||||
31
keycloak-argocd-apps/templates/keycloak-postinstall-app.yaml
Normal file
31
keycloak-argocd-apps/templates/keycloak-postinstall-app.yaml
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: {{ .Values.argocd.prefix }}keycloak-postinstall
|
||||||
|
namespace: {{ .Values.argocd.namespace }}
|
||||||
|
annotations:
|
||||||
|
argocd.argoproj.io/sync-wave: "1"
|
||||||
|
notifications.argoproj.io/subscribe.on-sync-succeeded.telegram: "-1002270587578"
|
||||||
|
spec:
|
||||||
|
project: {{ .Values.argocd.project }}
|
||||||
|
source:
|
||||||
|
repoURL: "https://git.blarre.net/thomas/helm-charts.git"
|
||||||
|
targetRevision: {{ .Values.keycloakDeployment.targetRevision }}
|
||||||
|
path: keycloak-postinstall
|
||||||
|
helm:
|
||||||
|
releaseName: keycloak-postinstall
|
||||||
|
valuesObject:
|
||||||
|
prefix: {{ .Values.argocd.prefix }}
|
||||||
|
tailscaleIngresses:
|
||||||
|
keycloakHostname: {{ .Values.tailscaleIngresses.keycloakHostname }}
|
||||||
|
destination:
|
||||||
|
server: {{ .Values.mainDestination }}
|
||||||
|
namespace: {{ .Values.mainNamespace }}
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true # Automatically remove resources no longer in the repo
|
||||||
|
selfHeal: true # Automatically self-heal when drift is detected
|
||||||
|
syncOptions:
|
||||||
|
- ApplyOutOfSyncOnly=true
|
||||||
|
- ServerSideApply=true
|
||||||
|
- CreateNamespace=true
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
{{- if .Values.dbCluster.enable -}}
|
||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: {{ .Values.argocd.prefix }}keycloak-requirements
|
||||||
|
namespace: {{ .Values.argocd.namespace }}
|
||||||
|
annotations:
|
||||||
|
argocd.argoproj.io/sync-wave: "-1"
|
||||||
|
notifications.argoproj.io/subscribe.on-sync-succeeded.telegram: "-1002270587578"
|
||||||
|
spec:
|
||||||
|
project: {{ .Values.argocd.project }}
|
||||||
|
source:
|
||||||
|
repoURL: "https://git.blarre.net/thomas/helm-charts.git"
|
||||||
|
targetRevision: HEAD
|
||||||
|
path: keycloak-requirements
|
||||||
|
helm:
|
||||||
|
releaseName: keycloak-requirements
|
||||||
|
valuesObject:
|
||||||
|
prefix: {{ .Values.argocd.prefix }}
|
||||||
|
dbCluster:
|
||||||
|
size: {{ .Values.dbCluster.size }}
|
||||||
|
numInstances: {{ .Values.dbCluster.numInstances }}
|
||||||
|
destination:
|
||||||
|
server: {{ .Values.mainDestination }}
|
||||||
|
namespace: {{ .Values.mainNamespace }}
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true # Automatically remove resources no longer in the repo
|
||||||
|
selfHeal: true # Automatically self-heal when drift is detected
|
||||||
|
syncOptions:
|
||||||
|
- ApplyOutOfSyncOnly=true
|
||||||
|
- ServerSideApply=true
|
||||||
|
- CreateNamespace=true
|
||||||
|
{{- end }}
|
||||||
26
keycloak-argocd-apps/values.yaml
Normal file
26
keycloak-argocd-apps/values.yaml
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
argocd:
|
||||||
|
namespace: argocd
|
||||||
|
project: default
|
||||||
|
prefix: null
|
||||||
|
dbCluster:
|
||||||
|
enable: true
|
||||||
|
size: 10Gi
|
||||||
|
numInstances: 3
|
||||||
|
mainNamespace: keycloak
|
||||||
|
mainDestination: https://kubernetes.default.svc
|
||||||
|
keycloakDeployment:
|
||||||
|
targetRevision: HEAD
|
||||||
|
numInstances: 1
|
||||||
|
hostname: sso.domain.net
|
||||||
|
vendor: postgres
|
||||||
|
dbHost: keycloak-db-rw
|
||||||
|
dbPort: 5432
|
||||||
|
usernameSecret:
|
||||||
|
name: keycloak-db-app
|
||||||
|
key: user
|
||||||
|
passwordSecret:
|
||||||
|
name: keycloak-db-app
|
||||||
|
key: password
|
||||||
|
database: app
|
||||||
|
tailscaleIngresses:
|
||||||
|
keycloakHostname: sso
|
||||||
23
keycloak-deployment/.helmignore
Normal file
23
keycloak-deployment/.helmignore
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
# Patterns to ignore when building packages.
|
||||||
|
# This supports shell glob matching, relative path matching, and
|
||||||
|
# negation (prefixed with !). Only one pattern per line.
|
||||||
|
.DS_Store
|
||||||
|
# Common VCS dirs
|
||||||
|
.git/
|
||||||
|
.gitignore
|
||||||
|
.bzr/
|
||||||
|
.bzrignore
|
||||||
|
.hg/
|
||||||
|
.hgignore
|
||||||
|
.svn/
|
||||||
|
# Common backup files
|
||||||
|
*.swp
|
||||||
|
*.bak
|
||||||
|
*.tmp
|
||||||
|
*.orig
|
||||||
|
*~
|
||||||
|
# Various IDEs
|
||||||
|
.project
|
||||||
|
.idea/
|
||||||
|
*.tmproj
|
||||||
|
.vscode/
|
||||||
5
keycloak-deployment/Chart.yaml
Normal file
5
keycloak-deployment/Chart.yaml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
apiVersion: v2
|
||||||
|
name: keycloak-deployment
|
||||||
|
description: A Helm chart for deploying the actual keycloak pod through the keycloak operator
|
||||||
|
type: application
|
||||||
|
version: 0.2.1
|
||||||
62
keycloak-deployment/templates/_helpers.tpl
Normal file
62
keycloak-deployment/templates/_helpers.tpl
Normal file
@@ -0,0 +1,62 @@
|
|||||||
|
{{/*
|
||||||
|
Expand the name of the chart.
|
||||||
|
*/}}
|
||||||
|
{{- define "keycloak-deployment.name" -}}
|
||||||
|
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create a default fully qualified app name.
|
||||||
|
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
|
||||||
|
If release name contains chart name it will be used as a full name.
|
||||||
|
*/}}
|
||||||
|
{{- define "keycloak-deployment.fullname" -}}
|
||||||
|
{{- if .Values.fullnameOverride }}
|
||||||
|
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- else }}
|
||||||
|
{{- $name := default .Chart.Name .Values.nameOverride }}
|
||||||
|
{{- if contains $name .Release.Name }}
|
||||||
|
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create chart name and version as used by the chart label.
|
||||||
|
*/}}
|
||||||
|
{{- define "keycloak-deployment.chart" -}}
|
||||||
|
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Common labels
|
||||||
|
*/}}
|
||||||
|
{{- define "keycloak-deployment.labels" -}}
|
||||||
|
helm.sh/chart: {{ include "keycloak-deployment.chart" . }}
|
||||||
|
{{ include "keycloak-deployment.selectorLabels" . }}
|
||||||
|
{{- if .Chart.AppVersion }}
|
||||||
|
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
|
||||||
|
{{- end }}
|
||||||
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Selector labels
|
||||||
|
*/}}
|
||||||
|
{{- define "keycloak-deployment.selectorLabels" -}}
|
||||||
|
app.kubernetes.io/name: {{ include "keycloak-deployment.name" . }}
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create the name of the service account to use
|
||||||
|
*/}}
|
||||||
|
{{- define "keycloak-deployment.serviceAccountName" -}}
|
||||||
|
{{- if .Values.serviceAccount.create }}
|
||||||
|
{{- default (include "keycloak-deployment.fullname" .) .Values.serviceAccount.name }}
|
||||||
|
{{- else }}
|
||||||
|
{{- default "default" .Values.serviceAccount.name }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
26
keycloak-deployment/templates/keycloak-deployment.yaml
Normal file
26
keycloak-deployment/templates/keycloak-deployment.yaml
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
apiVersion: k8s.keycloak.org/v2alpha1
|
||||||
|
kind: Keycloak
|
||||||
|
metadata:
|
||||||
|
name: {{ .Values.prefix }}keycloak
|
||||||
|
spec:
|
||||||
|
instances: {{ .Values.keycloakDeployment.numInstances }}
|
||||||
|
db:
|
||||||
|
vendor: {{ .Values.keycloakDeployment.vendor }}
|
||||||
|
host: {{ .Values.keycloakDeployment.dbHost }}
|
||||||
|
port: {{ .Values.keycloakDeployment.dbPort }}
|
||||||
|
usernameSecret:
|
||||||
|
name: {{ .Values.keycloakDeployment.usernameSecret.name }}
|
||||||
|
key: {{ .Values.keycloakDeployment.usernameSecret.key }}
|
||||||
|
passwordSecret:
|
||||||
|
name: {{ .Values.keycloakDeployment.passwordSecret.name }}
|
||||||
|
key: {{ .Values.keycloakDeployment.passwordSecret.key }}
|
||||||
|
database: {{ .Values.keycloakDeployment.database }}
|
||||||
|
ingress:
|
||||||
|
enabled: false
|
||||||
|
http:
|
||||||
|
httpEnabled: true
|
||||||
|
hostname:
|
||||||
|
hostname: {{ .Values.keycloakDeployment.hostname }}
|
||||||
|
strict: false
|
||||||
|
proxy:
|
||||||
|
headers: xforwarded # double check your reverse proxy sets and overwrites the X-Forwarded-* headers
|
||||||
14
keycloak-deployment/values.yaml
Normal file
14
keycloak-deployment/values.yaml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
prefix: null
|
||||||
|
keycloakDeployment:
|
||||||
|
numInstances: 1
|
||||||
|
hostname: sso.domain.net
|
||||||
|
vendor: postgres
|
||||||
|
dbHost: keycloak-db-rw
|
||||||
|
dbPort: 5432
|
||||||
|
usernameSecret:
|
||||||
|
name: keycloak-db-app
|
||||||
|
key: user
|
||||||
|
passwordSecret:
|
||||||
|
name: keycloak-db-app
|
||||||
|
key: password
|
||||||
|
database: app
|
||||||
23
keycloak-operator/.helmignore
Normal file
23
keycloak-operator/.helmignore
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
# Patterns to ignore when building packages.
|
||||||
|
# This supports shell glob matching, relative path matching, and
|
||||||
|
# negation (prefixed with !). Only one pattern per line.
|
||||||
|
.DS_Store
|
||||||
|
# Common VCS dirs
|
||||||
|
.git/
|
||||||
|
.gitignore
|
||||||
|
.bzr/
|
||||||
|
.bzrignore
|
||||||
|
.hg/
|
||||||
|
.hgignore
|
||||||
|
.svn/
|
||||||
|
# Common backup files
|
||||||
|
*.swp
|
||||||
|
*.bak
|
||||||
|
*.tmp
|
||||||
|
*.orig
|
||||||
|
*~
|
||||||
|
# Various IDEs
|
||||||
|
.project
|
||||||
|
.idea/
|
||||||
|
*.tmproj
|
||||||
|
.vscode/
|
||||||
6
keycloak-operator/Chart.yaml
Normal file
6
keycloak-operator/Chart.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
apiVersion: v2
|
||||||
|
name: keycloak-operator
|
||||||
|
description: A Helm chart for the Keycloak operator
|
||||||
|
type: application
|
||||||
|
version: 0.1.0
|
||||||
|
appVersion: "26.0.5"
|
||||||
62
keycloak-operator/templates/_helpers.tpl
Normal file
62
keycloak-operator/templates/_helpers.tpl
Normal file
@@ -0,0 +1,62 @@
|
|||||||
|
{{/*
|
||||||
|
Expand the name of the chart.
|
||||||
|
*/}}
|
||||||
|
{{- define "keycloak-operator.name" -}}
|
||||||
|
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create a default fully qualified app name.
|
||||||
|
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
|
||||||
|
If release name contains chart name it will be used as a full name.
|
||||||
|
*/}}
|
||||||
|
{{- define "keycloak-operator.fullname" -}}
|
||||||
|
{{- if .Values.fullnameOverride }}
|
||||||
|
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- else }}
|
||||||
|
{{- $name := default .Chart.Name .Values.nameOverride }}
|
||||||
|
{{- if contains $name .Release.Name }}
|
||||||
|
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create chart name and version as used by the chart label.
|
||||||
|
*/}}
|
||||||
|
{{- define "keycloak-operator.chart" -}}
|
||||||
|
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Common labels
|
||||||
|
*/}}
|
||||||
|
{{- define "keycloak-operator.labels" -}}
|
||||||
|
helm.sh/chart: {{ include "keycloak-operator.chart" . }}
|
||||||
|
{{ include "keycloak-operator.selectorLabels" . }}
|
||||||
|
{{- if .Chart.AppVersion }}
|
||||||
|
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
|
||||||
|
{{- end }}
|
||||||
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Selector labels
|
||||||
|
*/}}
|
||||||
|
{{- define "keycloak-operator.selectorLabels" -}}
|
||||||
|
app.kubernetes.io/name: {{ include "keycloak-operator.name" . }}
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create the name of the service account to use
|
||||||
|
*/}}
|
||||||
|
{{- define "keycloak-operator.serviceAccountName" -}}
|
||||||
|
{{- if .Values.serviceAccount.create }}
|
||||||
|
{{- default (include "keycloak-operator.fullname" .) .Values.serviceAccount.name }}
|
||||||
|
{{- else }}
|
||||||
|
{{- default "default" .Values.serviceAccount.name }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
15
keycloak-operator/templates/keycloak-crd.yaml
Normal file
15
keycloak-operator/templates/keycloak-crd.yaml
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
apiVersion: batch/v1
|
||||||
|
kind: Job
|
||||||
|
metadata:
|
||||||
|
name: keycloak-crd-job
|
||||||
|
spec:
|
||||||
|
template:
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: crd-fetcher
|
||||||
|
image: bitnami/kubectl:latest # Use Bitnami's kubectl image
|
||||||
|
command:
|
||||||
|
- "sh"
|
||||||
|
- "-c"
|
||||||
|
- "wget -qO- {{ .Values.baseURL }}/{{ .Release.appVersion }}/kubernetes/keycloaks.k8s.keycloak.org-v1.yml | kubectl apply -f -"
|
||||||
|
restartPolicy: OnFailure
|
||||||
17
keycloak-operator/templates/keycloak-operator.yaml
Normal file
17
keycloak-operator/templates/keycloak-operator.yaml
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
apiVersion: batch/v1
|
||||||
|
kind: Job
|
||||||
|
metadata:
|
||||||
|
name: keycloakoperator-job
|
||||||
|
annotations:
|
||||||
|
"helm.sh/hook": post-install
|
||||||
|
spec:
|
||||||
|
template:
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: crd-fetcher
|
||||||
|
image: bitnami/kubectl:latest # Use Bitnami's kubectl image
|
||||||
|
command:
|
||||||
|
- "sh"
|
||||||
|
- "-c"
|
||||||
|
- "wget -qO- {{ .Values.baseURL }}/{{ .Release.appVersion }}/kubernetes/kubernetes.yml | kubectl apply -f -"
|
||||||
|
restartPolicy: OnFailure
|
||||||
15
keycloak-operator/templates/keycloakrealmimports-crd.yaml
Normal file
15
keycloak-operator/templates/keycloakrealmimports-crd.yaml
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
apiVersion: batch/v1
|
||||||
|
kind: Job
|
||||||
|
metadata:
|
||||||
|
name: keycloakrealmimports-crd-job
|
||||||
|
spec:
|
||||||
|
template:
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: crd-fetcher
|
||||||
|
image: bitnami/kubectl:latest # Use Bitnami's kubectl image
|
||||||
|
command:
|
||||||
|
- "sh"
|
||||||
|
- "-c"
|
||||||
|
- "wget -qO- {{ .Values.baseURL }}/{{ .Release.appVersion }}/kubernetes/keycloakrealmimports.k8s.keycloak.org-v1.yml | kubectl apply -f -"
|
||||||
|
restartPolicy: OnFailure
|
||||||
1
keycloak-operator/values.yaml
Normal file
1
keycloak-operator/values.yaml
Normal file
@@ -0,0 +1 @@
|
|||||||
|
baseURL: "https://raw.githubusercontent.com/keycloak/keycloak-k8s-resources"
|
||||||
23
keycloak-postinstall/.helmignore
Normal file
23
keycloak-postinstall/.helmignore
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
# Patterns to ignore when building packages.
|
||||||
|
# This supports shell glob matching, relative path matching, and
|
||||||
|
# negation (prefixed with !). Only one pattern per line.
|
||||||
|
.DS_Store
|
||||||
|
# Common VCS dirs
|
||||||
|
.git/
|
||||||
|
.gitignore
|
||||||
|
.bzr/
|
||||||
|
.bzrignore
|
||||||
|
.hg/
|
||||||
|
.hgignore
|
||||||
|
.svn/
|
||||||
|
# Common backup files
|
||||||
|
*.swp
|
||||||
|
*.bak
|
||||||
|
*.tmp
|
||||||
|
*.orig
|
||||||
|
*~
|
||||||
|
# Various IDEs
|
||||||
|
.project
|
||||||
|
.idea/
|
||||||
|
*.tmproj
|
||||||
|
.vscode/
|
||||||
5
keycloak-postinstall/Chart.yaml
Normal file
5
keycloak-postinstall/Chart.yaml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
apiVersion: v2
|
||||||
|
name: keycloak-postinstall
|
||||||
|
description: A Helm chart for after deploying keycloak - mainly ingress
|
||||||
|
type: application
|
||||||
|
version: 0.1.0
|
||||||
62
keycloak-postinstall/templates/_helpers.tpl
Normal file
62
keycloak-postinstall/templates/_helpers.tpl
Normal file
@@ -0,0 +1,62 @@
|
|||||||
|
{{/*
|
||||||
|
Expand the name of the chart.
|
||||||
|
*/}}
|
||||||
|
{{- define "keycloak-postinstall.name" -}}
|
||||||
|
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create a default fully qualified app name.
|
||||||
|
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
|
||||||
|
If release name contains chart name it will be used as a full name.
|
||||||
|
*/}}
|
||||||
|
{{- define "keycloak-postinstall.fullname" -}}
|
||||||
|
{{- if .Values.fullnameOverride }}
|
||||||
|
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- else }}
|
||||||
|
{{- $name := default .Chart.Name .Values.nameOverride }}
|
||||||
|
{{- if contains $name .Release.Name }}
|
||||||
|
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create chart name and version as used by the chart label.
|
||||||
|
*/}}
|
||||||
|
{{- define "keycloak-postinstall.chart" -}}
|
||||||
|
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Common labels
|
||||||
|
*/}}
|
||||||
|
{{- define "keycloak-postinstall.labels" -}}
|
||||||
|
helm.sh/chart: {{ include "keycloak-postinstall.chart" . }}
|
||||||
|
{{ include "keycloak-postinstall.selectorLabels" . }}
|
||||||
|
{{- if .Chart.AppVersion }}
|
||||||
|
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
|
||||||
|
{{- end }}
|
||||||
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Selector labels
|
||||||
|
*/}}
|
||||||
|
{{- define "keycloak-postinstall.selectorLabels" -}}
|
||||||
|
app.kubernetes.io/name: {{ include "keycloak-postinstall.name" . }}
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create the name of the service account to use
|
||||||
|
*/}}
|
||||||
|
{{- define "keycloak-postinstall.serviceAccountName" -}}
|
||||||
|
{{- if .Values.serviceAccount.create }}
|
||||||
|
{{- default (include "keycloak-postinstall.fullname" .) .Values.serviceAccount.name }}
|
||||||
|
{{- else }}
|
||||||
|
{{- default "default" .Values.serviceAccount.name }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
16
keycloak-postinstall/templates/ts-ingress.yaml
Normal file
16
keycloak-postinstall/templates/ts-ingress.yaml
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: {{ .Values.prefix }}ts-keycloak
|
||||||
|
annotations:
|
||||||
|
tailscale.com/funnel: "true"
|
||||||
|
spec:
|
||||||
|
defaultBackend:
|
||||||
|
service:
|
||||||
|
name: {{ .Values.prefix }}keycloak-service
|
||||||
|
port:
|
||||||
|
number: 8080
|
||||||
|
ingressClassName: tailscale
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- {{ .Values.tailscaleIngresses.keycloakHostname }}
|
||||||
3
keycloak-postinstall/values.yaml
Normal file
3
keycloak-postinstall/values.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
prefix: null
|
||||||
|
tailscaleIngresses:
|
||||||
|
keycloakHostname: sso
|
||||||
23
keycloak-requirements/.helmignore
Normal file
23
keycloak-requirements/.helmignore
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
# Patterns to ignore when building packages.
|
||||||
|
# This supports shell glob matching, relative path matching, and
|
||||||
|
# negation (prefixed with !). Only one pattern per line.
|
||||||
|
.DS_Store
|
||||||
|
# Common VCS dirs
|
||||||
|
.git/
|
||||||
|
.gitignore
|
||||||
|
.bzr/
|
||||||
|
.bzrignore
|
||||||
|
.hg/
|
||||||
|
.hgignore
|
||||||
|
.svn/
|
||||||
|
# Common backup files
|
||||||
|
*.swp
|
||||||
|
*.bak
|
||||||
|
*.tmp
|
||||||
|
*.orig
|
||||||
|
*~
|
||||||
|
# Various IDEs
|
||||||
|
.project
|
||||||
|
.idea/
|
||||||
|
*.tmproj
|
||||||
|
.vscode/
|
||||||
5
keycloak-requirements/Chart.yaml
Normal file
5
keycloak-requirements/Chart.yaml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
apiVersion: v2
|
||||||
|
name: keycloak-requirements
|
||||||
|
description: A Helm chart for deploying the DB used by keycloak
|
||||||
|
type: application
|
||||||
|
version: 0.1.1
|
||||||
62
keycloak-requirements/templates/_helpers.tpl
Normal file
62
keycloak-requirements/templates/_helpers.tpl
Normal file
@@ -0,0 +1,62 @@
|
|||||||
|
{{/*
|
||||||
|
Expand the name of the chart.
|
||||||
|
*/}}
|
||||||
|
{{- define "keycloak-requirements.name" -}}
|
||||||
|
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create a default fully qualified app name.
|
||||||
|
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
|
||||||
|
If release name contains chart name it will be used as a full name.
|
||||||
|
*/}}
|
||||||
|
{{- define "keycloak-requirements.fullname" -}}
|
||||||
|
{{- if .Values.fullnameOverride }}
|
||||||
|
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- else }}
|
||||||
|
{{- $name := default .Chart.Name .Values.nameOverride }}
|
||||||
|
{{- if contains $name .Release.Name }}
|
||||||
|
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create chart name and version as used by the chart label.
|
||||||
|
*/}}
|
||||||
|
{{- define "keycloak-requirements.chart" -}}
|
||||||
|
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Common labels
|
||||||
|
*/}}
|
||||||
|
{{- define "keycloak-requirements.labels" -}}
|
||||||
|
helm.sh/chart: {{ include "keycloak-requirements.chart" . }}
|
||||||
|
{{ include "keycloak-requirements.selectorLabels" . }}
|
||||||
|
{{- if .Chart.AppVersion }}
|
||||||
|
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
|
||||||
|
{{- end }}
|
||||||
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Selector labels
|
||||||
|
*/}}
|
||||||
|
{{- define "keycloak-requirements.selectorLabels" -}}
|
||||||
|
app.kubernetes.io/name: {{ include "keycloak-requirements.name" . }}
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create the name of the service account to use
|
||||||
|
*/}}
|
||||||
|
{{- define "keycloak-requirements.serviceAccountName" -}}
|
||||||
|
{{- if .Values.serviceAccount.create }}
|
||||||
|
{{- default (include "keycloak-requirements.fullname" .) .Values.serviceAccount.name }}
|
||||||
|
{{- else }}
|
||||||
|
{{- default "default" .Values.serviceAccount.name }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
9
keycloak-requirements/templates/db-cluster.yaml
Normal file
9
keycloak-requirements/templates/db-cluster.yaml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
apiVersion: postgresql.cnpg.io/v1
|
||||||
|
kind: Cluster
|
||||||
|
metadata:
|
||||||
|
name: {{ .Values.prefix }}keycloak-db
|
||||||
|
spec:
|
||||||
|
instances: {{ .Values.dbCluster.numInstances }}
|
||||||
|
|
||||||
|
storage:
|
||||||
|
size: {{ .Values.dbCluster.size }}
|
||||||
4
keycloak-requirements/values.yaml
Normal file
4
keycloak-requirements/values.yaml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
prefix: null
|
||||||
|
dbCluster:
|
||||||
|
size: 1Gi
|
||||||
|
numInstances: 3
|
||||||
23
nextcloud-syncthing-argocd-apps/.helmignore
Normal file
23
nextcloud-syncthing-argocd-apps/.helmignore
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
# Patterns to ignore when building packages.
|
||||||
|
# This supports shell glob matching, relative path matching, and
|
||||||
|
# negation (prefixed with !). Only one pattern per line.
|
||||||
|
.DS_Store
|
||||||
|
# Common VCS dirs
|
||||||
|
.git/
|
||||||
|
.gitignore
|
||||||
|
.bzr/
|
||||||
|
.bzrignore
|
||||||
|
.hg/
|
||||||
|
.hgignore
|
||||||
|
.svn/
|
||||||
|
# Common backup files
|
||||||
|
*.swp
|
||||||
|
*.bak
|
||||||
|
*.tmp
|
||||||
|
*.orig
|
||||||
|
*~
|
||||||
|
# Various IDEs
|
||||||
|
.project
|
||||||
|
.idea/
|
||||||
|
*.tmproj
|
||||||
|
.vscode/
|
||||||
5
nextcloud-syncthing-argocd-apps/Chart.yaml
Normal file
5
nextcloud-syncthing-argocd-apps/Chart.yaml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
apiVersion: v2
|
||||||
|
name: nextcloud-syncthing-argocd-apps
|
||||||
|
description: A Helm chart to deploy Nextcloud and Syncthing using a common data folder
|
||||||
|
type: application
|
||||||
|
version: 0.1.0
|
||||||
62
nextcloud-syncthing-argocd-apps/templates/_helpers.tpl
Normal file
62
nextcloud-syncthing-argocd-apps/templates/_helpers.tpl
Normal file
@@ -0,0 +1,62 @@
|
|||||||
|
{{/*
|
||||||
|
Expand the name of the chart.
|
||||||
|
*/}}
|
||||||
|
{{- define "nextcloud-syncthing-argocd-apps.name" -}}
|
||||||
|
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create a default fully qualified app name.
|
||||||
|
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
|
||||||
|
If release name contains chart name it will be used as a full name.
|
||||||
|
*/}}
|
||||||
|
{{- define "nextcloud-syncthing-argocd-apps.fullname" -}}
|
||||||
|
{{- if .Values.fullnameOverride }}
|
||||||
|
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- else }}
|
||||||
|
{{- $name := default .Chart.Name .Values.nameOverride }}
|
||||||
|
{{- if contains $name .Release.Name }}
|
||||||
|
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create chart name and version as used by the chart label.
|
||||||
|
*/}}
|
||||||
|
{{- define "nextcloud-syncthing-argocd-apps.chart" -}}
|
||||||
|
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Common labels
|
||||||
|
*/}}
|
||||||
|
{{- define "nextcloud-syncthing-argocd-apps.labels" -}}
|
||||||
|
helm.sh/chart: {{ include "nextcloud-syncthing-argocd-apps.chart" . }}
|
||||||
|
{{ include "nextcloud-syncthing-argocd-apps.selectorLabels" . }}
|
||||||
|
{{- if .Chart.AppVersion }}
|
||||||
|
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
|
||||||
|
{{- end }}
|
||||||
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Selector labels
|
||||||
|
*/}}
|
||||||
|
{{- define "nextcloud-syncthing-argocd-apps.selectorLabels" -}}
|
||||||
|
app.kubernetes.io/name: {{ include "nextcloud-syncthing-argocd-apps.name" . }}
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create the name of the service account to use
|
||||||
|
*/}}
|
||||||
|
{{- define "nextcloud-syncthing-argocd-apps.serviceAccountName" -}}
|
||||||
|
{{- if .Values.serviceAccount.create }}
|
||||||
|
{{- default (include "nextcloud-syncthing-argocd-apps.fullname" .) .Values.serviceAccount.name }}
|
||||||
|
{{- else }}
|
||||||
|
{{- default "default" .Values.serviceAccount.name }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: nc-syncthing-postinstall
|
||||||
|
namespace: {{ .Values.argocd.namespace }}
|
||||||
|
annotations:
|
||||||
|
argocd.argoproj.io/sync-wave: "1"
|
||||||
|
notifications.argoproj.io/subscribe.on-sync-succeeded.telegram: "-1002270587578"
|
||||||
|
spec:
|
||||||
|
project: {{ .Values.argocd.project }}
|
||||||
|
source:
|
||||||
|
repoURL: {{ .Values.argocd.postinstall.repoURL }}
|
||||||
|
targetRevision: {{ .Values.argocd.postinstall.targetRevision }}
|
||||||
|
path: {{ .Values.argocd.postinstall.path }}
|
||||||
|
helm:
|
||||||
|
releaseName: nc-syncthing-postinstall
|
||||||
|
valuesObject:
|
||||||
|
tailscaleIngresses:
|
||||||
|
ncHostname: {{ .Values.tailscaleIngresses.ncHostname }}
|
||||||
|
syncthingHostname: {{ .Values.tailscaleIngresses.syncthingHostname }}
|
||||||
|
destination:
|
||||||
|
server: {{ .Values.destination.server }}
|
||||||
|
namespace: {{ .Values.destination.namespace }}
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true # Automatically remove resources no longer in the repo
|
||||||
|
selfHeal: true # Automatically self-heal when drift is detected
|
||||||
|
syncOptions:
|
||||||
|
- ApplyOutOfSyncOnly=true
|
||||||
|
- ServerSideApply=true
|
||||||
|
- CreateNamespace=true
|
||||||
@@ -0,0 +1,134 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: nextcloud-main-chart
|
||||||
|
namespace: {{ .Values.argocd.namespace }}
|
||||||
|
annotations:
|
||||||
|
argocd.argoproj.io/sync-wave: "0"
|
||||||
|
notifications.argoproj.io/subscribe.on-sync-succeeded.telegram: "-1002270587578"
|
||||||
|
spec:
|
||||||
|
project: {{ .Values.argocd.project }}
|
||||||
|
source:
|
||||||
|
repoURL: "https://nextcloud.github.io/helm"
|
||||||
|
chart: nextcloud
|
||||||
|
targetRevision: 6.x
|
||||||
|
helm:
|
||||||
|
releaseName: nextcloud
|
||||||
|
valuesObject:
|
||||||
|
# image:
|
||||||
|
# flavor: fpm
|
||||||
|
replicaCount: {{ .Values.nextcloud.replicaCount }}
|
||||||
|
ingress:
|
||||||
|
enabled: false
|
||||||
|
# className: nginx
|
||||||
|
# annotations:
|
||||||
|
# cert-manager.io/cluster-issuer: letsencrypt
|
||||||
|
# nginx.ingress.kubernetes.io/server-snippet: |-
|
||||||
|
# server_tokens off;
|
||||||
|
# proxy_hide_header X-Powered-By;
|
||||||
|
# rewrite ^/.well-known/webfinger /index.php/.well-known/webfinger last;
|
||||||
|
# rewrite ^/.well-known/nodeinfo /index.php/.well-known/nodeinfo last;
|
||||||
|
# rewrite ^/.well-known/host-meta /public.php?service=host-meta last;
|
||||||
|
# rewrite ^/.well-known/host-meta.json /public.php?service=host-meta-json;
|
||||||
|
# location = /.well-known/carddav {
|
||||||
|
# return 301 $scheme://$host/remote.php/dav;
|
||||||
|
# }
|
||||||
|
# location = /.well-known/caldav {
|
||||||
|
# return 301 $scheme://$host/remote.php/dav;
|
||||||
|
# }
|
||||||
|
# location = /robots.txt {
|
||||||
|
# allow all;
|
||||||
|
# log_not_found off;
|
||||||
|
# access_log off;
|
||||||
|
# }
|
||||||
|
# location ~ ^/(?:build|tests|config|lib|3rdparty|templates|data)/ {
|
||||||
|
# deny all;
|
||||||
|
# }
|
||||||
|
# location ~ ^/(?:autotest|occ|issue|indie|db_|console) {
|
||||||
|
# deny all;
|
||||||
|
# }
|
||||||
|
# nginx.ingress.kubernetes.io/enable-cors: "true"
|
||||||
|
# nginx.ingress.kubernetes.io/cors-allow-headers: "X-Forwarded-For"
|
||||||
|
# tls:
|
||||||
|
# - hosts:
|
||||||
|
# - {{ .Values.nextcloud.url }}
|
||||||
|
# secretName: nextcloud-cert
|
||||||
|
nextcloud:
|
||||||
|
host: {{ .Values.nextcloud.url }}
|
||||||
|
existingSecret:
|
||||||
|
enabled: true
|
||||||
|
secretName: nextcloud-user
|
||||||
|
usernameKey: nc-admin-username
|
||||||
|
passwordKey: nc-admin-password
|
||||||
|
trustedDomains: {{ .Values.nextcloud.trustedDomains }}
|
||||||
|
nextcloud:
|
||||||
|
configs:
|
||||||
|
previews.config.php: |-
|
||||||
|
<?php
|
||||||
|
$CONFIG = array (
|
||||||
|
'enable_previews' => true,
|
||||||
|
'enabledPreviewProviders' => array (
|
||||||
|
'OC\Preview\Movie',
|
||||||
|
'OC\Preview\PNG',
|
||||||
|
'OC\Preview\JPEG',
|
||||||
|
'OC\Preview\GIF',
|
||||||
|
'OC\Preview\BMP',
|
||||||
|
'OC\Preview\XBitmap',
|
||||||
|
'OC\Preview\MP3',
|
||||||
|
'OC\Preview\MP4',
|
||||||
|
'OC\Preview\TXT',
|
||||||
|
'OC\Preview\MarkDown',
|
||||||
|
'OC\Preview\PDF'
|
||||||
|
),
|
||||||
|
);
|
||||||
|
proxy.config.php: |-
|
||||||
|
<?php
|
||||||
|
$CONFIG = array (
|
||||||
|
'trusted_proxies' => array(
|
||||||
|
0 => '127.0.0.1',
|
||||||
|
1 => '10.0.0.0/8',
|
||||||
|
),
|
||||||
|
'forwarded_for_headers' => array('HTTP_X_FORWARDED_FOR'),
|
||||||
|
);
|
||||||
|
# extraInitContainers - might be useful to make sure the LUKS secret is present
|
||||||
|
# nginx:
|
||||||
|
# enabled: true
|
||||||
|
redis:
|
||||||
|
enabled: true
|
||||||
|
auth:
|
||||||
|
enabled: false
|
||||||
|
cronjob:
|
||||||
|
enabled: true
|
||||||
|
internalDatabase:
|
||||||
|
enabled: false
|
||||||
|
externalDatabase:
|
||||||
|
enabled: true
|
||||||
|
type: postgresql
|
||||||
|
host: "nextcloud-db-rw:5432"
|
||||||
|
existingSecret:
|
||||||
|
enabled: true
|
||||||
|
secretName: nextcloud-db-app
|
||||||
|
usernameKey: user
|
||||||
|
passwordKey: password
|
||||||
|
databaseKey: dbname
|
||||||
|
persistence:
|
||||||
|
enabled: true
|
||||||
|
existingClaim: {{ .Values.nextcloud.configPvc.name }}
|
||||||
|
nextcloudData:
|
||||||
|
enabled: true
|
||||||
|
existingClaim: {{ .Values.dataPvc.name }}
|
||||||
|
livenessProbe:
|
||||||
|
enabled: false
|
||||||
|
readinessProbe:
|
||||||
|
enabled: false
|
||||||
|
destination:
|
||||||
|
server: {{ .Values.destination.server }}
|
||||||
|
namespace: {{ .Values.destination.namespace }}
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true # Automatically remove resources no longer in the repo
|
||||||
|
selfHeal: true # Automatically self-heal when drift is detected
|
||||||
|
syncOptions:
|
||||||
|
- ApplyOutOfSyncOnly=true
|
||||||
|
- ServerSideApply=true
|
||||||
|
- CreateNamespace=true
|
||||||
@@ -0,0 +1,49 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: nc-syncthing-requirements
|
||||||
|
namespace: {{ .Values.argocd.namespace }}
|
||||||
|
annotations:
|
||||||
|
argocd.argoproj.io/sync-wave: "-1"
|
||||||
|
notifications.argoproj.io/subscribe.on-sync-succeeded.telegram: "-1002270587578"
|
||||||
|
spec:
|
||||||
|
project: {{ .Values.argocd.project }}
|
||||||
|
source:
|
||||||
|
repoURL: "https://git.blarre.net/thomas/helm-charts.git"
|
||||||
|
targetRevision: HEAD
|
||||||
|
path: nextcloud-syncthing-requirements
|
||||||
|
helm:
|
||||||
|
releaseName: nc-syncthing-requirements
|
||||||
|
valuesObject:
|
||||||
|
mainNamespace: {{ .Values.destination.namespace }}
|
||||||
|
nextcloud:
|
||||||
|
enable: {{ .Values.nextcloud.enable }}
|
||||||
|
dbCluster:
|
||||||
|
numInstances: {{ .Values.nextcloud.dbCluster.numInstances }}
|
||||||
|
size: {{ .Values.nextcloud.dbCluster.size }}
|
||||||
|
configPvc:
|
||||||
|
name: {{ .Values.nextcloud.configPvc.name }}
|
||||||
|
storageClassName: {{ .Values.nextcloud.configPvc.storageClassName }}
|
||||||
|
size: {{ .Values.nextcloud.configPvc.size }}
|
||||||
|
syncthing:
|
||||||
|
enable: {{ .Values.syncthing.enable }}
|
||||||
|
configPvc:
|
||||||
|
name: {{ .Values.syncthing.configPvc.name }}
|
||||||
|
storageClassName: {{ .Values.syncthing.configPvc.storageClassName }}
|
||||||
|
size: {{ .Values.syncthing.configPvc.size }}
|
||||||
|
dataPvc:
|
||||||
|
name: {{ .Values.dataPvc.name }}
|
||||||
|
createEncryptedPvc: {{ .Values.dataPvc.createEncryptedPvc }}
|
||||||
|
storageClassName: {{ .Values.dataPvc.storageClassName }}
|
||||||
|
size: {{ .Values.dataPvc.size }}
|
||||||
|
destination:
|
||||||
|
server: {{ .Values.destination.server }}
|
||||||
|
namespace: {{ .Values.destination.namespace }}
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true # Automatically remove resources no longer in the repo
|
||||||
|
selfHeal: true # Automatically self-heal when drift is detected
|
||||||
|
syncOptions:
|
||||||
|
- ApplyOutOfSyncOnly=true
|
||||||
|
- ServerSideApply=true
|
||||||
|
- CreateNamespace=true
|
||||||
40
nextcloud-syncthing-argocd-apps/values.yaml
Normal file
40
nextcloud-syncthing-argocd-apps/values.yaml
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
argocd:
|
||||||
|
namespace: argocd
|
||||||
|
project: default
|
||||||
|
postinstall:
|
||||||
|
repoURL: "https://git.blarre.net/thomas/helm-charts.git"
|
||||||
|
targetRevision: HEAD
|
||||||
|
path: nextcloud-syncthing-postinstall
|
||||||
|
|
||||||
|
destination:
|
||||||
|
server: https://kubernetes.default.svc
|
||||||
|
namespace: nextcloud
|
||||||
|
|
||||||
|
nextcloud:
|
||||||
|
enable: true
|
||||||
|
dbCluster:
|
||||||
|
numInstances: 3
|
||||||
|
size: 4Gi
|
||||||
|
configPvc:
|
||||||
|
name: nextcloud-config-pvc
|
||||||
|
storageClassName: default
|
||||||
|
size: 1Gi
|
||||||
|
replicaCount: 1
|
||||||
|
url: nextcloud.domain.net
|
||||||
|
trustedDomains: nextcloud.domain.net office.domain.net
|
||||||
|
|
||||||
|
syncthing:
|
||||||
|
enable: true
|
||||||
|
configPvc:
|
||||||
|
storageClassName: default
|
||||||
|
size: 100Mi
|
||||||
|
|
||||||
|
dataPvc:
|
||||||
|
name: data-pvc
|
||||||
|
createEncryptedPvc: true
|
||||||
|
storageClassName: linode-block-storage-retain-luks
|
||||||
|
size: 40Gi
|
||||||
|
|
||||||
|
tailscaleIngresses:
|
||||||
|
ncHostname: nextcloud
|
||||||
|
syncthingHostname: syncthing
|
||||||
23
nextcloud-syncthing-postinstall/.helmignore
Normal file
23
nextcloud-syncthing-postinstall/.helmignore
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
# Patterns to ignore when building packages.
|
||||||
|
# This supports shell glob matching, relative path matching, and
|
||||||
|
# negation (prefixed with !). Only one pattern per line.
|
||||||
|
.DS_Store
|
||||||
|
# Common VCS dirs
|
||||||
|
.git/
|
||||||
|
.gitignore
|
||||||
|
.bzr/
|
||||||
|
.bzrignore
|
||||||
|
.hg/
|
||||||
|
.hgignore
|
||||||
|
.svn/
|
||||||
|
# Common backup files
|
||||||
|
*.swp
|
||||||
|
*.bak
|
||||||
|
*.tmp
|
||||||
|
*.orig
|
||||||
|
*~
|
||||||
|
# Various IDEs
|
||||||
|
.project
|
||||||
|
.idea/
|
||||||
|
*.tmproj
|
||||||
|
.vscode/
|
||||||
5
nextcloud-syncthing-postinstall/Chart.yaml
Normal file
5
nextcloud-syncthing-postinstall/Chart.yaml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
apiVersion: v2
|
||||||
|
name: nextcloud-syncthing-postinstall
|
||||||
|
description: A Helm chart for deploying the nc and syncthing ingresses
|
||||||
|
type: application
|
||||||
|
version: 0.1.0
|
||||||
62
nextcloud-syncthing-postinstall/templates/_helpers.tpl
Normal file
62
nextcloud-syncthing-postinstall/templates/_helpers.tpl
Normal file
@@ -0,0 +1,62 @@
|
|||||||
|
{{/*
|
||||||
|
Expand the name of the chart.
|
||||||
|
*/}}
|
||||||
|
{{- define "nextcloud-syncthing-postinstall.name" -}}
|
||||||
|
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create a default fully qualified app name.
|
||||||
|
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
|
||||||
|
If release name contains chart name it will be used as a full name.
|
||||||
|
*/}}
|
||||||
|
{{- define "nextcloud-syncthing-postinstall.fullname" -}}
|
||||||
|
{{- if .Values.fullnameOverride }}
|
||||||
|
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- else }}
|
||||||
|
{{- $name := default .Chart.Name .Values.nameOverride }}
|
||||||
|
{{- if contains $name .Release.Name }}
|
||||||
|
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create chart name and version as used by the chart label.
|
||||||
|
*/}}
|
||||||
|
{{- define "nextcloud-syncthing-postinstall.chart" -}}
|
||||||
|
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Common labels
|
||||||
|
*/}}
|
||||||
|
{{- define "nextcloud-syncthing-postinstall.labels" -}}
|
||||||
|
helm.sh/chart: {{ include "nextcloud-syncthing-postinstall.chart" . }}
|
||||||
|
{{ include "nextcloud-syncthing-postinstall.selectorLabels" . }}
|
||||||
|
{{- if .Chart.AppVersion }}
|
||||||
|
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
|
||||||
|
{{- end }}
|
||||||
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Selector labels
|
||||||
|
*/}}
|
||||||
|
{{- define "nextcloud-syncthing-postinstall.selectorLabels" -}}
|
||||||
|
app.kubernetes.io/name: {{ include "nextcloud-syncthing-postinstall.name" . }}
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create the name of the service account to use
|
||||||
|
*/}}
|
||||||
|
{{- define "nextcloud-syncthing-postinstall.serviceAccountName" -}}
|
||||||
|
{{- if .Values.serviceAccount.create }}
|
||||||
|
{{- default (include "nextcloud-syncthing-postinstall.fullname" .) .Values.serviceAccount.name }}
|
||||||
|
{{- else }}
|
||||||
|
{{- default "default" .Values.serviceAccount.name }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
16
nextcloud-syncthing-postinstall/templates/nc-ingress.yaml
Normal file
16
nextcloud-syncthing-postinstall/templates/nc-ingress.yaml
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: ts-nextcloud
|
||||||
|
annotations:
|
||||||
|
tailscale.com/funnel: "true"
|
||||||
|
spec:
|
||||||
|
defaultBackend:
|
||||||
|
service:
|
||||||
|
name: nextcloud
|
||||||
|
port:
|
||||||
|
name: http
|
||||||
|
ingressClassName: tailscale
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- {{ .Values.tailscaleIngresses.ncHostname }}
|
||||||
3
nextcloud-syncthing-postinstall/values.yaml
Normal file
3
nextcloud-syncthing-postinstall/values.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
tailscaleIngresses:
|
||||||
|
ncHostname: nextcloud
|
||||||
|
syncthingHostname: syncthing
|
||||||
23
nextcloud-syncthing-requirements/.helmignore
Normal file
23
nextcloud-syncthing-requirements/.helmignore
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
# Patterns to ignore when building packages.
|
||||||
|
# This supports shell glob matching, relative path matching, and
|
||||||
|
# negation (prefixed with !). Only one pattern per line.
|
||||||
|
.DS_Store
|
||||||
|
# Common VCS dirs
|
||||||
|
.git/
|
||||||
|
.gitignore
|
||||||
|
.bzr/
|
||||||
|
.bzrignore
|
||||||
|
.hg/
|
||||||
|
.hgignore
|
||||||
|
.svn/
|
||||||
|
# Common backup files
|
||||||
|
*.swp
|
||||||
|
*.bak
|
||||||
|
*.tmp
|
||||||
|
*.orig
|
||||||
|
*~
|
||||||
|
# Various IDEs
|
||||||
|
.project
|
||||||
|
.idea/
|
||||||
|
*.tmproj
|
||||||
|
.vscode/
|
||||||
5
nextcloud-syncthing-requirements/Chart.yaml
Normal file
5
nextcloud-syncthing-requirements/Chart.yaml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
apiVersion: v2
|
||||||
|
name: nextcloud-syncthing-requirements
|
||||||
|
description: A Helm chart for deploying the database and the pvcs for Nextcloud and Syncthing
|
||||||
|
type: application
|
||||||
|
version: 0.1.0
|
||||||
62
nextcloud-syncthing-requirements/templates/_helpers.tpl
Normal file
62
nextcloud-syncthing-requirements/templates/_helpers.tpl
Normal file
@@ -0,0 +1,62 @@
|
|||||||
|
{{/*
|
||||||
|
Expand the name of the chart.
|
||||||
|
*/}}
|
||||||
|
{{- define "nextcloud-syncthing-requirements.name" -}}
|
||||||
|
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create a default fully qualified app name.
|
||||||
|
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
|
||||||
|
If release name contains chart name it will be used as a full name.
|
||||||
|
*/}}
|
||||||
|
{{- define "nextcloud-syncthing-requirements.fullname" -}}
|
||||||
|
{{- if .Values.fullnameOverride }}
|
||||||
|
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- else }}
|
||||||
|
{{- $name := default .Chart.Name .Values.nameOverride }}
|
||||||
|
{{- if contains $name .Release.Name }}
|
||||||
|
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create chart name and version as used by the chart label.
|
||||||
|
*/}}
|
||||||
|
{{- define "nextcloud-syncthing-requirements.chart" -}}
|
||||||
|
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Common labels
|
||||||
|
*/}}
|
||||||
|
{{- define "nextcloud-syncthing-requirements.labels" -}}
|
||||||
|
helm.sh/chart: {{ include "nextcloud-syncthing-requirements.chart" . }}
|
||||||
|
{{ include "nextcloud-syncthing-requirements.selectorLabels" . }}
|
||||||
|
{{- if .Chart.AppVersion }}
|
||||||
|
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
|
||||||
|
{{- end }}
|
||||||
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Selector labels
|
||||||
|
*/}}
|
||||||
|
{{- define "nextcloud-syncthing-requirements.selectorLabels" -}}
|
||||||
|
app.kubernetes.io/name: {{ include "nextcloud-syncthing-requirements.name" . }}
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create the name of the service account to use
|
||||||
|
*/}}
|
||||||
|
{{- define "nextcloud-syncthing-requirements.serviceAccountName" -}}
|
||||||
|
{{- if .Values.serviceAccount.create }}
|
||||||
|
{{- default (include "nextcloud-syncthing-requirements.fullname" .) .Values.serviceAccount.name }}
|
||||||
|
{{- else }}
|
||||||
|
{{- default "default" .Values.serviceAccount.name }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
10
nextcloud-syncthing-requirements/templates/db-cluster.yaml
Normal file
10
nextcloud-syncthing-requirements/templates/db-cluster.yaml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
{{- if .Values.nextcloud.enable -}}
|
||||||
|
apiVersion: postgresql.cnpg.io/v1
|
||||||
|
kind: Cluster
|
||||||
|
metadata:
|
||||||
|
name: nextcloud-db
|
||||||
|
spec:
|
||||||
|
instances: {{ .Values.nextcloud.dbCluster.numInstances }}
|
||||||
|
storage:
|
||||||
|
size: {{ .Values.nextcloud.dbCluster.size }}
|
||||||
|
{{- end }}
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
{{- if .Values.dataPvc.createEncryptedPvc -}}
|
||||||
|
allowVolumeExpansion: true
|
||||||
|
apiVersion: storage.k8s.io/v1
|
||||||
|
kind: StorageClass
|
||||||
|
metadata:
|
||||||
|
name: linode-block-storage-retain-luks
|
||||||
|
namespace: kube-system
|
||||||
|
provisioner: linodebs.csi.linode.com
|
||||||
|
reclaimPolicy: Retain
|
||||||
|
parameters:
|
||||||
|
linodebs.csi.linode.com/luks-encrypted: "true"
|
||||||
|
linodebs.csi.linode.com/luks-cipher: "aes-xts-plain64"
|
||||||
|
linodebs.csi.linode.com/luks-key-size: "512"
|
||||||
|
csi.storage.k8s.io/node-stage-secret-namespace: {{ .Values.mainNamespace }}
|
||||||
|
csi.storage.k8s.io/node-stage-secret-name: nc-syncthing-data-luks-key
|
||||||
|
{{- end }}
|
||||||
11
nextcloud-syncthing-requirements/templates/pvc-data.yaml
Normal file
11
nextcloud-syncthing-requirements/templates/pvc-data.yaml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: {{ .Values.dataPvc.name }}
|
||||||
|
spec:
|
||||||
|
storageClassName: {{ .Values.dataPvc.storageClassName }}
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: {{ .Values.dataPvc.size }}
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
{{- if .Values.nextcloud.enable -}}
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: {{ .Values.nextcloud.configPvc.name }}
|
||||||
|
spec:
|
||||||
|
storageClassName: {{ .Values.nextcloud.configPvc.storageClassName }}
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: {{ .Values.nextcloud.configPvc.size }}
|
||||||
|
{{- end }}
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
{{- if .Values.syncthing.enable -}}
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: {{ .Values.syncthing.configPvc.name }}
|
||||||
|
spec:
|
||||||
|
storageClassName: {{ .Values.syncthing.configPvc.storageClassName }}
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: {{ .Values.syncthing.configPvc.size }}
|
||||||
|
{{- end }}
|
||||||
24
nextcloud-syncthing-requirements/values.yaml
Normal file
24
nextcloud-syncthing-requirements/values.yaml
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
mainNamespace: nextcloud
|
||||||
|
|
||||||
|
nextcloud:
|
||||||
|
enable: true
|
||||||
|
dbCluster:
|
||||||
|
numInstances: 3
|
||||||
|
size: 4Gi
|
||||||
|
configPvc:
|
||||||
|
name: nextcloud-config-pvc
|
||||||
|
storageClassName: default
|
||||||
|
size: 1Gi
|
||||||
|
|
||||||
|
syncthing:
|
||||||
|
enable: true
|
||||||
|
configPvc:
|
||||||
|
name: syncthing-config-pvc
|
||||||
|
storageClassName: default
|
||||||
|
size: 100Mi
|
||||||
|
|
||||||
|
dataPvc:
|
||||||
|
name: data-pvc
|
||||||
|
createEncryptedPvc: true
|
||||||
|
storageClassName: linode-block-storage-retain-luks
|
||||||
|
size: 40Gi
|
||||||
23
odoo-argocd-apps/.helmignore
Normal file
23
odoo-argocd-apps/.helmignore
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
# Patterns to ignore when building packages.
|
||||||
|
# This supports shell glob matching, relative path matching, and
|
||||||
|
# negation (prefixed with !). Only one pattern per line.
|
||||||
|
.DS_Store
|
||||||
|
# Common VCS dirs
|
||||||
|
.git/
|
||||||
|
.gitignore
|
||||||
|
.bzr/
|
||||||
|
.bzrignore
|
||||||
|
.hg/
|
||||||
|
.hgignore
|
||||||
|
.svn/
|
||||||
|
# Common backup files
|
||||||
|
*.swp
|
||||||
|
*.bak
|
||||||
|
*.tmp
|
||||||
|
*.orig
|
||||||
|
*~
|
||||||
|
# Various IDEs
|
||||||
|
.project
|
||||||
|
.idea/
|
||||||
|
*.tmproj
|
||||||
|
.vscode/
|
||||||
5
odoo-argocd-apps/Chart.yaml
Normal file
5
odoo-argocd-apps/Chart.yaml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
apiVersion: v2
|
||||||
|
name: odoo-argocd-apps
|
||||||
|
description: A Helm chart for deploying the requirements, main charts and postinstall as ArgoCD apps for Odoo
|
||||||
|
type: application
|
||||||
|
version: 0.1.0
|
||||||
62
odoo-argocd-apps/templates/_helpers.tpl
Normal file
62
odoo-argocd-apps/templates/_helpers.tpl
Normal file
@@ -0,0 +1,62 @@
|
|||||||
|
{{/*
|
||||||
|
Expand the name of the chart.
|
||||||
|
*/}}
|
||||||
|
{{- define "odoo-argocd-apps.name" -}}
|
||||||
|
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create a default fully qualified app name.
|
||||||
|
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
|
||||||
|
If release name contains chart name it will be used as a full name.
|
||||||
|
*/}}
|
||||||
|
{{- define "odoo-argocd-apps.fullname" -}}
|
||||||
|
{{- if .Values.fullnameOverride }}
|
||||||
|
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- else }}
|
||||||
|
{{- $name := default .Chart.Name .Values.nameOverride }}
|
||||||
|
{{- if contains $name .Release.Name }}
|
||||||
|
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create chart name and version as used by the chart label.
|
||||||
|
*/}}
|
||||||
|
{{- define "odoo-argocd-apps.chart" -}}
|
||||||
|
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Common labels
|
||||||
|
*/}}
|
||||||
|
{{- define "odoo-argocd-apps.labels" -}}
|
||||||
|
helm.sh/chart: {{ include "odoo-argocd-apps.chart" . }}
|
||||||
|
{{ include "odoo-argocd-apps.selectorLabels" . }}
|
||||||
|
{{- if .Chart.AppVersion }}
|
||||||
|
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
|
||||||
|
{{- end }}
|
||||||
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Selector labels
|
||||||
|
*/}}
|
||||||
|
{{- define "odoo-argocd-apps.selectorLabels" -}}
|
||||||
|
app.kubernetes.io/name: {{ include "odoo-argocd-apps.name" . }}
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create the name of the service account to use
|
||||||
|
*/}}
|
||||||
|
{{- define "odoo-argocd-apps.serviceAccountName" -}}
|
||||||
|
{{- if .Values.serviceAccount.create }}
|
||||||
|
{{- default (include "odoo-argocd-apps.fullname" .) .Values.serviceAccount.name }}
|
||||||
|
{{- else }}
|
||||||
|
{{- default "default" .Values.serviceAccount.name }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
43
odoo-argocd-apps/templates/odoo-chart.yaml
Normal file
43
odoo-argocd-apps/templates/odoo-chart.yaml
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: odoo-chart
|
||||||
|
namespace: {{ .Values.argocd.namespace }}
|
||||||
|
annotations:
|
||||||
|
argocd.argoproj.io/sync-wave: "0"
|
||||||
|
notifications.argoproj.io/subscribe.on-sync-succeeded.telegram: "-1002270587578"
|
||||||
|
spec:
|
||||||
|
project: {{ .Values.argocd.project }}
|
||||||
|
source:
|
||||||
|
repoURL: registry-1.docker.io/bitnamicharts
|
||||||
|
chart: odoo
|
||||||
|
targetRevision: 28.x
|
||||||
|
helm:
|
||||||
|
releaseName: odoo
|
||||||
|
valuesObject:
|
||||||
|
odooEmail: {{ .Values.odoo.odooEmail }}
|
||||||
|
replicaCount: {{ .Values.odoo.replicaCount }}
|
||||||
|
resourcesPreset: {{ .Values.odoo.resourcesPreset }}
|
||||||
|
persistence:
|
||||||
|
existingClaim: {{ .Values.odoo.dataPvc.name }}
|
||||||
|
postgresql:
|
||||||
|
enabled: false
|
||||||
|
externalDatabase:
|
||||||
|
host: odoo-db-rw
|
||||||
|
port: 5432
|
||||||
|
user: app
|
||||||
|
database: app
|
||||||
|
create: false
|
||||||
|
existingSecret: odoo-db-app
|
||||||
|
existingSecretPasswordKey: password
|
||||||
|
destination:
|
||||||
|
server: {{ .Values.destination.server }}
|
||||||
|
namespace: {{ .Values.destination.namespace }}
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true # Automatically remove resources no longer in the repo
|
||||||
|
selfHeal: true # Automatically self-heal when drift is detected
|
||||||
|
syncOptions:
|
||||||
|
- ApplyOutOfSyncOnly=true
|
||||||
|
- ServerSideApply=true
|
||||||
|
- CreateNamespace=true
|
||||||
30
odoo-argocd-apps/templates/odoo-postinstall.yaml
Normal file
30
odoo-argocd-apps/templates/odoo-postinstall.yaml
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: odoo-postinstall
|
||||||
|
namespace: {{ .Values.argocd.namespace }}
|
||||||
|
annotations:
|
||||||
|
argocd.argoproj.io/sync-wave: "1"
|
||||||
|
notifications.argoproj.io/subscribe.on-sync-succeeded.telegram: "-1002270587578"
|
||||||
|
spec:
|
||||||
|
project: {{ .Values.argocd.project }}
|
||||||
|
source:
|
||||||
|
repoURL: {{ .Values.argocd.postinstall.repoURL }}
|
||||||
|
targetRevision: {{ .Values.argocd.postinstall.targetRevision }}
|
||||||
|
path: {{ .Values.argocd.postinstall.path }}
|
||||||
|
helm:
|
||||||
|
releaseName: odoo-postinstall
|
||||||
|
valuesObject:
|
||||||
|
tailscaleIngresses:
|
||||||
|
odooHostname: {{ .Values.tailscaleIngresses.odooHostname }}
|
||||||
|
destination:
|
||||||
|
server: {{ .Values.destination.server }}
|
||||||
|
namespace: {{ .Values.destination.namespace }}
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true # Automatically remove resources no longer in the repo
|
||||||
|
selfHeal: true # Automatically self-heal when drift is detected
|
||||||
|
syncOptions:
|
||||||
|
- ApplyOutOfSyncOnly=true
|
||||||
|
- ServerSideApply=true
|
||||||
|
- CreateNamespace=true
|
||||||
36
odoo-argocd-apps/templates/odoo-requirements-app.yaml
Normal file
36
odoo-argocd-apps/templates/odoo-requirements-app.yaml
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: odoo-requirements
|
||||||
|
namespace: {{ .Values.argocd.namespace }}
|
||||||
|
annotations:
|
||||||
|
argocd.argoproj.io/sync-wave: "-1"
|
||||||
|
notifications.argoproj.io/subscribe.on-sync-succeeded.telegram: "-1002270587578"
|
||||||
|
spec:
|
||||||
|
project: {{ .Values.argocd.project }}
|
||||||
|
source:
|
||||||
|
repoURL: {{ .Values.argocd.requirements.repoURL }}
|
||||||
|
targetRevision: {{ .Values.argocd.requirements.targetRevision }}
|
||||||
|
path: {{ .Values.argocd.requirements.path }}
|
||||||
|
helm:
|
||||||
|
releaseName: odoo-requirements
|
||||||
|
valuesObject:
|
||||||
|
odoo:
|
||||||
|
dbCluster:
|
||||||
|
numInstances: {{ .Values.odoo.dbCluster.numInstances }}
|
||||||
|
size: {{ .Values.odoo.dbCluster.size }}
|
||||||
|
dataPvc:
|
||||||
|
name: {{ .Values.odoo.dataPvc.name }}
|
||||||
|
storageClassName: {{ .Values.odoo.dataPvc.storageClassName }}
|
||||||
|
size: {{ .Values.odoo.dataPvc.size }}
|
||||||
|
destination:
|
||||||
|
server: {{ .Values.destination.server }}
|
||||||
|
namespace: {{ .Values.destination.namespace }}
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true # Automatically remove resources no longer in the repo
|
||||||
|
selfHeal: true # Automatically self-heal when drift is detected
|
||||||
|
syncOptions:
|
||||||
|
- ApplyOutOfSyncOnly=true
|
||||||
|
- ServerSideApply=true
|
||||||
|
- CreateNamespace=true
|
||||||
30
odoo-argocd-apps/values.yaml
Normal file
30
odoo-argocd-apps/values.yaml
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
argocd:
|
||||||
|
namespace: argocd
|
||||||
|
project: default
|
||||||
|
requirements:
|
||||||
|
repoURL: "https://git.blarre.net/thomas/helm-charts.git"
|
||||||
|
targetRevision: HEAD
|
||||||
|
path: odoo-requirements
|
||||||
|
postinstall:
|
||||||
|
repoURL: "https://git.blarre.net/thomas/helm-charts.git"
|
||||||
|
targetRevision: HEAD
|
||||||
|
path: odoo-postinstall
|
||||||
|
|
||||||
|
destination:
|
||||||
|
server: "https://kubernetes.default.svc"
|
||||||
|
namespace: odoo
|
||||||
|
|
||||||
|
odoo:
|
||||||
|
dbCluster:
|
||||||
|
numInstances: 3
|
||||||
|
size: 10Gi
|
||||||
|
dataPvc:
|
||||||
|
name: odoo-data
|
||||||
|
storageClassName: ''
|
||||||
|
size: 40Gi
|
||||||
|
odooEmail: "admin@domain.net"
|
||||||
|
resourcesPreset: "large"
|
||||||
|
replicaCount: 1
|
||||||
|
|
||||||
|
tailscaleIngresses:
|
||||||
|
odooHostname: odoo
|
||||||
23
odoo-postinstall/.helmignore
Normal file
23
odoo-postinstall/.helmignore
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
# Patterns to ignore when building packages.
|
||||||
|
# This supports shell glob matching, relative path matching, and
|
||||||
|
# negation (prefixed with !). Only one pattern per line.
|
||||||
|
.DS_Store
|
||||||
|
# Common VCS dirs
|
||||||
|
.git/
|
||||||
|
.gitignore
|
||||||
|
.bzr/
|
||||||
|
.bzrignore
|
||||||
|
.hg/
|
||||||
|
.hgignore
|
||||||
|
.svn/
|
||||||
|
# Common backup files
|
||||||
|
*.swp
|
||||||
|
*.bak
|
||||||
|
*.tmp
|
||||||
|
*.orig
|
||||||
|
*~
|
||||||
|
# Various IDEs
|
||||||
|
.project
|
||||||
|
.idea/
|
||||||
|
*.tmproj
|
||||||
|
.vscode/
|
||||||
5
odoo-postinstall/Chart.yaml
Normal file
5
odoo-postinstall/Chart.yaml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
apiVersion: v2
|
||||||
|
name: odoo-postinstall
|
||||||
|
description: A Helm chart for deploying the postinall stuff for odoo, mainly the ingress
|
||||||
|
type: application
|
||||||
|
version: 0.1.0
|
||||||
62
odoo-postinstall/templates/_helpers.tpl
Normal file
62
odoo-postinstall/templates/_helpers.tpl
Normal file
@@ -0,0 +1,62 @@
|
|||||||
|
{{/*
|
||||||
|
Expand the name of the chart.
|
||||||
|
*/}}
|
||||||
|
{{- define "odoo-postinstall.name" -}}
|
||||||
|
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create a default fully qualified app name.
|
||||||
|
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
|
||||||
|
If release name contains chart name it will be used as a full name.
|
||||||
|
*/}}
|
||||||
|
{{- define "odoo-postinstall.fullname" -}}
|
||||||
|
{{- if .Values.fullnameOverride }}
|
||||||
|
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- else }}
|
||||||
|
{{- $name := default .Chart.Name .Values.nameOverride }}
|
||||||
|
{{- if contains $name .Release.Name }}
|
||||||
|
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create chart name and version as used by the chart label.
|
||||||
|
*/}}
|
||||||
|
{{- define "odoo-postinstall.chart" -}}
|
||||||
|
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Common labels
|
||||||
|
*/}}
|
||||||
|
{{- define "odoo-postinstall.labels" -}}
|
||||||
|
helm.sh/chart: {{ include "odoo-postinstall.chart" . }}
|
||||||
|
{{ include "odoo-postinstall.selectorLabels" . }}
|
||||||
|
{{- if .Chart.AppVersion }}
|
||||||
|
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
|
||||||
|
{{- end }}
|
||||||
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Selector labels
|
||||||
|
*/}}
|
||||||
|
{{- define "odoo-postinstall.selectorLabels" -}}
|
||||||
|
app.kubernetes.io/name: {{ include "odoo-postinstall.name" . }}
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create the name of the service account to use
|
||||||
|
*/}}
|
||||||
|
{{- define "odoo-postinstall.serviceAccountName" -}}
|
||||||
|
{{- if .Values.serviceAccount.create }}
|
||||||
|
{{- default (include "odoo-postinstall.fullname" .) .Values.serviceAccount.name }}
|
||||||
|
{{- else }}
|
||||||
|
{{- default "default" .Values.serviceAccount.name }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
16
odoo-postinstall/templates/odoo-ingress.yaml
Normal file
16
odoo-postinstall/templates/odoo-ingress.yaml
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: ts-odoo
|
||||||
|
annotations:
|
||||||
|
tailscale.com/funnel: "true"
|
||||||
|
spec:
|
||||||
|
defaultBackend:
|
||||||
|
service:
|
||||||
|
name: odoo
|
||||||
|
port:
|
||||||
|
name: http
|
||||||
|
ingressClassName: tailscale
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- {{ .Values.tailscaleIngresses.odooHostname }}
|
||||||
2
odoo-postinstall/values.yaml
Normal file
2
odoo-postinstall/values.yaml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
tailcaleIngresses:
|
||||||
|
odooHostname: odoo
|
||||||
23
odoo-requirements/.helmignore
Normal file
23
odoo-requirements/.helmignore
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
# Patterns to ignore when building packages.
|
||||||
|
# This supports shell glob matching, relative path matching, and
|
||||||
|
# negation (prefixed with !). Only one pattern per line.
|
||||||
|
.DS_Store
|
||||||
|
# Common VCS dirs
|
||||||
|
.git/
|
||||||
|
.gitignore
|
||||||
|
.bzr/
|
||||||
|
.bzrignore
|
||||||
|
.hg/
|
||||||
|
.hgignore
|
||||||
|
.svn/
|
||||||
|
# Common backup files
|
||||||
|
*.swp
|
||||||
|
*.bak
|
||||||
|
*.tmp
|
||||||
|
*.orig
|
||||||
|
*~
|
||||||
|
# Various IDEs
|
||||||
|
.project
|
||||||
|
.idea/
|
||||||
|
*.tmproj
|
||||||
|
.vscode/
|
||||||
5
odoo-requirements/Chart.yaml
Normal file
5
odoo-requirements/Chart.yaml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
apiVersion: v2
|
||||||
|
name: odoo-requirements
|
||||||
|
description: A Helm chart for the requirements for Odoo
|
||||||
|
type: application
|
||||||
|
version: 0.1.0
|
||||||
62
odoo-requirements/templates/_helpers.tpl
Normal file
62
odoo-requirements/templates/_helpers.tpl
Normal file
@@ -0,0 +1,62 @@
|
|||||||
|
{{/*
|
||||||
|
Expand the name of the chart.
|
||||||
|
*/}}
|
||||||
|
{{- define "odoo-requirements.name" -}}
|
||||||
|
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create a default fully qualified app name.
|
||||||
|
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
|
||||||
|
If release name contains chart name it will be used as a full name.
|
||||||
|
*/}}
|
||||||
|
{{- define "odoo-requirements.fullname" -}}
|
||||||
|
{{- if .Values.fullnameOverride }}
|
||||||
|
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- else }}
|
||||||
|
{{- $name := default .Chart.Name .Values.nameOverride }}
|
||||||
|
{{- if contains $name .Release.Name }}
|
||||||
|
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create chart name and version as used by the chart label.
|
||||||
|
*/}}
|
||||||
|
{{- define "odoo-requirements.chart" -}}
|
||||||
|
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Common labels
|
||||||
|
*/}}
|
||||||
|
{{- define "odoo-requirements.labels" -}}
|
||||||
|
helm.sh/chart: {{ include "odoo-requirements.chart" . }}
|
||||||
|
{{ include "odoo-requirements.selectorLabels" . }}
|
||||||
|
{{- if .Chart.AppVersion }}
|
||||||
|
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
|
||||||
|
{{- end }}
|
||||||
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Selector labels
|
||||||
|
*/}}
|
||||||
|
{{- define "odoo-requirements.selectorLabels" -}}
|
||||||
|
app.kubernetes.io/name: {{ include "odoo-requirements.name" . }}
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create the name of the service account to use
|
||||||
|
*/}}
|
||||||
|
{{- define "odoo-requirements.serviceAccountName" -}}
|
||||||
|
{{- if .Values.serviceAccount.create }}
|
||||||
|
{{- default (include "odoo-requirements.fullname" .) .Values.serviceAccount.name }}
|
||||||
|
{{- else }}
|
||||||
|
{{- default "default" .Values.serviceAccount.name }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
8
odoo-requirements/templates/db-cluster.yaml
Normal file
8
odoo-requirements/templates/db-cluster.yaml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
apiVersion: postgresql.cnpg.io/v1
|
||||||
|
kind: Cluster
|
||||||
|
metadata:
|
||||||
|
name: odoo-db
|
||||||
|
spec:
|
||||||
|
instances: {{ .Values.odoo.dbCluster.numInstances }}
|
||||||
|
storage:
|
||||||
|
size: {{ .Values.odoo.dbCluster.size }}
|
||||||
11
odoo-requirements/templates/odoo-data.yaml
Normal file
11
odoo-requirements/templates/odoo-data.yaml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: {{ .Values.odoo.dataPvc.name }}
|
||||||
|
spec:
|
||||||
|
storageClassName: {{ .Values.odoo.dataPvc.storageClassName }}
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: {{ .Values.odoo.dataPvc.size }}
|
||||||
8
odoo-requirements/values.yaml
Normal file
8
odoo-requirements/values.yaml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
odoo:
|
||||||
|
dbCluster:
|
||||||
|
numInstances: 3
|
||||||
|
size: 10Gi
|
||||||
|
dataPvc:
|
||||||
|
name: odoo-data
|
||||||
|
storageClassName: ''
|
||||||
|
size: 40Gi
|
||||||
23
thomflix-argocd-apps/.helmignore
Normal file
23
thomflix-argocd-apps/.helmignore
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
# Patterns to ignore when building packages.
|
||||||
|
# This supports shell glob matching, relative path matching, and
|
||||||
|
# negation (prefixed with !). Only one pattern per line.
|
||||||
|
.DS_Store
|
||||||
|
# Common VCS dirs
|
||||||
|
.git/
|
||||||
|
.gitignore
|
||||||
|
.bzr/
|
||||||
|
.bzrignore
|
||||||
|
.hg/
|
||||||
|
.hgignore
|
||||||
|
.svn/
|
||||||
|
# Common backup files
|
||||||
|
*.swp
|
||||||
|
*.bak
|
||||||
|
*.tmp
|
||||||
|
*.orig
|
||||||
|
*~
|
||||||
|
# Various IDEs
|
||||||
|
.project
|
||||||
|
.idea/
|
||||||
|
*.tmproj
|
||||||
|
.vscode/
|
||||||
5
thomflix-argocd-apps/Chart.yaml
Normal file
5
thomflix-argocd-apps/Chart.yaml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
apiVersion: v2
|
||||||
|
name: thomflix-argocd-apps
|
||||||
|
description: A Helm chart gathering all the argocd apps for Thomflix
|
||||||
|
type: application
|
||||||
|
version: 0.1.0
|
||||||
62
thomflix-argocd-apps/templates/_helpers.tpl
Normal file
62
thomflix-argocd-apps/templates/_helpers.tpl
Normal file
@@ -0,0 +1,62 @@
|
|||||||
|
{{/*
|
||||||
|
Expand the name of the chart.
|
||||||
|
*/}}
|
||||||
|
{{- define "thomflix-argocd-apps.name" -}}
|
||||||
|
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create a default fully qualified app name.
|
||||||
|
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
|
||||||
|
If release name contains chart name it will be used as a full name.
|
||||||
|
*/}}
|
||||||
|
{{- define "thomflix-argocd-apps.fullname" -}}
|
||||||
|
{{- if .Values.fullnameOverride }}
|
||||||
|
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- else }}
|
||||||
|
{{- $name := default .Chart.Name .Values.nameOverride }}
|
||||||
|
{{- if contains $name .Release.Name }}
|
||||||
|
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create chart name and version as used by the chart label.
|
||||||
|
*/}}
|
||||||
|
{{- define "thomflix-argocd-apps.chart" -}}
|
||||||
|
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Common labels
|
||||||
|
*/}}
|
||||||
|
{{- define "thomflix-argocd-apps.labels" -}}
|
||||||
|
helm.sh/chart: {{ include "thomflix-argocd-apps.chart" . }}
|
||||||
|
{{ include "thomflix-argocd-apps.selectorLabels" . }}
|
||||||
|
{{- if .Chart.AppVersion }}
|
||||||
|
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
|
||||||
|
{{- end }}
|
||||||
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Selector labels
|
||||||
|
*/}}
|
||||||
|
{{- define "thomflix-argocd-apps.selectorLabels" -}}
|
||||||
|
app.kubernetes.io/name: {{ include "thomflix-argocd-apps.name" . }}
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create the name of the service account to use
|
||||||
|
*/}}
|
||||||
|
{{- define "thomflix-argocd-apps.serviceAccountName" -}}
|
||||||
|
{{- if .Values.serviceAccount.create }}
|
||||||
|
{{- default (include "thomflix-argocd-apps.fullname" .) .Values.serviceAccount.name }}
|
||||||
|
{{- else }}
|
||||||
|
{{- default "default" .Values.serviceAccount.name }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
56
thomflix-argocd-apps/templates/filebrowser-chart.yaml
Normal file
56
thomflix-argocd-apps/templates/filebrowser-chart.yaml
Normal file
@@ -0,0 +1,56 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: filebrowser
|
||||||
|
namespace: {{ .Values.argocd.namespace }}
|
||||||
|
annotations:
|
||||||
|
argocd.argoproj.io/sync-wave: "0"
|
||||||
|
notifications.argoproj.io/subscribe.on-sync-succeeded.telegram: "-1002270587578"
|
||||||
|
spec:
|
||||||
|
project: {{ .Values.argocd.project }}
|
||||||
|
source:
|
||||||
|
repoURL: "tccr.io/truecharts"
|
||||||
|
chart: filebrowser
|
||||||
|
targetRevision: 11.x
|
||||||
|
helm:
|
||||||
|
releaseName: filebrowser
|
||||||
|
valuesObject:
|
||||||
|
persistence:
|
||||||
|
config:
|
||||||
|
enabled: true
|
||||||
|
mountPath: /config
|
||||||
|
type: pvc
|
||||||
|
namespace: {{ .Values.mainNamespace }}
|
||||||
|
accessModes: ReadWriteOnce
|
||||||
|
size: 100Mi
|
||||||
|
storageClass: {{ .Values.generalConfigStorageClass }}
|
||||||
|
database:
|
||||||
|
enabled: true
|
||||||
|
mountPath: /database
|
||||||
|
type: pvc
|
||||||
|
namespace: {{ .Values.mainNamespace }}
|
||||||
|
accessModes: ReadWriteOnce
|
||||||
|
size: 100Mi
|
||||||
|
storageClass: {{ .Values.generalConfigStorageClass }}
|
||||||
|
data:
|
||||||
|
enabled: true
|
||||||
|
mountPath: /data
|
||||||
|
type: pvc
|
||||||
|
namespace: {{ .Values.mainNamespace }}
|
||||||
|
existingClaim: thomflix-media
|
||||||
|
destination:
|
||||||
|
server: {{ .Values.mainDestination }}
|
||||||
|
namespace: {{ .Values.mainNamespace }}
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true # Automatically remove resources no longer in the repo
|
||||||
|
selfHeal: true # Automatically self-heal when drift is detected
|
||||||
|
syncOptions:
|
||||||
|
- ApplyOutOfSyncOnly=true
|
||||||
|
- ServerSideApply=true
|
||||||
|
- CreateNamespace=true
|
||||||
|
ignoreDifferences:
|
||||||
|
- group: apps
|
||||||
|
kind: Deployment
|
||||||
|
jsonPointers:
|
||||||
|
- /spec/template/spec/hostUsers
|
||||||
42
thomflix-argocd-apps/templates/flaresolverr-chart.yaml
Normal file
42
thomflix-argocd-apps/templates/flaresolverr-chart.yaml
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: flaresolveer
|
||||||
|
namespace: {{ .Values.argocd.namespace }}
|
||||||
|
annotations:
|
||||||
|
argocd.argoproj.io/sync-wave: "0"
|
||||||
|
notifications.argoproj.io/subscribe.on-sync-succeeded.telegram: "-1002270587578"
|
||||||
|
spec:
|
||||||
|
project: {{ .Values.argocd.project }}
|
||||||
|
source:
|
||||||
|
repoURL: "tccr.io/truecharts"
|
||||||
|
chart: flaresolverr
|
||||||
|
targetRevision: 15.x
|
||||||
|
helm:
|
||||||
|
releaseName: flaresolverr
|
||||||
|
valuesObject:
|
||||||
|
persistence:
|
||||||
|
config:
|
||||||
|
enabled: true
|
||||||
|
mountPath: /config
|
||||||
|
type: pvc
|
||||||
|
namespace: {{ .Values.mainNamespace }}
|
||||||
|
accessModes: ReadWriteOnce
|
||||||
|
storageClass: {{ .Values.generalConfigStorageClass }}
|
||||||
|
size: 100Mi
|
||||||
|
destination:
|
||||||
|
server: {{ .Values.mainDestination }}
|
||||||
|
namespace: {{ .Values.mainNamespace }}
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true # Automatically remove resources no longer in the repo
|
||||||
|
selfHeal: true # Automatically self-heal when drift is detected
|
||||||
|
syncOptions:
|
||||||
|
- ApplyOutOfSyncOnly=true
|
||||||
|
- ServerSideApply=true
|
||||||
|
- CreateNamespace=true
|
||||||
|
ignoreDifferences:
|
||||||
|
- group: apps
|
||||||
|
kind: Deployment
|
||||||
|
jsonPointers:
|
||||||
|
- /spec/template/spec/hostUsers
|
||||||
42
thomflix-argocd-apps/templates/jackett-chart.yaml
Normal file
42
thomflix-argocd-apps/templates/jackett-chart.yaml
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: jackett
|
||||||
|
namespace: {{ .Values.argocd.namespace }}
|
||||||
|
annotations:
|
||||||
|
argocd.argoproj.io/sync-wave: "0"
|
||||||
|
notifications.argoproj.io/subscribe.on-sync-succeeded.telegram: "-1002270587578"
|
||||||
|
spec:
|
||||||
|
project: {{ .Values.argocd.project }}
|
||||||
|
source:
|
||||||
|
repoURL: "tccr.io/truecharts"
|
||||||
|
chart: jackett
|
||||||
|
targetRevision: 23.x
|
||||||
|
helm:
|
||||||
|
releaseName: jackett
|
||||||
|
valuesObject:
|
||||||
|
persistence:
|
||||||
|
config:
|
||||||
|
enabled: true
|
||||||
|
mountPath: "/config"
|
||||||
|
type: pvc
|
||||||
|
storageClass: {{ .Values.generalConfigStorageClass }}
|
||||||
|
namespace: {{ .Values.mainNamespace }}
|
||||||
|
accessModes: ReadWriteOnce
|
||||||
|
size: 100Mi
|
||||||
|
destination:
|
||||||
|
server: {{ .Values.mainDestination }}
|
||||||
|
namespace: {{ .Values.mainNamespace }}
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true # Automatically remove resources no longer in the repo
|
||||||
|
selfHeal: true # Automatically self-heal when drift is detected
|
||||||
|
syncOptions:
|
||||||
|
- ApplyOutOfSyncOnly=true
|
||||||
|
- ServerSideApply=true
|
||||||
|
- CreateNamespace=true
|
||||||
|
ignoreDifferences:
|
||||||
|
- group: apps
|
||||||
|
kind: Deployment
|
||||||
|
jsonPointers:
|
||||||
|
- /spec/template/spec/hostUsers
|
||||||
66
thomflix-argocd-apps/templates/jellyfin-chart.yaml
Normal file
66
thomflix-argocd-apps/templates/jellyfin-chart.yaml
Normal file
@@ -0,0 +1,66 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: jellyfin
|
||||||
|
namespace: {{ .Values.argocd.namespace }}
|
||||||
|
annotations:
|
||||||
|
argocd.argoproj.io/sync-wave: "0"
|
||||||
|
notifications.argoproj.io/subscribe.on-sync-succeeded.telegram: "-1002270587578"
|
||||||
|
spec:
|
||||||
|
project: {{ .Values.argocd.project }}
|
||||||
|
source:
|
||||||
|
repoURL: "tccr.io/truecharts"
|
||||||
|
chart: jellyfin
|
||||||
|
targetRevision: 20.x
|
||||||
|
helm:
|
||||||
|
releaseName: jellyfin
|
||||||
|
valuesObject:
|
||||||
|
persistence:
|
||||||
|
config:
|
||||||
|
enabled: true
|
||||||
|
mountPath: "/config"
|
||||||
|
type: pvc
|
||||||
|
storageClass: {{ .Values.generalConfigStorageClass }}
|
||||||
|
size: 8Gi
|
||||||
|
accessModes: ReadWriteOnce
|
||||||
|
namespace: {{ .Values.mainNamespace }}
|
||||||
|
cache:
|
||||||
|
enabled: true
|
||||||
|
mountPath: "/cache"
|
||||||
|
type: pvc
|
||||||
|
storageClass: {{ .Values.generalConfigStorageClass }}
|
||||||
|
size: 8Gi
|
||||||
|
accessModes: ReadWriteOnce
|
||||||
|
namespace: {{ .Values.mainNamespace }}
|
||||||
|
transcode:
|
||||||
|
enabled: true
|
||||||
|
mountPath: "/config/transcodes"
|
||||||
|
type: pvc
|
||||||
|
storageClass: {{ .Values.generalConfigStorageClass }}
|
||||||
|
size: 1Gi
|
||||||
|
accessModes: ReadWriteOnce
|
||||||
|
namespace: {{ .Values.mainNamespace }}
|
||||||
|
media:
|
||||||
|
enabled: true
|
||||||
|
mountPath: "/data/media"
|
||||||
|
type: pvc
|
||||||
|
existingClaim: thomflix-media
|
||||||
|
namespace: {{ .Values.mainNamespace }}
|
||||||
|
subPath: "data/media"
|
||||||
|
chartContext.appUrl: {{ .Values.jellyfinURL }}
|
||||||
|
destination:
|
||||||
|
server: {{ .Values.mainDestination }}
|
||||||
|
namespace: {{ .Values.mainNamespace }}
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true # Automatically remove resources no longer in the repo
|
||||||
|
selfHeal: true # Automatically self-heal when drift is detected
|
||||||
|
syncOptions:
|
||||||
|
- ApplyOutOfSyncOnly=true
|
||||||
|
- ServerSideApply=true
|
||||||
|
- CreateNamespace=true
|
||||||
|
ignoreDifferences:
|
||||||
|
- group: apps
|
||||||
|
kind: Deployment
|
||||||
|
jsonPointers:
|
||||||
|
- /spec/template/spec/hostUsers
|
||||||
42
thomflix-argocd-apps/templates/jellyseerr-chart.yaml
Normal file
42
thomflix-argocd-apps/templates/jellyseerr-chart.yaml
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: jellyseerr
|
||||||
|
namespace: {{ .Values.argocd.namespace }}
|
||||||
|
annotations:
|
||||||
|
argocd.argoproj.io/sync-wave: "0"
|
||||||
|
notifications.argoproj.io/subscribe.on-sync-succeeded.telegram: "-1002270587578"
|
||||||
|
spec:
|
||||||
|
project: {{ .Values.argocd.project }}
|
||||||
|
source:
|
||||||
|
repoURL: "tccr.io/truecharts"
|
||||||
|
chart: jellyseerr
|
||||||
|
targetRevision: 12.x
|
||||||
|
helm:
|
||||||
|
releaseName: jellyseer
|
||||||
|
valuesObject:
|
||||||
|
persistence:
|
||||||
|
config:
|
||||||
|
enabled: true
|
||||||
|
mountPath: "/app/config"
|
||||||
|
type: pvc
|
||||||
|
storageClass: {{ .Values.generalConfigStorageClass }}
|
||||||
|
namespace: {{ .Values.mainNamespace }}
|
||||||
|
size: 100Mi
|
||||||
|
accessModes: ReadWriteOnce
|
||||||
|
destination:
|
||||||
|
server: {{ .Values.mainDestination }}
|
||||||
|
namespace: {{ .Values.mainNamespace }}
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true # Automatically remove resources no longer in the repo
|
||||||
|
selfHeal: true # Automatically self-heal when drift is detected
|
||||||
|
syncOptions:
|
||||||
|
- ApplyOutOfSyncOnly=true
|
||||||
|
- ServerSideApply=true
|
||||||
|
- CreateNamespace=true
|
||||||
|
ignoreDifferences:
|
||||||
|
- group: apps
|
||||||
|
kind: Deployment
|
||||||
|
jsonPointers:
|
||||||
|
- /spec/template/spec/hostUsers
|
||||||
58
thomflix-argocd-apps/templates/radarr-chart.yaml
Normal file
58
thomflix-argocd-apps/templates/radarr-chart.yaml
Normal file
@@ -0,0 +1,58 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: radarr
|
||||||
|
namespace: {{ .Values.argocd.namespace }}
|
||||||
|
annotations:
|
||||||
|
argocd.argoproj.io/sync-wave: "0"
|
||||||
|
notifications.argoproj.io/subscribe.on-sync-succeeded.telegram: "-1002270587578"
|
||||||
|
spec:
|
||||||
|
project: {{ .Values.argocd.project }}
|
||||||
|
source:
|
||||||
|
repoURL: "tccr.io/truecharts"
|
||||||
|
chart: radarr
|
||||||
|
targetRevision: 23.x
|
||||||
|
helm:
|
||||||
|
releaseName: radarr
|
||||||
|
valuesObject:
|
||||||
|
persistence:
|
||||||
|
config:
|
||||||
|
type: pvc
|
||||||
|
storageClass: {{ .Values.generalConfigStorageClass }}
|
||||||
|
namespace: {{ .Values.mainNamespace }}
|
||||||
|
accessModes: ReadWriteOnce
|
||||||
|
size: 512Mi
|
||||||
|
enabled: true
|
||||||
|
targetSelector:
|
||||||
|
main:
|
||||||
|
main:
|
||||||
|
mountPath: /config
|
||||||
|
data:
|
||||||
|
enabled: true
|
||||||
|
type: pvc
|
||||||
|
existingClaim: thomflix-media
|
||||||
|
namespace: {{ .Values.mainNamespace }}
|
||||||
|
targetSelector:
|
||||||
|
main:
|
||||||
|
main:
|
||||||
|
subPath: "data"
|
||||||
|
mountPath: "/data"
|
||||||
|
metrics:
|
||||||
|
main:
|
||||||
|
enabled: false
|
||||||
|
destination:
|
||||||
|
server: {{ .Values.mainDestination }}
|
||||||
|
namespace: {{ .Values.mainNamespace }}
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true # Automatically remove resources no longer in the repo
|
||||||
|
selfHeal: true # Automatically self-heal when drift is detected
|
||||||
|
syncOptions:
|
||||||
|
- ApplyOutOfSyncOnly=true
|
||||||
|
- ServerSideApply=true
|
||||||
|
- CreateNamespace=true
|
||||||
|
ignoreDifferences:
|
||||||
|
- group: apps
|
||||||
|
kind: Deployment
|
||||||
|
jsonPointers:
|
||||||
|
- /spec/template/spec/hostUsers
|
||||||
58
thomflix-argocd-apps/templates/sonarr-chart.yaml
Normal file
58
thomflix-argocd-apps/templates/sonarr-chart.yaml
Normal file
@@ -0,0 +1,58 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: sonarr
|
||||||
|
namespace: {{ .Values.argocd.namespace }}
|
||||||
|
annotations:
|
||||||
|
argocd.argoproj.io/sync-wave: "0"
|
||||||
|
notifications.argoproj.io/subscribe.on-sync-succeeded.telegram: "-1002270587578"
|
||||||
|
spec:
|
||||||
|
project: {{ .Values.argocd.project }}
|
||||||
|
source:
|
||||||
|
repoURL: "tccr.io/truecharts"
|
||||||
|
chart: sonarr
|
||||||
|
targetRevision: 23.x
|
||||||
|
helm:
|
||||||
|
releaseName: sonarr
|
||||||
|
valuesObject:
|
||||||
|
persistence:
|
||||||
|
config:
|
||||||
|
type: pvc
|
||||||
|
storageClass: {{ .Values.generalConfigStorageClass }}
|
||||||
|
namespace: {{ .Values.mainNamespace }}
|
||||||
|
accessModes: ReadWriteOnce
|
||||||
|
size: 512Mi
|
||||||
|
enabled: true
|
||||||
|
targetSelector:
|
||||||
|
main:
|
||||||
|
main:
|
||||||
|
mountPath: /config
|
||||||
|
data:
|
||||||
|
enabled: true
|
||||||
|
type: pvc
|
||||||
|
existingClaim: thomflix-media
|
||||||
|
namespace: {{ .Values.mainNamespace }}
|
||||||
|
targetSelector:
|
||||||
|
main:
|
||||||
|
main:
|
||||||
|
subPath: "data"
|
||||||
|
mountPath: "/data"
|
||||||
|
metrics:
|
||||||
|
main:
|
||||||
|
enabled: false
|
||||||
|
destination:
|
||||||
|
server: {{ .Values.mainDestination }}
|
||||||
|
namespace: {{ .Values.mainNamespace }}
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true # Automatically remove resources no longer in the repo
|
||||||
|
selfHeal: true # Automatically self-heal when drift is detected
|
||||||
|
syncOptions:
|
||||||
|
- ApplyOutOfSyncOnly=true
|
||||||
|
- ServerSideApply=true
|
||||||
|
- CreateNamespace=true
|
||||||
|
ignoreDifferences:
|
||||||
|
- group: apps
|
||||||
|
kind: Deployment
|
||||||
|
jsonPointers:
|
||||||
|
- /spec/template/spec/hostUsers
|
||||||
30
thomflix-argocd-apps/templates/thomflix-postinstall-app.yaml
Normal file
30
thomflix-argocd-apps/templates/thomflix-postinstall-app.yaml
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: thomflix-postinstall
|
||||||
|
namespace: {{ .Values.argocd.namespace }}
|
||||||
|
annotations:
|
||||||
|
argocd.argoproj.io/sync-wave: "1"
|
||||||
|
notifications.argoproj.io/subscribe.on-sync-succeeded.telegram: "-1002270587578"
|
||||||
|
spec:
|
||||||
|
project: {{ .Values.argocd.project }}
|
||||||
|
source:
|
||||||
|
repoURL: "https://git.blarre.net/thomas/helm-charts.git"
|
||||||
|
targetRevision: HEAD
|
||||||
|
path: thomflix-postinstall
|
||||||
|
helm:
|
||||||
|
releaseName: thomflix-postinstall
|
||||||
|
valuesObject:
|
||||||
|
jellyfinURL: {{ .Values.jellyfinURL }}
|
||||||
|
jellyseerrURL: {{ .Values.jellyseerrURL }}
|
||||||
|
destination:
|
||||||
|
server: {{ .Values.mainDestination }}
|
||||||
|
namespace: {{ .Values.mainNamespace }}
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true # Automatically remove resources no longer in the repo
|
||||||
|
selfHeal: true # Automatically self-heal when drift is detected
|
||||||
|
syncOptions:
|
||||||
|
- ApplyOutOfSyncOnly=true
|
||||||
|
- ServerSideApply=true
|
||||||
|
- CreateNamespace=true
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: thomflix-requirements
|
||||||
|
namespace: {{ .Values.argocd.namespace }}
|
||||||
|
annotations:
|
||||||
|
argocd.argoproj.io/sync-wave: "-1"
|
||||||
|
notifications.argoproj.io/subscribe.on-sync-succeeded.telegram: "-1002270587578"
|
||||||
|
spec:
|
||||||
|
project: {{ .Values.argocd.project }}
|
||||||
|
source:
|
||||||
|
repoURL: "https://git.blarre.net/thomas/helm-charts.git"
|
||||||
|
targetRevision: HEAD
|
||||||
|
path: thomflix-requirements
|
||||||
|
helm:
|
||||||
|
releaseName: thomflix-requirements
|
||||||
|
valuesObject:
|
||||||
|
mediaLibrary:
|
||||||
|
storageClassName: {{ .Values.mediaLibrary.storageClassName }}
|
||||||
|
storageSize: {{ .Values.mediaLibrary.storageSize }}
|
||||||
|
destination:
|
||||||
|
server: {{ .Values.mainDestination }}
|
||||||
|
namespace: {{ .Values.mainNamespace }}
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true # Automatically remove resources no longer in the repo
|
||||||
|
selfHeal: true # Automatically self-heal when drift is detected
|
||||||
|
syncOptions:
|
||||||
|
- ApplyOutOfSyncOnly=true
|
||||||
|
- ServerSideApply=true
|
||||||
|
- CreateNamespace=true
|
||||||
137
thomflix-argocd-apps/templates/transmission-chart.yaml
Normal file
137
thomflix-argocd-apps/templates/transmission-chart.yaml
Normal file
@@ -0,0 +1,137 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: transmission
|
||||||
|
namespace: {{ .Values.argocd.namespace }}
|
||||||
|
annotations:
|
||||||
|
argocd.argoproj.io/sync-wave: "0"
|
||||||
|
notifications.argoproj.io/subscribe.on-sync-succeeded.telegram: "-1002270587578"
|
||||||
|
spec:
|
||||||
|
project: {{ .Values.argocd.project }}
|
||||||
|
source:
|
||||||
|
repoURL: "tccr.io/truecharts"
|
||||||
|
chart: transmission
|
||||||
|
targetRevision: 22.x
|
||||||
|
helm:
|
||||||
|
releaseName: transmission
|
||||||
|
valuesObject:
|
||||||
|
persistence:
|
||||||
|
config:
|
||||||
|
enabled: true
|
||||||
|
mountPath: "/config"
|
||||||
|
type: pvc
|
||||||
|
namespace: {{ .Values.mainNamespace }}
|
||||||
|
accessModes: ReadWriteOnce
|
||||||
|
size: 100Mi
|
||||||
|
storageClass: longhorn-config
|
||||||
|
downloads:
|
||||||
|
enabled: true
|
||||||
|
mountPath: "/data/torrents"
|
||||||
|
type: pvc
|
||||||
|
namespace: {{ .Values.mainNamespace }}
|
||||||
|
existingClaim: thomflix-media
|
||||||
|
subPath: "data/torrents"
|
||||||
|
workload:
|
||||||
|
main:
|
||||||
|
podSpec:
|
||||||
|
containers:
|
||||||
|
main:
|
||||||
|
probes:
|
||||||
|
liveness:
|
||||||
|
enabled: true
|
||||||
|
type: tcp
|
||||||
|
startup:
|
||||||
|
enabled: true
|
||||||
|
type: tcp
|
||||||
|
readiness:
|
||||||
|
enabled: true
|
||||||
|
type: tcp
|
||||||
|
env:
|
||||||
|
# PUID: 1001
|
||||||
|
# URL is set here so it wont be able to get overwritten by the user
|
||||||
|
# as this will break the probes, if the need arises we can expose it.
|
||||||
|
TRANSMISSION__RPC_URL: "/transmission"
|
||||||
|
# TRANSMISSION__RPC_USERNAME: ""
|
||||||
|
# TRANSMISSION__RPC_PASSWORD: ""
|
||||||
|
# TRANSMISSION__RPC_AUTHENTICATION_REQUIRED: false
|
||||||
|
# TRANSMISSION__ALT_SPEED_DOWN: 50
|
||||||
|
# TRANSMISSION__ALT_SPEED_ENABLED: false
|
||||||
|
# TRANSMISSION__ALT_SPEED_TIME_BEGIN: 540
|
||||||
|
# TRANSMISSION__ALT_SPEED_TIME_DAY: 127
|
||||||
|
# TRANSMISSION__ALT_SPEED_TIME_ENABLED: false
|
||||||
|
# TRANSMISSION__ALT_SPEED_TIME_END: 1020
|
||||||
|
# TRANSMISSION__ALT_SPEED_UP: 50
|
||||||
|
# TRANSMISSION__BIND_ADDRESS_IPV4: "0.0.0.0"
|
||||||
|
# TRANSMISSION__BIND_ADDRESS_IPV6: "::"
|
||||||
|
# TRANSMISSION__BLOCKLIST_ENABLED: true
|
||||||
|
# TRANSMISSION__BLOCKLIST_URL: "https://github.com/Naunter/BT_BlockLists/releases/download/v.1/bt_blocklists.gz"
|
||||||
|
# TRANSMISSION__CACHE_SIZE_MB: 4
|
||||||
|
# TRANSMISSION__DHT_ENABLED: true
|
||||||
|
TRANSMISSION__DOWNLOAD_DIR: "/data/torrents"
|
||||||
|
# TRANSMISSION__DOWNLOAD_QUEUE_ENABLED: true
|
||||||
|
# TRANSMISSION__DOWNLOAD_QUEUE_SIZE: 5
|
||||||
|
# TRANSMISSION__ENCRYPTION: 1
|
||||||
|
# TRANSMISSION__IDLE_SEEDING_LIMIT: 30
|
||||||
|
# TRANSMISSION__IDLE_SEEDING_LIMIT_ENABLED: false
|
||||||
|
TRANSMISSION__INCOMPLETE_DIR: "/data/torrents/incomplete"
|
||||||
|
# TRANSMISSION__INCOMPLETE_DIR_ENABLED: true
|
||||||
|
# TRANSMISSION__LPD_ENABLED: false
|
||||||
|
# TRANSMISSION__MESSAGE_LEVEL: 2
|
||||||
|
# TRANSMISSION__PEER_CONGESTION_ALGORITHM: ""
|
||||||
|
# TRANSMISSION__PEER_ID_TTL_HOURS: 6
|
||||||
|
# TRANSMISSION__PEER_LIMIT_GLOBAL: 200
|
||||||
|
# TRANSMISSION__PEER_LIMIT_PER_TORRENT: 50
|
||||||
|
TRANSMISSION__PEER_PORT: "{{ .Values.transmission.torrentPort }}"
|
||||||
|
# TRANSMISSION__PEER_PORT_RANDOM_HIGH: 65535
|
||||||
|
# TRANSMISSION__PEER_PORT_RANDOM_LOW: 49152
|
||||||
|
# TRANSMISSION__PEER_PORT_RANDOM_ON_START: false
|
||||||
|
# TRANSMISSION__PEER_SOCKET_TOS: default"
|
||||||
|
# TRANSMISSION__PEX_ENABLED: true
|
||||||
|
# TRANSMISSION__PORT_FORWARDING_ENABLED: false
|
||||||
|
# TRANSMISSION__PREALLOCATION: 1
|
||||||
|
# TRANSMISSION__PREFETCH_ENABLED: true
|
||||||
|
# TRANSMISSION__QUEUE_STALLED_ENABLED: true
|
||||||
|
# TRANSMISSION__QUEUE_STALLED_MINUTES: 30
|
||||||
|
# TRANSMISSION__RATIO_LIMIT: 2
|
||||||
|
# TRANSMISSION__RATIO_LIMIT_ENABLED: false
|
||||||
|
# TRANSMISSION__RENAME_PARTIAL_FILES: true
|
||||||
|
# TRANSMISSION__RPC_BIND_ADDRESS: "0.0.0.0"
|
||||||
|
# TRANSMISSION__RPC_ENABLED: true
|
||||||
|
# TRANSMISSION__RPC_HOST_WHITELIST: ""
|
||||||
|
# TRANSMISSION__RPC_HOST_WHITELIST_ENABLED: false
|
||||||
|
TRANSMISSION__RPC_PORT: "{{ .Values.transmission.rpcPort }}"
|
||||||
|
# TRANSMISSION__RPC_URL: "/transmission/"
|
||||||
|
# TRANSMISSION__RPC_WHITELIST: ""
|
||||||
|
# TRANSMISSION__RPC_WHITELIST_ENABLED: false
|
||||||
|
# TRANSMISSION__SCRAPE_PAUSED_TORRENTS_ENABLED: true
|
||||||
|
# TRANSMISSION__SCRIPT_TORRENT_DONE_ENABLED: false
|
||||||
|
# TRANSMISSION__SCRIPT_TORRENT_DONE_FILENAME: ""
|
||||||
|
# TRANSMISSION__SEED_QUEUE_ENABLED: false
|
||||||
|
# TRANSMISSION__SEED_QUEUE_SIZE: 10
|
||||||
|
# TRANSMISSION__SPEED_LIMIT_DOWN: 100
|
||||||
|
# TRANSMISSION__SPEED_LIMIT_DOWN_ENABLED: false
|
||||||
|
# TRANSMISSION__SPEED_LIMIT_UP: 100
|
||||||
|
# TRANSMISSION__SPEED_LIMIT_UP_ENABLED: false
|
||||||
|
# TRANSMISSION__START_ADDED_TORRENTS: true
|
||||||
|
# TRANSMISSION__TRASH_ORIGINAL_TORRENT_FILES: false
|
||||||
|
# TRANSMISSION__UMASK: 2
|
||||||
|
# TRANSMISSION__UPLOAD_SLOTS_PER_TORRENT: 14
|
||||||
|
# TRANSMISSION__UTP_ENABLED: true
|
||||||
|
# TRANSMISSION__WATCH_DIR: "/watch"
|
||||||
|
# TRANSMISSION__WATCH_DIR_ENABLED: false
|
||||||
|
destination:
|
||||||
|
server: {{ .Values.mainDestination }}
|
||||||
|
namespace: {{ .Values.mainNamespace }}
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true # Automatically remove resources no longer in the repo
|
||||||
|
selfHeal: true # Automatically self-heal when drift is detected
|
||||||
|
syncOptions:
|
||||||
|
- ApplyOutOfSyncOnly=true
|
||||||
|
- ServerSideApply=true
|
||||||
|
- CreateNamespace=true
|
||||||
|
ignoreDifferences:
|
||||||
|
- group: apps
|
||||||
|
kind: Deployment
|
||||||
|
jsonPointers:
|
||||||
|
- /spec/template/spec/hostUsers
|
||||||
19
thomflix-argocd-apps/values.yaml
Normal file
19
thomflix-argocd-apps/values.yaml
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
argocd:
|
||||||
|
namespace: argocd
|
||||||
|
project: default
|
||||||
|
|
||||||
|
mainDestination: https://kubernetes.default.svc
|
||||||
|
mainNamespace: thomflix
|
||||||
|
|
||||||
|
mediaLibrary:
|
||||||
|
storageClassName: default
|
||||||
|
storageSize: 1Ti
|
||||||
|
|
||||||
|
generalConfigStorageClass: default
|
||||||
|
|
||||||
|
transmission:
|
||||||
|
torrentPort: 51414
|
||||||
|
rpcPort: 10109
|
||||||
|
|
||||||
|
jellyfinURL: "jellyfin.domain.net"
|
||||||
|
jellyseerrURL: "jellyseerr.domain.net"
|
||||||
23
thomflix-postinstall/.helmignore
Normal file
23
thomflix-postinstall/.helmignore
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
# Patterns to ignore when building packages.
|
||||||
|
# This supports shell glob matching, relative path matching, and
|
||||||
|
# negation (prefixed with !). Only one pattern per line.
|
||||||
|
.DS_Store
|
||||||
|
# Common VCS dirs
|
||||||
|
.git/
|
||||||
|
.gitignore
|
||||||
|
.bzr/
|
||||||
|
.bzrignore
|
||||||
|
.hg/
|
||||||
|
.hgignore
|
||||||
|
.svn/
|
||||||
|
# Common backup files
|
||||||
|
*.swp
|
||||||
|
*.bak
|
||||||
|
*.tmp
|
||||||
|
*.orig
|
||||||
|
*~
|
||||||
|
# Various IDEs
|
||||||
|
.project
|
||||||
|
.idea/
|
||||||
|
*.tmproj
|
||||||
|
.vscode/
|
||||||
5
thomflix-postinstall/Chart.yaml
Normal file
5
thomflix-postinstall/Chart.yaml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
apiVersion: v2
|
||||||
|
name: thomflix-postinstall
|
||||||
|
description: A Helm chart for the ingresses of Thomflix
|
||||||
|
type: application
|
||||||
|
version: 0.1.0
|
||||||
62
thomflix-postinstall/templates/_helpers.tpl
Normal file
62
thomflix-postinstall/templates/_helpers.tpl
Normal file
@@ -0,0 +1,62 @@
|
|||||||
|
{{/*
|
||||||
|
Expand the name of the chart.
|
||||||
|
*/}}
|
||||||
|
{{- define "thomflix-postinstall.name" -}}
|
||||||
|
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create a default fully qualified app name.
|
||||||
|
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
|
||||||
|
If release name contains chart name it will be used as a full name.
|
||||||
|
*/}}
|
||||||
|
{{- define "thomflix-postinstall.fullname" -}}
|
||||||
|
{{- if .Values.fullnameOverride }}
|
||||||
|
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- else }}
|
||||||
|
{{- $name := default .Chart.Name .Values.nameOverride }}
|
||||||
|
{{- if contains $name .Release.Name }}
|
||||||
|
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create chart name and version as used by the chart label.
|
||||||
|
*/}}
|
||||||
|
{{- define "thomflix-postinstall.chart" -}}
|
||||||
|
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Common labels
|
||||||
|
*/}}
|
||||||
|
{{- define "thomflix-postinstall.labels" -}}
|
||||||
|
helm.sh/chart: {{ include "thomflix-postinstall.chart" . }}
|
||||||
|
{{ include "thomflix-postinstall.selectorLabels" . }}
|
||||||
|
{{- if .Chart.AppVersion }}
|
||||||
|
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
|
||||||
|
{{- end }}
|
||||||
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Selector labels
|
||||||
|
*/}}
|
||||||
|
{{- define "thomflix-postinstall.selectorLabels" -}}
|
||||||
|
app.kubernetes.io/name: {{ include "thomflix-postinstall.name" . }}
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create the name of the service account to use
|
||||||
|
*/}}
|
||||||
|
{{- define "thomflix-postinstall.serviceAccountName" -}}
|
||||||
|
{{- if .Values.serviceAccount.create }}
|
||||||
|
{{- default (include "thomflix-postinstall.fullname" .) .Values.serviceAccount.name }}
|
||||||
|
{{- else }}
|
||||||
|
{{- default "default" .Values.serviceAccount.name }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
14
thomflix-postinstall/templates/filebrowser-ingress.yaml
Normal file
14
thomflix-postinstall/templates/filebrowser-ingress.yaml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: filebrowser-thomflix
|
||||||
|
spec:
|
||||||
|
defaultBackend:
|
||||||
|
service:
|
||||||
|
name: filebrowser
|
||||||
|
port:
|
||||||
|
number: 10187
|
||||||
|
ingressClassName: tailscale
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- {{ .Values.tailscaleIngresses.filebrowserHostname }}
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user