refactor: vikunja image

This commit is contained in:
auricom
2025-03-06 14:32:17 +01:00
parent 1471d4b3f7
commit b99f354c78
4 changed files with 7 additions and 59 deletions

View File

@@ -1,31 +0,0 @@
{
admin off
auto_https off
}
:8080 {
log {
output stdout
}
@api {
path /api/*
path /.well-known/*
path /dav/*
}
header {
# Remove Server header
-Server
}
# API
handle @api {
reverse_proxy localhost:3456
}
# Filtron
handle {
reverse_proxy localhost:80
}
}

View File

@@ -32,6 +32,8 @@ spec:
template:
engineVersion: v2
data:
VIKUNJA_DATABASE_TYPE: postgres
VIKUNJA_DATABASE_SSLMODE: require
VIKUNJA_DATABASE_HOST: '{{ index . "host" }}'
VIKUNJA_DATABASE_DATABASE: '{{ index . "dbname" }}'
VIKUNJA_DATABASE_USER: '{{ index . "user" }}'

View File

@@ -35,14 +35,15 @@ spec:
containers:
app:
image:
repository: vikunja/api
tag: 0.22.1@sha256:c9415431e6235229302bb8f9ee6660b74c24859d1e8adbc4a3e25bd418604b57
repository: vikunja/vikunja
tag: 0.24.6@sha256:ed1f3ed467fecec0b57e9de7bc6607f8bbcbb23ffced6a81f5dfefc794cdbe3b
envFrom:
- secretRef:
name: vikunja-secret
- secretRef:
name: vikunja-db-secret
env:
VIKUNJA_SERVICE_PUBLICURL: &host "{{ .Release.Name }}.${SECRET_EXTERNAL_DOMAIN}"
VIKUNJA_MAILER_HOST: smtp-relay.default.svc.cluster.local.
VIKUNJA_MAILER_PORT: "2525"
VIKUNJA_MAILER_FROMEMAIL: Vikunja <vikunja@${SECRET_DOMAIN}>
@@ -52,20 +53,12 @@ spec:
memory: 10Mi
limits:
memory: 100Mi
frontend:
image:
repository: vikunja/frontend
tag: 0.22.1@sha256:f0223d441997fe29c377d0b476dc4bb2fc091b44b9c24d76b1b88c213df520c5
proxy:
image:
repository: caddy
tag: 2.9.1-alpine@sha256:b4e3952384eb9524a887633ce65c752dd7c71314d2c2acf98cd5c715aaa534f0
service:
app:
controller: *app
ports:
http:
port: 8080
port: 3456
ingress:
app:
enabled: true
@@ -84,7 +77,7 @@ spec:
vikunja
)
hosts:
- host: &host "{{ .Release.Name }}.${SECRET_EXTERNAL_DOMAIN}"
- host: *host
paths:
- path: /
service:
@@ -99,15 +92,3 @@ spec:
existingClaim: *app
globalMounts:
- path: /app/vikunja/files
caddy-config:
type: configMap
name: vikunja-configmap
globalMounts:
- path: /etc/caddy/Caddyfile
subPath: Caddyfile
vikunja-config:
type: configMap
name: vikunja-configmap
globalMounts:
- path: /etc/vikunja/config.yml
subPath: Vikunja.yaml

View File

@@ -7,9 +7,5 @@ resources:
- ./helmrelease.yaml
- ../../../../templates/gatus/external
- ../../../../templates/volsync
configMapGenerator:
- name: vikunja-configmap
files:
- ./config/Caddyfile
generatorOptions:
disableNameSuffixHash: true