use TCP probe by default and add docs for probetype (#594)
* use TCP probe by default and add docs for probetype * small fixup
This commit is contained in:
@@ -18,4 +18,4 @@ maintainers:
|
|||||||
name: common
|
name: common
|
||||||
sources:
|
sources:
|
||||||
type: library
|
type: library
|
||||||
version: 6.3.7
|
version: 6.3.8
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ Probes selection logic.
|
|||||||
{{- if $primaryService -}}
|
{{- if $primaryService -}}
|
||||||
{{- $primaryPort = get $primaryService.ports (include "common.classes.service.ports.primary" (dict "serviceName" (include "common.service.primary" .) "values" $primaryService)) -}}
|
{{- $primaryPort = get $primaryService.ports (include "common.classes.service.ports.primary" (dict "serviceName" (include "common.service.primary" .) "values" $primaryService)) -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- $probeType := "HTTP" -}}
|
{{- $probeType := "TCP" -}}
|
||||||
|
|
||||||
{{- range $probeName, $probe := .Values.probes }}
|
{{- range $probeName, $probe := .Values.probes }}
|
||||||
{{- if $probe.enabled -}}
|
{{- if $probe.enabled -}}
|
||||||
@@ -18,10 +18,10 @@ Probes selection logic.
|
|||||||
{{- else }}
|
{{- else }}
|
||||||
{{- if and $primaryService $primaryPort -}}
|
{{- if and $primaryService $primaryPort -}}
|
||||||
{{- if $probe.type -}}
|
{{- if $probe.type -}}
|
||||||
{{- $probeType = $probe.type -}}
|
{{- if eq $probe.type "AUTO" -}}
|
||||||
{{- else -}}
|
|
||||||
{{- if $primaryPort.protocol -}}
|
|
||||||
{{- $probeType = $primaryPort.protocol -}}
|
{{- $probeType = $primaryPort.protocol -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- $probeType := $probe.type -}}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
|||||||
@@ -153,6 +153,9 @@ probes:
|
|||||||
enabled: true
|
enabled: true
|
||||||
# -- Set this to `true` if you wish to specify your own livenessProbe
|
# -- Set this to `true` if you wish to specify your own livenessProbe
|
||||||
custom: false
|
custom: false
|
||||||
|
# -- sets the probe type when not using a custom probe
|
||||||
|
# @default -- "TCP"
|
||||||
|
type: TCP
|
||||||
# -- If a HTTP probe is used (default for HTTP/HTTPS services) this path is used
|
# -- If a HTTP probe is used (default for HTTP/HTTPS services) this path is used
|
||||||
# @default -- "/"
|
# @default -- "/"
|
||||||
path: "/"
|
path: "/"
|
||||||
@@ -172,6 +175,9 @@ probes:
|
|||||||
enabled: true
|
enabled: true
|
||||||
# -- Set this to `true` if you wish to specify your own readinessProbe
|
# -- Set this to `true` if you wish to specify your own readinessProbe
|
||||||
custom: false
|
custom: false
|
||||||
|
# -- sets the probe type when not using a custom probe
|
||||||
|
# @default -- "TCP"
|
||||||
|
type: TCP
|
||||||
# -- If a HTTP probe is used (default for HTTP/HTTPS services) this path is used
|
# -- If a HTTP probe is used (default for HTTP/HTTPS services) this path is used
|
||||||
# @default -- "/"
|
# @default -- "/"
|
||||||
path: "/"
|
path: "/"
|
||||||
@@ -191,6 +197,9 @@ probes:
|
|||||||
enabled: true
|
enabled: true
|
||||||
# -- Set this to `true` if you wish to specify your own startupProbe
|
# -- Set this to `true` if you wish to specify your own startupProbe
|
||||||
custom: false
|
custom: false
|
||||||
|
# -- sets the probe type when not using a custom probe
|
||||||
|
# @default -- "TCP"
|
||||||
|
type: TCP
|
||||||
# -- If a HTTP probe is used (default for HTTP/HTTPS services) this path is used
|
# -- If a HTTP probe is used (default for HTTP/HTTPS services) this path is used
|
||||||
# @default -- "/"
|
# @default -- "/"
|
||||||
path: "/"
|
path: "/"
|
||||||
|
|||||||
Reference in New Issue
Block a user