mirror of
https://github.com/truenas/charts.git
synced 2026-04-14 18:50:47 +08:00
* add `flame` to `community` applications * fix secCtx * mroe perms * add ui * remove extra word
52 lines
1.4 KiB
Smarty
52 lines
1.4 KiB
Smarty
{{- define "flame.workload" -}}
|
|
workload:
|
|
flame:
|
|
enabled: true
|
|
primary: true
|
|
type: Deployment
|
|
podSpec:
|
|
hostNetwork: {{ .Values.flameNetwork.hostNetwork }}
|
|
containers:
|
|
flame:
|
|
enabled: true
|
|
primary: true
|
|
imageSelector: image
|
|
securityContext:
|
|
# FIXME: https://github.com/pawelmalak/flame/pull/356
|
|
runAsUser: 0
|
|
runAsGroup: 0
|
|
runAsNonRoot: false
|
|
readOnlyRootFilesystem: false
|
|
capabilities:
|
|
add:
|
|
- CHOWN
|
|
- DAC_OVERRIDE
|
|
- FOWNER
|
|
envFrom:
|
|
- secretRef:
|
|
name: flame-config
|
|
{{ with .Values.flameConfig.additionalEnvs }}
|
|
envList:
|
|
{{ range $env := . }}
|
|
- name: {{ $env.name }}
|
|
value: {{ $env.value }}
|
|
{{ end }}
|
|
{{ end }}
|
|
probes:
|
|
liveness:
|
|
enabled: true
|
|
type: http
|
|
port: {{ .Values.flameNetwork.webPort }}
|
|
path: /
|
|
readiness:
|
|
enabled: true
|
|
type: http
|
|
port: {{ .Values.flameNetwork.webPort }}
|
|
path: /
|
|
startup:
|
|
enabled: true
|
|
type: http
|
|
port: {{ .Values.flameNetwork.webPort }}
|
|
path: /
|
|
{{- end -}}
|