Files
chart/library/ix-dev/community/logseq/templates/_logseq.tpl
Stavros Kois 43b04156a9 add logseq to community (#1554)
* add `logsdq` to `community`

* add questions

* fix portal

* Update Chart.yaml
2023-09-22 13:46:14 +03:00

46 lines
1.4 KiB
Smarty

{{- define "logseq.workload" -}}
workload:
logseq:
enabled: true
primary: true
type: Deployment
podSpec:
hostNetwork: {{ .Values.logseqNetwork.hostNetwork }}
containers:
logseq:
enabled: true
primary: true
imageSelector: image
securityContext:
runAsUser: {{ .Values.logseqRunAs.user }}
runAsGroup: {{ .Values.logseqRunAs.group }}
readOnlyRootFilesystem: false
{{ with .Values.logseqConfig.additionalEnvs }}
envList:
{{ range $env := . }}
- name: {{ $env.name }}
value: {{ $env.value }}
{{ end }}
{{ end }}
probes:
{{- $protocol := "http" -}}
{{- if .Values.logseqNetwork.certificateID -}}
{{- $protocol = "https" -}}
{{- end }}
liveness:
enabled: true
type: {{ $protocol }}
port: {{ .Values.logseqNetwork.webPort }}
path: /health
readiness:
enabled: true
type: {{ $protocol }}
port: {{ .Values.logseqNetwork.webPort }}
path: /health
startup:
enabled: true
type: {{ $protocol }}
port: {{ .Values.logseqNetwork.webPort }}
path: /health
{{- end -}}