_2fauth.tpl 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. {{- define "twofauth.workload" -}}
  2. workload:
  3. twofauth:
  4. enabled: true
  5. primary: true
  6. type: Deployment
  7. podSpec:
  8. hostNetwork: {{ .Values.twofauthNetwork.hostNetwork }}
  9. containers:
  10. twofauth:
  11. enabled: true
  12. primary: true
  13. imageSelector: image
  14. securityContext:
  15. runAsUser: 1000
  16. runAsGroup: 1000
  17. readOnlyRootFilesystem: false
  18. envFrom:
  19. - secretRef:
  20. name: twofauth-creds
  21. - configMapRef:
  22. name: twofauth-config
  23. {{ with .Values.twofauthConfig.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: http
  34. port: 8000
  35. path: /infos
  36. readiness:
  37. enabled: true
  38. type: http
  39. port: 8000
  40. path: /infos
  41. startup:
  42. enabled: true
  43. type: http
  44. port: 8000
  45. path: /infos
  46. initContainers:
  47. {{- include "ix.v1.common.app.permissions" (dict "containerName" "01-permissions"
  48. "UID" 1000
  49. "GID" 1000
  50. "mode" "check"
  51. "type" "install") | nindent 8 }}
  52. {{- end -}}