do: update config to official chart

This commit is contained in:
xeruf 2023-12-12 22:17:54 +01:00
parent 738f455116
commit 13745981fc
3 changed files with 104 additions and 76 deletions

View File

@ -0,0 +1,8 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- vikunja-oauth-client.yaml
- vikunja-release.yaml
- vikunja-values-configmap.yaml
- vikunja-postgres-pvc.yaml
- vikunja-files-pvc.yaml

View File

@ -8,10 +8,10 @@ spec:
chart:
spec:
chart: vikunja
version: 5.5.3
version: 0.4.1
sourceRef:
kind: HelmRepository
name: k8s-at-home
name: vikunja
namespace: flux-system
interval: 5m
valuesFrom:

View File

@ -4,19 +4,48 @@ metadata:
name: stackspin-vikunja-values
namespace: stackspout
data:
# Defaults: https://github.com/k8s-at-home/charts/blob/master/charts/stable/vikunja/values.yaml
# Inherits: https://github.com/k8s-at-home/library-charts/blob/main/charts/stable/common/values.yaml
# https://github.com/truecharts/charts/blob/master/charts/stable/vikunja/values.yaml
values.yaml: |
additionalContainers:
api:
image: vikunja/api:latest
imagePullPolicy: Always
volumeMounts: [{"mountPath":"/etc/vikunja/config.yml","name":"vikunja-config","subPath":"Vikunja.yaml"}, {"mountPath":"/etc/vikunja/files","name":"files"}]
frontend:
image: vikunja/frontend:latest
imagePullPolicy: Always
vikunja:
config: |-
image:
tag: unstable
pullPolicy: Always
ingress:
main:
enabled: true
annotations:
kubernetes.io/tls-acme: "true"
hosts:
- host: "do.${domain}"
paths:
- path: /
pathType: Prefix
tls:
- secretName: vikunja-tls
hosts:
- "do.${domain}"
api:
image:
tag: unstable
pullPolicy: Always
ingress:
main:
enabled: true
annotations:
kubernetes.io/tls-acme: "true"
hosts:
- host: "do.${domain}"
paths:
- path: /
pathType: Prefix
tls:
- secretName: vikunja-tls
hosts:
- "do.${domain}"
configMaps:
config:
data:
config.yml: |-
auth:
openid:
# https://vikunja.io/docs/config-options/#openid
@ -41,7 +70,6 @@ data:
# TODO Configure PVC for file uploads
service:
frontendurl: "https://do.${domain}"
motd: "Please allow public profile discovery in settings!"
timezone: "CET"
JWTSecret: "${jwt}"
database:
@ -53,34 +81,26 @@ data:
http: file
database: stderr
databaselevel: debug
persistence:
files:
enabled: true
existingClaim: vikunja-files
ingress:
main:
enabled: true
primary: false
annotations:
kubernetes.io/tls-acme: "true"
hosts:
- host: "do.${domain}"
# TODO Helm template rather than repetition in every file? See https://github.com/k8s-at-home/library-charts/blob/4d09a8ddbdf11c278101b74b36720b5f7c17cd71/charts/stable/common/values.yaml#L342
paths:
- path: /
pathType: Prefix
tls:
- secretName: vikunja-tls
hosts:
- "do.${domain}"
caddy:
# TODO is caddy needed at all?
noTls: true
defaultsettings:
avatar_provider: gravatar
discoverable_by_name: true
discoverable_by_email: true
week_start: 1
timezone: CET
# TODO default_project_id
#persistence:
# files:
# labels:
# stackspin.net/backupSet: "vikunja"
postgresql:
enabled: true
postgresqlDatabase: vikunja
postgresqlUsername: vikunja
postgresqlPassword: "${postgresql_password}"
global:
postgresql:
database: vikunja
username: vikunja
password: "${postgresql_password}"
persistence:
enabled: true
existingClaim: vikunja-postgres
typesense:
enabled: false