manage todos

This commit is contained in:
Remy Moll 2024-03-24 15:31:59 +01:00
parent 6ceb3816fb
commit 6fe166e60c
7 changed files with 104 additions and 0 deletions

16
apps/todos/ingress.yaml Normal file
View File

@ -0,0 +1,16 @@
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: todos-ingressroute
spec:
entryPoints:
- websecure
routes:
- match: Host(`todos.kluster.moll.re`)
kind: Rule
services:
- name: todos-vikunja
port: 3456
tls:
certResolver: default-tls

View File

@ -0,0 +1,17 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: todos
resources:
- namespace.yaml
- pvc.yaml
- ingress.yaml
helmCharts:
- name: vikunja
version: 0.1.5
repo: https://charts.oecis.io
valuesFile: values.yaml
releaseName: todos

View File

@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: placeholder

12
apps/todos/pvc.yaml Normal file
View File

@ -0,0 +1,12 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: todos-nfs
spec:
resources:
requests:
storage: 1Gi
volumeMode: Filesystem
storageClassName: nfs-client
accessModes:
- ReadWriteOnce

35
apps/todos/values.yaml Normal file
View File

@ -0,0 +1,35 @@
api:
persistence:
data:
enabled: true
existingClaim: todos-nfs
# config:
# type: secret
# name: config.yml#
redis:
enabled: false
postgresql:
enabled: false
config:
log:
level: ERROR
cache:
enabled: false
db:
type: sqlite
# host: ""
# user: ""
# password: ""
# database: ""
# existingSecret: ""
# secretKeys:
# dbPasswordKey: user-password
publicUrl: https://todos.kluster.moll.re
registration: true
linkSharing: true
taskAttachments: true

View File

@ -37,3 +37,4 @@ resources:
- rss/
- syncthing/
- whoami/
- todos/application.yaml

View File

@ -0,0 +1,19 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: todos-application
namespace: argocd
spec:
project: apps
source:
repoURL: ssh://git@git.kluster.moll.re:2222/remoll/k3s-infra.git
targetRevision: main
path: apps/todos
destination:
server: https://kubernetes.default.svc
namespace: todos
syncPolicy:
automated:
prune: true
selfHeal: true