1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- {{- define "tmm.workload" -}}
- workload:
- tmm:
- enabled: true
- primary: true
- type: Deployment
- podSpec:
- hostNetwork: false
- securityContext:
- fsGroup: {{ .Values.tmmID.group }}
- containers:
- tmm:
- enabled: true
- primary: true
- imageSelector: image
- securityContext:
- runAsUser: 0
- runAsGroup: 0
- runAsNonRoot: false
- readOnlyRootFilesystem: false
- capabilities:
- add:
- - SETUID
- - SETGID
- - CHOWN
- fixedEnv:
- PUID: {{ .Values.tmmID.user }}
- env:
- PASSWORD: {{ .Values.tmmConfig.password }}
- {{ with .Values.tmmConfig.additionalEnvs }}
- envList:
- {{ range $env := . }}
- - name: {{ $env.name }}
- value: {{ $env.value }}
- {{ end }}
- {{ end }}
- probes:
- liveness:
- enabled: true
- type: http
- port: 4000
- path: /
- readiness:
- enabled: true
- type: http
- port: 4000
- path: /
- startup:
- enabled: true
- type: http
- port: 4000
- path: /
- {{- end -}}
|