2022-10-24 21:54:54 +00:00
|
|
|
{{/* Make sure all variables are set properly */}}
|
2023-04-16 19:10:16 +00:00
|
|
|
{{ include "tc.v1.common.loader.init" . }}
|
2022-10-24 21:54:54 +00:00
|
|
|
|
2023-04-16 19:10:16 +00:00
|
|
|
{{- $_ := mustMergeOverwrite .Values (include "meshcentral.secret" $ | fromYaml) -}}
|
2022-10-24 21:54:54 +00:00
|
|
|
|
2022-10-26 08:39:46 +00:00
|
|
|
{{- define "meshcentral.probes" -}}
|
|
|
|
probes:
|
|
|
|
liveness:
|
|
|
|
type: {{ .Values.service.main.ports.main.protocol }}
|
|
|
|
path: /health.ashx
|
|
|
|
readiness:
|
|
|
|
type: {{ .Values.service.main.ports.main.protocol }}
|
|
|
|
path: /health.ashx
|
|
|
|
startup:
|
|
|
|
type: {{ .Values.service.main.ports.main.protocol }}
|
|
|
|
path: /health.ashx
|
|
|
|
{{- end -}}
|
|
|
|
|
2023-04-16 19:10:16 +00:00
|
|
|
{{- $_ := mergeOverwrite .Values.workload.main.podSpec.containers.main (include "meshcentral.probes" . | fromYaml) -}}
|
2022-10-26 08:39:46 +00:00
|
|
|
|
2022-10-24 21:54:54 +00:00
|
|
|
{{/* Render the templates */}}
|
2023-04-16 19:10:16 +00:00
|
|
|
{{ include "tc.v1.common.loader.apply" . }}
|