_logsearch.tpl 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. {{- define "logsearchapi.workload" -}}
  2. workload:
  3. logsearchapi:
  4. enabled: true
  5. type: Deployment
  6. podSpec:
  7. hostNetwork: false
  8. containers:
  9. logsearchapi:
  10. enabled: true
  11. primary: true
  12. imageSelector: logSearchImage
  13. securityContext:
  14. runAsUser: 473
  15. runAsGroup: 473
  16. command:
  17. - /logsearchapi
  18. envFrom:
  19. - secretRef:
  20. name: logsearch-creds
  21. probes:
  22. liveness:
  23. enabled: true
  24. type: http
  25. path: /status
  26. port: 8080
  27. readiness:
  28. enabled: true
  29. type: http
  30. path: /status
  31. port: 8080
  32. startup:
  33. enabled: true
  34. type: http
  35. path: /status
  36. port: 8080
  37. initContainers:
  38. {{- include "ix.v1.common.app.postgresWait" (dict "name" "postgres-wait"
  39. "secretName" "postgres-creds") | nindent 8 }}
  40. {{- end -}}