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,83 +4,103 @@ 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: frontend:
api: image:
image: vikunja/api:latest tag: unstable
imagePullPolicy: Always pullPolicy: Always
volumeMounts: [{"mountPath":"/etc/vikunja/config.yml","name":"vikunja-config","subPath":"Vikunja.yaml"}, {"mountPath":"/etc/vikunja/files","name":"files"}] ingress:
frontend: main:
image: vikunja/frontend:latest enabled: true
imagePullPolicy: Always annotations:
vikunja: kubernetes.io/tls-acme: "true"
config: |- hosts:
auth: - host: "do.${domain}"
openid: paths:
# https://vikunja.io/docs/config-options/#openid - path: /
# Example: https://github.com/go-vikunja/api/blob/main/config.yml.sample#L289-L312 pathType: Prefix
enabled: true tls:
redirecturl: "https://do.${domain}/auth/openid/" - secretName: vikunja-tls
providers: hosts:
- name: Stackspin - "do.${domain}"
authurl: "https://sso.${domain}/" api:
clientid: "${client_id}" image:
clientsecret: "${client_secret}" tag: unstable
local: pullPolicy: Always
enabled: false ingress:
mailer: main:
enabled: "${outgoing_mail_enabled}" enabled: true
host: "${outgoing_mail_smtp_host}" annotations:
port: "${outgoing_mail_smtp_port}" kubernetes.io/tls-acme: "true"
username: "${outgoing_mail_smtp_user}" hosts:
password: "${outgoing_mail_smtp_password}" - host: "do.${domain}"
fromemail: "${outgoing_mail_from_address}" paths:
forcessl: true - path: /
# TODO Configure PVC for file uploads pathType: Prefix
service: tls:
frontendurl: "https://do.${domain}" - secretName: vikunja-tls
motd: "Please allow public profile discovery in settings!" hosts:
timezone: "CET" - "do.${domain}"
JWTSecret: "${jwt}" configMaps:
database: config:
type: postgres data:
host: vikunja-postgresql config.yml: |-
password: "${postgresql_password}" auth:
log: openid:
path: "/app/vikunja" # https://vikunja.io/docs/config-options/#openid
http: file # Example: https://github.com/go-vikunja/api/blob/main/config.yml.sample#L289-L312
database: stderr enabled: true
databaselevel: debug redirecturl: "https://do.${domain}/auth/openid/"
persistence: providers:
files: - name: Stackspin
enabled: true authurl: "https://sso.${domain}/"
existingClaim: vikunja-files clientid: "${client_id}"
ingress: clientsecret: "${client_secret}"
main: local:
enabled: true enabled: false
primary: false mailer:
annotations: enabled: "${outgoing_mail_enabled}"
kubernetes.io/tls-acme: "true" host: "${outgoing_mail_smtp_host}"
hosts: port: "${outgoing_mail_smtp_port}"
- host: "do.${domain}" username: "${outgoing_mail_smtp_user}"
# 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 password: "${outgoing_mail_smtp_password}"
paths: fromemail: "${outgoing_mail_from_address}"
- path: / forcessl: true
pathType: Prefix # TODO Configure PVC for file uploads
tls: service:
- secretName: vikunja-tls frontendurl: "https://do.${domain}"
hosts: timezone: "CET"
- "do.${domain}" JWTSecret: "${jwt}"
caddy: database:
# TODO is caddy needed at all? type: postgres
noTls: true host: vikunja-postgresql
password: "${postgresql_password}"
log:
path: "/app/vikunja"
http: file
database: stderr
databaselevel: debug
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: 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