mirror of
https://github.com/truenas/charts.git
synced 2026-04-26 11:35:13 +08:00
* in.tftpd needs chroot to spawn child processes. * Bump version number. * Fixes #2104 - Make the nbxyz version numbers look like semantic versions. * Match defaults in questions.yaml * Bump version number. * Bump version. * Fix app version. * Mark executable * Use WEB_APP_PORT to bind the portal URL to the right port. * Don't hide the port configuration when hostNetwork is enabled. * Bump version number.
66 lines
1.7 KiB
Smarty
66 lines
1.7 KiB
Smarty
{{- define "netboot.workload" -}}
|
|
workload:
|
|
netboot:
|
|
enabled: true
|
|
primary: true
|
|
type: Deployment
|
|
podSpec:
|
|
hostNetwork: {{ .Values.netbootNetwork.hostNetwork }}
|
|
containers:
|
|
netboot:
|
|
enabled: true
|
|
primary: true
|
|
imageSelector: image
|
|
securityContext:
|
|
runAsNonRoot: false
|
|
runAsUser: 0
|
|
runAsGroup: 0
|
|
readOnlyRootFilesystem: false
|
|
capabilities:
|
|
add:
|
|
- CHOWN
|
|
- DAC_OVERRIDE
|
|
- FOWNER
|
|
- SETGID
|
|
- SETUID
|
|
- SYS_CHROOT
|
|
- NET_BIND_SERVICE
|
|
- KILL
|
|
env:
|
|
NGINX_PORT: {{ .Values.netbootNetwork.webAssetsPort }}
|
|
TFTPD_OPTS: {{ join " " .Values.netbootConfig.tftpdOpts }}
|
|
WEB_APP_PORT: {{ .Values.netbootNetwork.webHttpPort }}
|
|
{{ with .Values.netbootConfig.additionalEnvs }}
|
|
envList:
|
|
{{ range $env := . }}
|
|
- name: {{ $env.name }}
|
|
value: {{ $env.value }}
|
|
{{ end }}
|
|
{{ end }}
|
|
probes:
|
|
liveness:
|
|
enabled: true
|
|
type: exec
|
|
command:
|
|
- /bin/sh
|
|
- -c
|
|
- |
|
|
pgrep in.tftpd
|
|
readiness:
|
|
enabled: true
|
|
type: exec
|
|
command:
|
|
- /bin/sh
|
|
- -c
|
|
- |
|
|
pgrep in.tftpd
|
|
startup:
|
|
enabled: true
|
|
type: exec
|
|
command:
|
|
- /bin/sh
|
|
- -c
|
|
- |
|
|
pgrep in.tftpd
|
|
{{- end -}}
|