123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- {{- define "homarr.workload" -}}
- workload:
- homarr:
- enabled: true
- primary: true
- type: Deployment
- podSpec:
- hostNetwork: {{ .Values.homarrNetwork.hostNetwork }}
- containers:
- homarr:
- enabled: true
- primary: true
- imageSelector: image
- securityContext:
- runAsUser: {{ .Values.homarrRunAs.user }}
- runAsGroup: {{ .Values.homarrRunAs.group }}
- env:
- PORT: {{ .Values.homarrNetwork.webPort }}
- envFrom:
- - secretRef:
- name: homarr-creds
- {{ with .Values.homarrConfig.additionalEnvs }}
- envList:
- {{ range $env := . }}
- - name: {{ $env.name }}
- value: {{ $env.value }}
- {{ end }}
- {{ end }}
- probes:
- liveness:
- enabled: true
- type: http
- port: {{ .Values.homarrNetwork.webPort }}
- path: /
- readiness:
- enabled: true
- type: http
- port: {{ .Values.homarrNetwork.webPort }}
- path: /
- startup:
- enabled: true
- type: http
- port: {{ .Values.homarrNetwork.webPort }}
- path: /
- {{- end -}}
|