diff --git a/library/ix-dev/community/mealie/ci/basic-values.yaml b/library/ix-dev/community/mealie/ci/basic-values.yaml new file mode 100644 index 0000000000..7c189ed3f7 --- /dev/null +++ b/library/ix-dev/community/mealie/ci/basic-values.yaml @@ -0,0 +1,15 @@ +mealieNetwork: + webPort: 31000 + +mealieConfig: + allowSignup: true + defaultGroup: Home + defaultAdminEmail: admin@example.com + defaultAdminPassword: supersecret + baseURL: http://localhost:31000 + +mealieStorage: + pgData: + type: pvc + pgBackup: + type: emptyDir diff --git a/library/ix-dev/community/mealie/ci/extra-values.yaml b/library/ix-dev/community/mealie/ci/extra-values.yaml new file mode 100644 index 0000000000..eb7cbc3006 --- /dev/null +++ b/library/ix-dev/community/mealie/ci/extra-values.yaml @@ -0,0 +1,20 @@ +mealieNetwork: + webPort: 31000 + +mealieConfig: + allowSignup: false + defaultGroup: Home + defaultAdminEmail: admin@example.com + defaultAdminPassword: supersecret + baseURL: http://localhost:31000 + +mealieStorage: + pgData: + type: pvc + pgBackup: + type: emptyDir + additionalStorages: + - type: pvc + mountPath: /data1 + - type: pvc + mountPath: /data2 diff --git a/library/ix-dev/community/mealie/ci/hostNet-values.yaml b/library/ix-dev/community/mealie/ci/hostNet-values.yaml new file mode 100644 index 0000000000..ec32147144 --- /dev/null +++ b/library/ix-dev/community/mealie/ci/hostNet-values.yaml @@ -0,0 +1,16 @@ +mealieNetwork: + webPort: 31000 + hostNetwork: true + +mealieConfig: + allowSignup: true + defaultGroup: Home + defaultAdminEmail: admin@example.com + defaultAdminPassword: supersecret + baseURL: http://localhost:31000 + +briefkastenStorage: + pgData: + type: pvc + pgBackup: + type: emptyDir diff --git a/library/ix-dev/community/mealie/templates/_portal.tpl b/library/ix-dev/community/mealie/templates/_portal.tpl new file mode 100644 index 0000000000..2ff6f714c4 --- /dev/null +++ b/library/ix-dev/community/mealie/templates/_portal.tpl @@ -0,0 +1,35 @@ +{{- define "mealie.portal" -}} + {{- $host := "$node_ip" -}} + {{- $port := "" -}} + {{- $protocol := "http" -}} + {{- if hasPrefix "https://" .Values.mealieConfig.baseURL -}} + {{- $protocol = "https" -}} + {{- end -}} + + {{- with .Values.mealieConfig.baseURL -}} {{/* Trim protocol and trailing slash */}} + {{- $host = . | trimPrefix "https://" | trimPrefix "http://" | trimSuffix "/" -}} + + {{- if contains ":" $host -}} + {{- $port = (split ":" $host)._1 -}} + {{- $host = (split ":" $host)._0 -}} + {{- end -}} + + {{- if not $port -}} + {{- if eq $protocol "https" -}} + {{- $port = "443" -}} + {{- else -}} + {{- $port = "80" -}} + {{- end -}} + {{- end -}} + {{- end }} +--- +apiVersion: v1 +kind: ConfigMap +metadata: + name: portal +data: + path: "/" + port: {{ $port | quote }} + protocol: {{ $protocol }} + host: {{ $host }} +{{- end -}} diff --git a/library/ix-dev/community/mealie/values.yaml b/library/ix-dev/community/mealie/values.yaml new file mode 100644 index 0000000000..079f979751 --- /dev/null +++ b/library/ix-dev/community/mealie/values.yaml @@ -0,0 +1,54 @@ +image: + repository: ghcr.io/mealie-recipes/mealie:nightly + pullPolicy: IfNotPresent + tag: v1.0.0-RC1.1 + +resources: + limits: + cpu: 4000m + memory: 8Gi + +mealieConfig: + allowSignup: true + defaultGroup: Home + defaultAdminEmail: '' + defaultAdminPassword: '' + baseURL: '' + additionalEnvs: [] + +mealieNetwork: + webPort: 31001 + hostNetwork: false + +mealieStorage: + data: + type: ixVolume + ixVolumeConfig: + datasetName: data + additionalStorages: [] + pgData: + type: ixVolume + ixVolumeConfig: + datasetName: pgData + pgBackup: + type: ixVolume + ixVolumeConfig: + datasetName: pgBackup + +notes: + custom: | + ## Database + You can connect to the database using the pgAdmin App from the catalog + +
+ Database Details + + - Database: `mealie` + - Username: `mealie` + - Password: `{{ .Values.mealieDbPass }}` + - Host: `{{ .Values.mealieDbHost }}.{{ .Release.Namespace }}.svc.cluster.local` + - Port: `5432` + +
+ {{- $_ := unset .Values "mealieDbPass" }} + {{- $_ := unset .Values "mealieDbHost" }}