Files
chart/library/ix-dev/community/netbootxyz/templates/_netboot.tpl
Kelly Shutt fe57f79674 netboot.xyz - WEB_APP_PORT to configure the web application to the correct port. (#2129)
* 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.
2024-02-06 12:02:12 +02:00

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 -}}