TrueChartsCatalogClone/stable/meshcentral/10.0.16/templates/common.yaml

23 lines
709 B
YAML
Raw Normal View History

{{/* Make sure all variables are set properly */}}
{{ include "tc.v1.common.loader.init" . }}
{{- $_ := mustMergeOverwrite .Values (include "meshcentral.secret" $ | fromYaml) -}}
{{- 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 -}}
{{- $_ := mergeOverwrite .Values.workload.main.podSpec.containers.main (include "meshcentral.probes" . | fromYaml) -}}
{{/* Render the templates */}}
{{ include "tc.v1.common.loader.apply" . }}