_netdata.tpl 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. {{- define "netdata.workload" -}}
  2. workload:
  3. netdata:
  4. enabled: true
  5. primary: true
  6. type: Deployment
  7. podSpec:
  8. hostNetwork: false
  9. automountServiceAccountToken: true
  10. securityContext:
  11. fsGroup: 201
  12. containers:
  13. netdata:
  14. enabled: true
  15. primary: true
  16. imageSelector: image
  17. securityContext:
  18. runAsUser: 0
  19. runAsGroup: 0
  20. runAsNonRoot: false
  21. readOnlyRootFilesystem: false
  22. allowPrivilegeEscalation: true
  23. capabilities:
  24. add:
  25. - CHOWN
  26. - DAC_OVERRIDE
  27. - FOWNER
  28. - SETGID
  29. - SETUID
  30. - SYS_PTRACE
  31. env:
  32. NETDATA_LISTENER_PORT: {{ .Values.netdataNetwork.webPort }}
  33. {{ with .Values.netdataConfig.additionalEnvs }}
  34. envList:
  35. {{ range $env := . }}
  36. - name: {{ $env.name }}
  37. value: {{ $env.value }}
  38. {{ end }}
  39. {{ end }}
  40. probes:
  41. liveness:
  42. enabled: true
  43. type: exec
  44. command: /usr/sbin/health.sh
  45. readiness:
  46. enabled: true
  47. type: exec
  48. command: /usr/sbin/health.sh
  49. startup:
  50. enabled: true
  51. type: exec
  52. command: /usr/sbin/health.sh
  53. {{- end -}}