add portal, values and ci values

This commit is contained in:
Stavros kois
2023-11-03 16:28:18 +02:00
committed by Stavros Kois
parent 003de14ef3
commit 34f73f85b2
5 changed files with 140 additions and 0 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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 -}}

View File

@@ -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
<details>
<summary>Database Details</summary>
- Database: `mealie`
- Username: `mealie`
- Password: `{{ .Values.mealieDbPass }}`
- Host: `{{ .Values.mealieDbHost }}.{{ .Release.Namespace }}.svc.cluster.local`
- Port: `5432`
</details>
{{- $_ := unset .Values "mealieDbPass" }}
{{- $_ := unset .Values "mealieDbHost" }}