This commit is contained in:
parent
7224e44db3
commit
5312dc6a34
|
@ -1,7 +1,7 @@
|
||||||
Vikunja Helm Chart
|
Vikunja Helm Chart
|
||||||
===
|
===
|
||||||
|
|
||||||
Deployes both frontend and backend. Also, you can deploy bitnami's PostgreSQL and Redis as subcharts if you want.
|
Deployes both frontend and api. Also, you can deploy bitnami's PostgreSQL and Redis as subcharts if you want.
|
||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{{- define "vikunja.backend.hardcodedValues" -}}
|
{{- define "vikunja.api.hardcodedValues" -}}
|
||||||
global:
|
global:
|
||||||
nameOverride: backend
|
nameOverride: api
|
||||||
|
|
||||||
service:
|
service:
|
||||||
main:
|
main:
|
||||||
|
@ -23,12 +23,21 @@ env:
|
||||||
VIKUNJA_TYPESENSE_ENABLED: "true"
|
VIKUNJA_TYPESENSE_ENABLED: "true"
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
# Logic to decide what the api URL should be
|
||||||
|
{{ if .Values.ingress.enabled }}
|
||||||
|
VIKUNJA_API_URL: "https://{{ .Values.ingress.host }}{{ .Values.ingress.path }}"
|
||||||
|
{{ else if .Values.service.main.enabled }}
|
||||||
|
VIKUNJA_API_URL: "http://{{ .Values.service.main.name }}.{{ .Values.service.main.namespace }}.svc.cluster.local:{{ .Values.service.main.ports.http.port }}{{ .Values.ingress.path }}"
|
||||||
|
{{ else }}
|
||||||
|
VIKUNJA_API_URL: "http://localhost:3456{{ .Values.ingress.path }}"
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if .Values.backend.enabled }}
|
{{ if .Values.api.enabled }}
|
||||||
{{- $ctx := deepCopy . -}}
|
{{- $ctx := deepCopy . -}}
|
||||||
{{- $_ := get .Values "backend" | mergeOverwrite $ctx.Values -}}
|
{{- $_ := get .Values "api" | mergeOverwrite $ctx.Values -}}
|
||||||
{{- $_ = include "vikunja.backend.hardcodedValues" . | fromYaml | merge $ctx.Values -}}
|
{{- $_ = include "vikunja.api.hardcodedValues" . | fromYaml | merge $ctx.Values -}}
|
||||||
{{- include "bjw-s.common.loader.all" $ctx }}
|
{{- include "bjw-s.common.loader.all" $ctx }}
|
||||||
{{ end }}
|
{{ end }}
|
|
@ -5,14 +5,14 @@ global:
|
||||||
service:
|
service:
|
||||||
main:
|
main:
|
||||||
enabled: true
|
enabled: true
|
||||||
{{- if not .Values.backend.enabled -}}
|
{{- if not .Values.api.enabled -}}
|
||||||
primary: true
|
primary: true
|
||||||
{{- end }}
|
{{- end }}
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
ports:
|
ports:
|
||||||
http:
|
http:
|
||||||
enabled: true
|
enabled: true
|
||||||
{{- if not .Values.backend.enabled -}}
|
{{- if not .Values.api.enabled -}}
|
||||||
primary: true
|
primary: true
|
||||||
{{- end }}
|
{{- end }}
|
||||||
port: 80
|
port: 80
|
||||||
|
|
27
values.yaml
27
values.yaml
|
@ -1,9 +1,10 @@
|
||||||
## This chart relies on the common library chart from bjw-s
|
## This chart relies on the common library chart from bjw-s
|
||||||
## You can find it and the values you can provide and modify, at https://github.com/bjw-s/helm-charts/tree/main/charts/library/common
|
## You can find it and the values you can provide and modify, at https://github.com/bjw-s/helm-charts/tree/a081de53024d8328d1ae9ff7e4f6bc500b0f3a29/charts/library/common
|
||||||
## Refer there for more detail about the supported values
|
## Here's the link to the values.yaml file: https://github.com/bjw-s/helm-charts/blob/a081de53024d8328d1ae9ff7e4f6bc500b0f3a29/charts/library/common/values.yaml
|
||||||
|
## Refer there for more detail about the supported values.
|
||||||
# These entries are shared between all the vikunja components
|
## Any values that you find in the above `values.yaml` can be provided to this chart and are then rendered.
|
||||||
|
|
||||||
|
# These environment variables are shared between all the vikunja components
|
||||||
env:
|
env:
|
||||||
VIKUNJA_REDIS_HOST: '{{ printf "%s-redis-master" .Release.Name }}'
|
VIKUNJA_REDIS_HOST: '{{ printf "%s-redis-master" .Release.Name }}'
|
||||||
VIKUNJA_REDIS_DB: "{{ .Release.Name }}"
|
VIKUNJA_REDIS_DB: "{{ .Release.Name }}"
|
||||||
|
@ -15,7 +16,7 @@ env:
|
||||||
VIKUNJA_TYPESENSE_APIKEY: "{{ .Values.typesense.env.TYPESENSE_API_KEY }}"
|
VIKUNJA_TYPESENSE_APIKEY: "{{ .Values.typesense.env.TYPESENSE_API_KEY }}"
|
||||||
VIKUNJA_TYPESENSE_URL: '{{ printf "%s-typesense" .Release.Name }}'
|
VIKUNJA_TYPESENSE_URL: '{{ printf "%s-typesense" .Release.Name }}'
|
||||||
VIKUNJA_FRONTEND_URL: '{{ printf "http://%s-frontend" .Release.Name }}'
|
VIKUNJA_FRONTEND_URL: '{{ printf "http://%s-frontend" .Release.Name }}'
|
||||||
VIKUNJA_API_URL: '{{ printf "http://%s-backend:3456" .Release.Name }}'
|
VIKUNJA_API_URL: '{{ .Values.backened.ingress.main.hosts[0].host }}'
|
||||||
|
|
||||||
image:
|
image:
|
||||||
tag: 0.21.0
|
tag: 0.21.0
|
||||||
|
@ -27,12 +28,16 @@ storage:
|
||||||
# You have to specify an existing PVC to use
|
# You have to specify an existing PVC to use
|
||||||
existingClaim:
|
existingClaim:
|
||||||
|
|
||||||
# vikunja components
|
######################
|
||||||
|
# VIKUNJA COMPONENTS #
|
||||||
|
######################
|
||||||
frontend:
|
frontend:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
# https://github.com/bjw-s/helm-charts/blob/a081de53024d8328d1ae9ff7e4f6bc500b0f3a29/charts/library/common/values.yaml#L63-L69
|
||||||
image:
|
image:
|
||||||
repository: vikunja/frontend
|
repository: vikunja/frontend
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
|
# https://github.com/bjw-s/helm-charts/blob/a081de53024d8328d1ae9ff7e4f6bc500b0f3a29/charts/library/common/values.yaml#L393-L436
|
||||||
ingress:
|
ingress:
|
||||||
main:
|
main:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
@ -45,7 +50,7 @@ frontend:
|
||||||
- path: "/"
|
- path: "/"
|
||||||
tls: []
|
tls: []
|
||||||
|
|
||||||
backend:
|
api:
|
||||||
enabled: true
|
enabled: true
|
||||||
image:
|
image:
|
||||||
repository: vikunja/api
|
repository: vikunja/api
|
||||||
|
@ -69,7 +74,12 @@ backend:
|
||||||
- path: "/api"
|
- path: "/api"
|
||||||
tls: []
|
tls: []
|
||||||
|
|
||||||
# Dependencies
|
##########################
|
||||||
|
# END VIKUNJA COMPONENTS #
|
||||||
|
##########################
|
||||||
|
|
||||||
|
|
||||||
|
# Optional Dependencies
|
||||||
postgresql:
|
postgresql:
|
||||||
enabled: true
|
enabled: true
|
||||||
global:
|
global:
|
||||||
|
@ -103,6 +113,7 @@ typesense:
|
||||||
tag: 0.25.1
|
tag: 0.25.1
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
|
# https://github.com/bjw-s/helm-charts/blob/a081de53024d8328d1ae9ff7e4f6bc500b0f3a29/charts/library/common/values.yaml#L85-L94
|
||||||
serviceAccount:
|
serviceAccount:
|
||||||
# -- Specifies whether a service account should be created
|
# -- Specifies whether a service account should be created
|
||||||
create: false
|
create: false
|
||||||
|
|
Loading…
Reference in New Issue
Block a user