parent
5c99cf3cfa
commit
f4d9fd43f0
@ -108,6 +108,9 @@ The following table lists the configurable parameters of the Wiki.js chart and t
|
|||||||
| `ingress.annotations` | Ingress annotations | `{}` |
|
| `ingress.annotations` | Ingress annotations | `{}` |
|
||||||
| `ingress.hosts` | List of ingress rules | `[{"host": "wiki.local", "paths": ["/"]}]` |
|
| `ingress.hosts` | List of ingress rules | `[{"host": "wiki.local", "paths": ["/"]}]` |
|
||||||
| `ingress.tls` | Ingress TLS configuration | `[]` |
|
| `ingress.tls` | Ingress TLS configuration | `[]` |
|
||||||
|
| `sideload.enabled` | Enable sideloading of locale files from git | `false` |
|
||||||
|
| `sideload.repoURL` | Git repository URL containing locale files | `https://github.com/Requarks/wiki-localization` |
|
||||||
|
| `sideload.env` | Environment variables for sideload Container | `{}` |
|
||||||
| `postgresql.enabled` | Deploy postgres server (see below) | `true` |
|
| `postgresql.enabled` | Deploy postgres server (see below) | `true` |
|
||||||
| `postgresql.postgresqlDatabase` | Postgres database name | `wiki` |
|
| `postgresql.postgresqlDatabase` | Postgres database name | `wiki` |
|
||||||
| `postgresql.postgresqlUser` | Postgres username | `postgres` |
|
| `postgresql.postgresqlUser` | Postgres username | `postgres` |
|
||||||
|
@ -21,6 +21,16 @@ spec:
|
|||||||
serviceAccountName: {{ include "wiki.serviceAccountName" . }}
|
serviceAccountName: {{ include "wiki.serviceAccountName" . }}
|
||||||
securityContext:
|
securityContext:
|
||||||
{{- toYaml .Values.podSecurityContext | nindent 8 }}
|
{{- toYaml .Values.podSecurityContext | nindent 8 }}
|
||||||
|
{{- if .Values.sideload.enabled }}
|
||||||
|
initContainers:
|
||||||
|
- name: {{ .Chart.Name }}-sideload
|
||||||
|
image: "{{ .Values.image.repository }}:{{ default "latest" .Values.image.tag }}"
|
||||||
|
imagePullPolicy: {{ default "IfNotPresent" .Values.image.imagePullPolicy }}
|
||||||
|
env:
|
||||||
|
{{- toYaml .Values.sideload.env | nindent 12 }}
|
||||||
|
command: [ "sh", "-c" ]
|
||||||
|
args: [ "mkdir -p /wiki/data/sideload && git clone --depth=1 {{ .Values.sideload.repoURL }} /wiki/data/sideload/" ]
|
||||||
|
{{- end }}
|
||||||
containers:
|
containers:
|
||||||
- name: {{ .Chart.Name }}
|
- name: {{ .Chart.Name }}
|
||||||
securityContext:
|
securityContext:
|
||||||
|
@ -85,6 +85,17 @@ tolerations: []
|
|||||||
|
|
||||||
affinity: {}
|
affinity: {}
|
||||||
|
|
||||||
|
# This will allow us to install locales even without internet access using a initContainer & wikjs "sideloading"
|
||||||
|
sideload:
|
||||||
|
enabled: false
|
||||||
|
# Git-Repo containing all locales.json-files you need:
|
||||||
|
repoURL: https://github.com/Requarks/wiki-localization
|
||||||
|
|
||||||
|
## This can be helpfull if you have internet access over a http proxy:
|
||||||
|
env: []
|
||||||
|
# - name: HTTPS_PROXY
|
||||||
|
# value: http://my.proxy.com:3128
|
||||||
|
|
||||||
## Configuration values for the postgresql dependency.
|
## Configuration values for the postgresql dependency.
|
||||||
## ref: https://github.com/kubernetes/charts/blob/master/stable/postgresql/README.md
|
## ref: https://github.com/kubernetes/charts/blob/master/stable/postgresql/README.md
|
||||||
##
|
##
|
||||||
|
Loading…
Reference in New Issue
Block a user