_castopod.tpl 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. {{- define "castopod.workload" -}}
  2. workload:
  3. castopod:
  4. enabled: true
  5. primary: true
  6. type: Deployment
  7. podSpec:
  8. hostNetwork: false
  9. containers:
  10. castopod:
  11. enabled: true
  12. primary: true
  13. imageSelector: image
  14. securityContext:
  15. runAsUser: 0
  16. runAsGroup: 0
  17. runAsNonRoot: false
  18. readOnlyRootFilesystem: false
  19. capabilities:
  20. add:
  21. - CHOWN
  22. - DAC_OVERRIDE
  23. - FOWNER
  24. - SETGID
  25. - SETUID
  26. envFrom:
  27. - secretRef:
  28. name: castopod-creds
  29. - configMapRef:
  30. name: castopod-config
  31. {{ with .Values.castopodConfig.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: tcp
  42. port: 9000
  43. readiness:
  44. enabled: true
  45. type: tcp
  46. port: 9000
  47. startup:
  48. enabled: true
  49. type: tcp
  50. port: 9000
  51. spec:
  52. initialDelaySeconds: 30
  53. failureThreshold: 180
  54. initContainers:
  55. {{- include "ix.v1.common.app.redisWait" (dict "name" "01-redis-wait"
  56. "secretName" "redis-creds") | nindent 8 }}
  57. {{- include "ix.v1.common.app.mariadbWait" (dict "name" "02-mariadb-wait"
  58. "secretName" "mariadb-creds") | nindent 8 }}
  59. {{- end -}}