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: chart:
spec: spec:
chart: vikunja chart: vikunja
version: 5.5.3 version: 0.4.1
sourceRef: sourceRef:
kind: HelmRepository kind: HelmRepository
name: k8s-at-home name: vikunja
namespace: flux-system namespace: flux-system
interval: 5m interval: 5m
valuesFrom: valuesFrom:

View File

@ -4,19 +4,48 @@ metadata:
name: stackspin-vikunja-values name: stackspin-vikunja-values
namespace: stackspout namespace: stackspout
data: data:
# Defaults: https://github.com/k8s-at-home/charts/blob/master/charts/stable/vikunja/values.yaml # https://github.com/truecharts/charts/blob/master/charts/stable/vikunja/values.yaml
# Inherits: https://github.com/k8s-at-home/library-charts/blob/main/charts/stable/common/values.yaml
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: frontend:
image: vikunja/frontend:latest image:
imagePullPolicy: Always tag: unstable
vikunja: pullPolicy: Always
config: |- 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: auth:
openid: openid:
# https://vikunja.io/docs/config-options/#openid # https://vikunja.io/docs/config-options/#openid
@ -41,7 +70,6 @@ data:
# TODO Configure PVC for file uploads # TODO Configure PVC for file uploads
service: service:
frontendurl: "https://do.${domain}" frontendurl: "https://do.${domain}"
motd: "Please allow public profile discovery in settings!"
timezone: "CET" timezone: "CET"
JWTSecret: "${jwt}" JWTSecret: "${jwt}"
database: database:
@ -53,34 +81,26 @@ data:
http: file http: file
database: stderr database: stderr
databaselevel: debug databaselevel: debug
persistence: defaultsettings:
files: avatar_provider: gravatar
enabled: true discoverable_by_name: true
existingClaim: vikunja-files discoverable_by_email: true
ingress: week_start: 1
main: timezone: CET
enabled: true # TODO default_project_id
primary: false #persistence:
annotations: # files:
kubernetes.io/tls-acme: "true" # labels:
hosts: # stackspin.net/backupSet: "vikunja"
- 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
postgresql: postgresql:
enabled: true enabled: true
postgresqlDatabase: vikunja global:
postgresqlUsername: vikunja postgresql:
postgresqlPassword: "${postgresql_password}" database: vikunja
username: vikunja
password: "${postgresql_password}"
persistence: persistence:
enabled: true enabled: true
existingClaim: vikunja-postgres existingClaim: vikunja-postgres
typesense:
enabled: false