mirror of
https://github.com/truenas/charts.git
synced 2026-04-29 04:51:31 +08:00
* initial commit * add some templates * add common and templates * update strategy * fix tempaltes * fix host * add metadata * add readme * fix probe * add questiosn * typo * quote * disable by default the redirect * add another test * rename service * remove todo * fix backend url and questions
57 lines
1.6 KiB
Smarty
57 lines
1.6 KiB
Smarty
{{- define "castopod.workload" -}}
|
|
workload:
|
|
castopod:
|
|
enabled: true
|
|
primary: true
|
|
type: Deployment
|
|
podSpec:
|
|
hostNetwork: false
|
|
containers:
|
|
castopod:
|
|
enabled: true
|
|
primary: true
|
|
imageSelector: image
|
|
securityContext:
|
|
runAsUser: 0
|
|
runAsGroup: 0
|
|
runAsNonRoot: false
|
|
readOnlyRootFilesystem: false
|
|
capabilities:
|
|
add:
|
|
- CHOWN
|
|
- DAC_OVERRIDE
|
|
- FOWNER
|
|
- SETGID
|
|
- SETUID
|
|
envFrom:
|
|
- secretRef:
|
|
name: castopod-creds
|
|
- configMapRef:
|
|
name: castopod-config
|
|
{{ with .Values.castopodConfig.additionalEnvs }}
|
|
envList:
|
|
{{ range $env := . }}
|
|
- name: {{ $env.name }}
|
|
value: {{ $env.value }}
|
|
{{ end }}
|
|
{{ end }}
|
|
probes:
|
|
liveness:
|
|
enabled: true
|
|
type: tcp
|
|
port: 9000
|
|
readiness:
|
|
enabled: true
|
|
type: tcp
|
|
port: 9000
|
|
startup:
|
|
enabled: true
|
|
type: tcp
|
|
port: 9000
|
|
initContainers:
|
|
{{- include "ix.v1.common.app.redisWait" (dict "name" "01-redis-wait"
|
|
"secretName" "redis-creds") | nindent 8 }}
|
|
{{- include "ix.v1.common.app.mariadbWait" (dict "name" "02-mariadb-wait"
|
|
"secretName" "mariadb-creds") | nindent 8 }}
|
|
{{- end -}}
|