fix(meshcentral): http port and probe (#4196)
* remove debug * fix(meshcentral): http port and probe * auto configure probe protocol * add note
This commit is contained in:
@@ -1,5 +1,11 @@
|
|||||||
# Installation instructions
|
# Installation instructions
|
||||||
|
|
||||||
|
:::warn
|
||||||
|
|
||||||
|
Ingress for this chart is **required**
|
||||||
|
|
||||||
|
:::
|
||||||
|
|
||||||
In order to be able to expose some options in the GUI,
|
In order to be able to expose some options in the GUI,
|
||||||
but also give users the option to users to **unset** those values,
|
but also give users the option to users to **unset** those values,
|
||||||
instead of using our defaults. We decided to do the following.
|
instead of using our defaults. We decided to do the following.
|
||||||
|
|||||||
@@ -372,7 +372,7 @@ questions:
|
|||||||
type: int
|
type: int
|
||||||
default: 10205
|
default: 10205
|
||||||
required: true
|
required: true
|
||||||
# Include{advancedPortHTTPS}
|
# Include{advancedPortHTTP}
|
||||||
- variable: targetPort
|
- variable: targetPort
|
||||||
label: Target Port
|
label: Target Port
|
||||||
description: The internal(!) port on the container the Application runs on
|
description: The internal(!) port on the container the Application runs on
|
||||||
|
|||||||
@@ -20,7 +20,6 @@
|
|||||||
|
|
||||||
{{/* Inject some values */}}
|
{{/* Inject some values */}}
|
||||||
{{- $_ := set $config "$schema" "http://info.meshcentral.com/downloads/meshcentral-config-schema.json" }}
|
{{- $_ := set $config "$schema" "http://info.meshcentral.com/downloads/meshcentral-config-schema.json" }}
|
||||||
{{- $_ := set $config "__comment__" "This file is generated dynamically at install time, do not attempt to modify it. On next start it will be re-generated" }}
|
|
||||||
|
|
||||||
{{- if not (hasKey $config "settings") }}
|
{{- if not (hasKey $config "settings") }}
|
||||||
{{- $_ := set $config "settings" dict }}
|
{{- $_ := set $config "settings" dict }}
|
||||||
@@ -66,7 +65,6 @@ data:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{/* Prunes keys that start with _ */}}
|
{{/* Prunes keys that start with _ */}}
|
||||||
|
|
||||||
{{- define "prune.keys" }}
|
{{- define "prune.keys" }}
|
||||||
{{- $values := . }}
|
{{- $values := . }}
|
||||||
{{- range $k, $v := $values }}
|
{{- range $k, $v := $values }}
|
||||||
@@ -88,7 +86,6 @@ data:
|
|||||||
{{/* Prunes keys that start with _ */}}
|
{{/* Prunes keys that start with _ */}}
|
||||||
{{/* Renames tcdefaultdomain variable to "" as this is the key used by MeshCentral */}}
|
{{/* Renames tcdefaultdomain variable to "" as this is the key used by MeshCentral */}}
|
||||||
{{/* but SCALE GUI does not handle it well */}}
|
{{/* but SCALE GUI does not handle it well */}}
|
||||||
|
|
||||||
{{- define "prune.keys.scale" }}
|
{{- define "prune.keys.scale" }}
|
||||||
{{- $values := . }}
|
{{- $values := . }}
|
||||||
{{- if (hasKey $values "domains") }}
|
{{- if (hasKey $values "domains") }}
|
||||||
@@ -104,9 +101,6 @@ data:
|
|||||||
{{- $_ := unset $values $k }}
|
{{- $_ := unset $values $k }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if eq $k "browserPing" }}
|
|
||||||
{{- $_ := set $values "__browserPing" (printf "%v-%v" (kindOf $v) (typeOf $v)) }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if or (eq (kindOf $v) "float64") (eq (kindOf $v) "int64") }}
|
{{- if or (eq (kindOf $v) "float64") (eq (kindOf $v) "int64") }}
|
||||||
{{- if eq (int $v) -99 }}
|
{{- if eq (int $v) -99 }}
|
||||||
{{- $_ := unset $values $k }}
|
{{- $_ := unset $values $k }}
|
||||||
|
|||||||
@@ -4,5 +4,20 @@
|
|||||||
{{/* Render secret */}}
|
{{/* Render secret */}}
|
||||||
{{- include "meshcentral.secret" . }}
|
{{- include "meshcentral.secret" . }}
|
||||||
|
|
||||||
|
{{- 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 (include "meshcentral.probes" . | fromYaml) -}}
|
||||||
|
|
||||||
{{/* Render the templates */}}
|
{{/* Render the templates */}}
|
||||||
{{ include "tc.common.loader.apply" . }}
|
{{ include "tc.common.loader.apply" . }}
|
||||||
|
|||||||
@@ -938,21 +938,11 @@ meshcentral:
|
|||||||
# - When set, limits what OIDC groups are mirrored into MeshCentral user groups.
|
# - When set, limits what OIDC groups are mirrored into MeshCentral user groups.
|
||||||
filter: []
|
filter: []
|
||||||
|
|
||||||
probes:
|
|
||||||
liveness:
|
|
||||||
type: HTTPS
|
|
||||||
path: /health.ashx
|
|
||||||
readiness:
|
|
||||||
type: HTTPS
|
|
||||||
path: /health.ashx
|
|
||||||
startup:
|
|
||||||
type: HTTPS
|
|
||||||
path: /health.ashx
|
|
||||||
|
|
||||||
service:
|
service:
|
||||||
main:
|
main:
|
||||||
ports:
|
ports:
|
||||||
main:
|
main:
|
||||||
|
# - Set this to HTTP if certs are served by a proxy
|
||||||
protocol: HTTPS
|
protocol: HTTPS
|
||||||
port: 10205
|
port: 10205
|
||||||
# mps:
|
# mps:
|
||||||
@@ -997,7 +987,7 @@ persistence:
|
|||||||
enabled: true
|
enabled: true
|
||||||
type: secret
|
type: secret
|
||||||
readOnly: true
|
readOnly: true
|
||||||
# defaultMode: "0600"
|
defaultMode: "0600"
|
||||||
objectName: '{{ include "tc.common.names.fullname" . }}-secret'
|
objectName: '{{ include "tc.common.names.fullname" . }}-secret'
|
||||||
mountPath: /opt/meshcentral/meshcentral-config
|
mountPath: /opt/meshcentral/meshcentral-config
|
||||||
items:
|
items:
|
||||||
|
|||||||
Reference in New Issue
Block a user