mirror of
https://github.com/truenas/charts.git
synced 2026-04-28 20:42:23 +08:00
* init commit * add `passbolt` to `community` train * roofs * mount var run * probes * try init user * fix app url * add metadata * remove init user * add questions and revert to user 33 * plump hostnet and add hostnet values for ci * fix perms and UI
60 lines
2.0 KiB
Smarty
60 lines
2.0 KiB
Smarty
{{- define "passbolt.workload" -}}
|
|
workload:
|
|
passbolt:
|
|
enabled: true
|
|
primary: true
|
|
type: Deployment
|
|
podSpec:
|
|
hostNetwork: {{ .Values.passboltNetwork.hostNetwork }}
|
|
containers:
|
|
passbolt:
|
|
enabled: true
|
|
primary: true
|
|
imageSelector: image
|
|
securityContext:
|
|
runAsUser: 33
|
|
runAsGroup: 33
|
|
readOnlyRootFilesystem: false
|
|
envFrom:
|
|
- secretRef:
|
|
name: passbolt-creds
|
|
- configMapRef:
|
|
name: passbolt-config
|
|
{{ with .Values.passboltConfig.additionalEnvs }}
|
|
envList:
|
|
{{ range $env := . }}
|
|
- name: {{ $env.name }}
|
|
value: {{ $env.value }}
|
|
{{ end }}
|
|
{{ end }}
|
|
probes:
|
|
{{- $port := 8080 -}}
|
|
{{- $protocol := "http" -}}
|
|
{{- if .Values.passboltNetwork.certificateID -}}
|
|
{{- $port = 4433 -}}
|
|
{{- $protocol = "https" -}}
|
|
{{- end }}
|
|
liveness:
|
|
enabled: true
|
|
type: {{ $protocol }}
|
|
port: {{ $port }}
|
|
path: /healthcheck/status
|
|
readiness:
|
|
enabled: true
|
|
type: {{ $protocol }}
|
|
port: {{ $port }}
|
|
path: /healthcheck/status
|
|
startup:
|
|
enabled: true
|
|
type: {{ $protocol }}
|
|
port: {{ $port }}
|
|
path: /healthcheck/status
|
|
initContainers:
|
|
{{- include "ix.v1.common.app.permissions" (dict "containerName" "01-permissions"
|
|
"UID" 33
|
|
"GID" 33
|
|
"type" "install") | nindent 8 }}
|
|
{{- include "ix.v1.common.app.mariadbWait" (dict "name" "02-mariadb-wait"
|
|
"secretName" "mariadb-creds") | nindent 8 }}
|
|
{{- end -}}
|