_drawio.tpl 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. {{- define "drawio.workload" -}}
  2. workload:
  3. drawio:
  4. enabled: true
  5. primary: true
  6. type: Deployment
  7. podSpec:
  8. hostNetwork: {{ .Values.drawioNetwork.hostNetwork }}
  9. containers:
  10. drawio:
  11. enabled: true
  12. primary: true
  13. imageSelector: image
  14. securityContext:
  15. runAsUser: 1000
  16. runAsGroup: 999
  17. readOnlyRootFilesystem: false
  18. {{ with .Values.drawioConfig.additionalEnvs }}
  19. envList:
  20. {{ range $env := . }}
  21. - name: {{ $env.name }}
  22. value: {{ $env.value }}
  23. {{ end }}
  24. {{ end }}
  25. probes:
  26. liveness:
  27. enabled: true
  28. type: http
  29. port: 8080
  30. path: /
  31. readiness:
  32. enabled: true
  33. type: http
  34. port: 8080
  35. path: /
  36. startup:
  37. enabled: true
  38. type: http
  39. port: 8080
  40. path: /
  41. initContainers:
  42. {{- include "ix.v1.common.app.permissions" (dict "containerName" "01-permissions"
  43. "UID" 1000
  44. "GID" 999
  45. "mode" "check"
  46. "type" "install") | nindent 8 }}
  47. {{- end -}}