_firefly_importer.tpl 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. {{- define "firefly.importer" -}}
  2. {{- $fullname := (include "ix.v1.common.lib.chart.names.fullname" $) }}
  3. workload:
  4. firefly-importer:
  5. enabled: true
  6. type: Deployment
  7. podSpec:
  8. containers:
  9. firefly-importer:
  10. enabled: true
  11. primary: true
  12. imageSelector: importerImage
  13. securityContext:
  14. runAsUser: 0
  15. runAsGroup: 0
  16. runAsNonRoot: false
  17. readOnlyRootFilesystem: false
  18. capabilities:
  19. add:
  20. - CHOWN
  21. - FOWNER
  22. - SETUID
  23. - SETGID
  24. envFrom:
  25. - secretRef:
  26. name: importer-config
  27. {{ with .Values.fireflyConfig.additionalImporterEnvs }}
  28. envList:
  29. {{ range $env := . }}
  30. - name: {{ $env.name }}
  31. value: {{ $env.value }}
  32. {{ end }}
  33. {{ end }}
  34. probes:
  35. liveness:
  36. enabled: true
  37. type: http
  38. path: /health
  39. port: 8080
  40. readiness:
  41. enabled: true
  42. type: http
  43. path: /health
  44. port: 8080
  45. startup:
  46. enabled: true
  47. type: http
  48. path: /health
  49. port: 8080
  50. initContainers:
  51. firefly-wait:
  52. enabled: true
  53. type: init
  54. imageSelector: bashImage
  55. command:
  56. - bash
  57. args:
  58. - -c
  59. - |
  60. until wget --spider --quiet --timeout=3 --tries=1 \
  61. http://{{ $fullname }}:{{ .Values.fireflyNetwork.webPort }}/health;
  62. do
  63. echo "Waiting for Firefly III to be ready..."
  64. sleep 2
  65. done
  66. {{- end -}}