mirror of
https://github.com/truenas/charts.git
synced 2026-04-14 10:40:31 +08:00
add portal, values and ci values
This commit is contained in:
committed by
Stavros Kois
parent
003de14ef3
commit
34f73f85b2
15
library/ix-dev/community/mealie/ci/basic-values.yaml
Normal file
15
library/ix-dev/community/mealie/ci/basic-values.yaml
Normal 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
|
||||
20
library/ix-dev/community/mealie/ci/extra-values.yaml
Normal file
20
library/ix-dev/community/mealie/ci/extra-values.yaml
Normal 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
|
||||
16
library/ix-dev/community/mealie/ci/hostNet-values.yaml
Normal file
16
library/ix-dev/community/mealie/ci/hostNet-values.yaml
Normal 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
|
||||
35
library/ix-dev/community/mealie/templates/_portal.tpl
Normal file
35
library/ix-dev/community/mealie/templates/_portal.tpl
Normal 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 -}}
|
||||
54
library/ix-dev/community/mealie/values.yaml
Normal file
54
library/ix-dev/community/mealie/values.yaml
Normal 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" }}
|
||||
Reference in New Issue
Block a user