mirror of
https://github.com/truenas/charts.git
synced 2026-04-13 17:52:13 +08:00
* initial commit * add some templates * fix config * add metadata and ci values * expose more config * add values * fix lint * add ui * add validation * whops * update description * formatting * rename app
53 lines
1.6 KiB
Smarty
53 lines
1.6 KiB
Smarty
{{- define "twofauth.workload" -}}
|
|
workload:
|
|
twofauth:
|
|
enabled: true
|
|
primary: true
|
|
type: Deployment
|
|
podSpec:
|
|
hostNetwork: {{ .Values.twofauthNetwork.hostNetwork }}
|
|
containers:
|
|
twofauth:
|
|
enabled: true
|
|
primary: true
|
|
imageSelector: image
|
|
securityContext:
|
|
runAsUser: 1000
|
|
runAsGroup: 1000
|
|
readOnlyRootFilesystem: false
|
|
envFrom:
|
|
- secretRef:
|
|
name: twofauth-creds
|
|
- configMapRef:
|
|
name: twofauth-config
|
|
{{ with .Values.twofauthConfig.additionalEnvs }}
|
|
envList:
|
|
{{ range $env := . }}
|
|
- name: {{ $env.name }}
|
|
value: {{ $env.value }}
|
|
{{ end }}
|
|
{{ end }}
|
|
probes:
|
|
liveness:
|
|
enabled: true
|
|
type: http
|
|
port: 8000
|
|
path: /infos
|
|
readiness:
|
|
enabled: true
|
|
type: http
|
|
port: 8000
|
|
path: /infos
|
|
startup:
|
|
enabled: true
|
|
type: http
|
|
port: 8000
|
|
path: /infos
|
|
initContainers:
|
|
{{- include "ix.v1.common.app.permissions" (dict "containerName" "01-permissions"
|
|
"UID" 1000
|
|
"GID" 1000
|
|
"mode" "check"
|
|
"type" "init") | nindent 8 }}
|
|
{{- end -}}
|