diff --git a/apps/todos/kustomization.yaml b/apps/todos/kustomization.yaml index d64cccb..60d47a0 100644 --- a/apps/todos/kustomization.yaml +++ b/apps/todos/kustomization.yaml @@ -15,3 +15,4 @@ resources: # repo: https://charts.oecis.io # valuesFile: values.yaml # releaseName: todos +# managed by argocd directly diff --git a/apps/todos/values.yaml b/apps/todos/values.yaml index aecace6..cfe5b67 100644 --- a/apps/todos/values.yaml +++ b/apps/todos/values.yaml @@ -1,35 +1,75 @@ +###################### +# VIKUNJA COMPONENTS # +###################### +# You can find the default values that this `values.yaml` overrides, in the comment at the top of this file. api: + enabled: true persistence: + # This is your Vikunja data will live, you can either let + # the chart create a new PVC for you or provide an existing one. data: enabled: true existingClaim: todos-nfs + ingress: + main: + enabled: false + # annotations: + # # proxy-body-size is set to 0 to remove the body limit on file uploads + # nginx.ingress.kubernetes.io/proxy-body-size: "0" + # hosts: + # - host: vikunja.local + # paths: + # - path: "/api/v1" + # tls: [] + configMaps: + # The configuration for Vikunja's api. + # https://vikunja.io/docs/config-options/ + config: + enabled: true + data: + config.yml: | + # Vikunja needs to know the frontend URL for password reset emails. + # So you might need to provide its value, if you're not using an ingress. + # service: + frontendUrl: https://todos.kluster.moll.re + database: + type: sqlite + registration: false + env: - # config: - # type: secret - # name: config.yml# +frontend: + enabled: true + # You can add any of the top-level keys in the common chart's `values.yaml` to override them here. -redis: - enabled: false + # https://github.com/bjw-s/helm-charts/blob/a081de53024d8328d1ae9ff7e4f6bc500b0f3a29/charts/library/common/values.yaml#L393-L436 + ingress: + main: + enabled: false + # annotations: + # # proxy-body-size is set to 0 to remove the body limit on file uploads + # nginx.ingress.kubernetes.io/proxy-body-size: "0" + # hosts: + # # This is just an example. You should change this to your own domain. + # - host: vikunja.local + # paths: + # - path: "/" + # tls: [] + # You only need to provide the URL to the API as environment variable here if you deviate from the "built-in" ingress in the api section. + env: + VIKUNJA_API_URL: https://todos.kluster.moll.re postgresql: enabled: false -config: - log: - level: ERROR +redis: + enabled: false - 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 +typesense: + enabled: true + env: + TYPESENSE_DATA_DIR: /data + TYPESENSE_API_KEY: typesense + persistence: + data: + # Enabling typesense persistence is recommended to avoid slow reindexing + enabled: false diff --git a/kluster-deployments/kustomization.yaml b/kluster-deployments/kustomization.yaml index cc491c0..c928cfc 100644 --- a/kluster-deployments/kustomization.yaml +++ b/kluster-deployments/kustomization.yaml @@ -37,4 +37,4 @@ resources: - rss/ - syncthing/ - whoami/ - - todos/application.yaml + - todos/ diff --git a/kluster-deployments/todos/application.yaml b/kluster-deployments/todos/application.yaml index c89b435..113ade8 100644 --- a/kluster-deployments/todos/application.yaml +++ b/kluster-deployments/todos/application.yaml @@ -2,7 +2,6 @@ apiVersion: argoproj.io/v1alpha1 kind: Application metadata: name: todos-application - namespace: argocd spec: project: apps @@ -16,16 +15,17 @@ spec: sources: - repoURL: ssh://git@git.kluster.moll.re:2222/remoll/k3s-infra.git targetRevision: main - path: apps/todos + # path: apps/todos ref: values - - repoURL: oci://kolaente.dev/vikunja + - repoURL: kolaente.dev/vikunja path: vikunja chart: vikunja # corresponds to oci://kolaente.dev/vikunja/vikunja targetRevision: 0.4.3 helm: - valuesFiles: - - $values/values.yaml + releaseName: todos + valueFiles: + - $values/apps/todos/values.yaml # creates the namespace etc. - repoURL: ssh://git@git.kluster.moll.re:2222/remoll/k3s-infra.git targetRevision: main diff --git a/kluster-deployments/todos/kustomization.yaml b/kluster-deployments/todos/kustomization.yaml new file mode 100644 index 0000000..6bcfa70 --- /dev/null +++ b/kluster-deployments/todos/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - application.yaml + - repo.yaml \ No newline at end of file diff --git a/kluster-deployments/todos/repo.yaml b/kluster-deployments/todos/repo.yaml new file mode 100644 index 0000000..3d8c381 --- /dev/null +++ b/kluster-deployments/todos/repo.yaml @@ -0,0 +1,12 @@ +apiVersion: v1 +kind: Secret +metadata: + labels: + argocd.argoproj.io/secret-type: repository + name: kolaente-helm-oci + +stringData: + url: kolaente.dev/vikunja + name: vikunja + type: helm + enableOCI: "true"