_wordpress.tpl 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. {{- define "wordpress.workload" -}}
  2. workload:
  3. wordpress:
  4. enabled: true
  5. primary: true
  6. type: Deployment
  7. podSpec:
  8. hostNetwork: false
  9. containers:
  10. wordpress:
  11. enabled: true
  12. primary: true
  13. imageSelector: image
  14. securityContext:
  15. runAsUser: 33
  16. runAsGroup: 33
  17. capabilities:
  18. add:
  19. - NET_BIND_SERVICE
  20. envFrom:
  21. - secretRef:
  22. name: wordpress-creds
  23. {{ with .Values.wpConfig.additionalEnvs }}
  24. envList:
  25. {{ range $env := . }}
  26. - name: {{ $env.name }}
  27. value: {{ $env.value }}
  28. {{ end }}
  29. {{ end }}
  30. probes:
  31. liveness:
  32. enabled: true
  33. type: tcp
  34. port: 80
  35. readiness:
  36. enabled: true
  37. type: tcp
  38. port: 80
  39. startup:
  40. enabled: true
  41. type: tcp
  42. port: 80
  43. initContainers:
  44. {{- include "ix.v1.common.app.permissions" (dict "containerName" "01-permissions"
  45. "UID" 33
  46. "GID" 33
  47. "type" "install") | nindent 8 }}
  48. {{- include "ix.v1.common.app.mariadbWait" (dict "name" "mariadb-wait"
  49. "secretName" "mariadb-creds") | nindent 8 }}
  50. {{- end -}}