_netboot.tpl 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. {{- define "netboot.workload" -}}
  2. workload:
  3. netboot:
  4. enabled: true
  5. primary: true
  6. type: Deployment
  7. podSpec:
  8. hostNetwork: {{ .Values.netbootNetwork.hostNetwork }}
  9. containers:
  10. netboot:
  11. enabled: true
  12. primary: true
  13. imageSelector: image
  14. securityContext:
  15. runAsNonRoot: false
  16. runAsUser: 0
  17. runAsGroup: 0
  18. readOnlyRootFilesystem: false
  19. capabilities:
  20. add:
  21. - CHOWN
  22. - DAC_OVERRIDE
  23. - FOWNER
  24. - SETGID
  25. - SETUID
  26. - NET_BIND_SERVICE
  27. - KILL
  28. env:
  29. NGINX_PORT: {{ .Values.netbootNetwork.webAssetsPort }}
  30. TFTPD_OPTS: {{ join " " .Values.netbootConfig.tftpdOpts }}
  31. {{ with .Values.netbootConfig.additionalEnvs }}
  32. envList:
  33. {{ range $env := . }}
  34. - name: {{ $env.name }}
  35. value: {{ $env.value }}
  36. {{ end }}
  37. {{ end }}
  38. probes:
  39. liveness:
  40. enabled: true
  41. type: exec
  42. command:
  43. - /bin/sh
  44. - -c
  45. - |
  46. pgrep in.tftpd
  47. readiness:
  48. enabled: true
  49. type: exec
  50. command:
  51. - /bin/sh
  52. - -c
  53. - |
  54. pgrep in.tftpd
  55. startup:
  56. enabled: true
  57. type: exec
  58. command:
  59. - /bin/sh
  60. - -c
  61. - |
  62. pgrep in.tftpd
  63. {{- end -}}