mirror of
https://github.com/truenas/charts.git
synced 2026-04-04 19:29:22 +08:00
46 lines
1.4 KiB
Smarty
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 -}}
|