From 83513be708b10e0f166040f9ed2002c7fd851efe Mon Sep 17 00:00:00 2001 From: John Mazzitelli Date: Wed, 7 Feb 2024 13:02:06 -0500 Subject: [PATCH] add profiler to kiali server --- crd-docs/cr/kiali.io_v1alpha1_kiali.yaml | 2 ++ crd-docs/crd/kiali.io_kialis.yaml | 7 +++++++ deploy/kiali/kiali_cr_dev.yaml | 4 ++++ roles/default/kiali-deploy/defaults/main.yml | 2 ++ 4 files changed, 15 insertions(+) diff --git a/crd-docs/cr/kiali.io_v1alpha1_kiali.yaml b/crd-docs/cr/kiali.io_v1alpha1_kiali.yaml index a91f2c5f..83de3c14 100644 --- a/crd-docs/cr/kiali.io_v1alpha1_kiali.yaml +++ b/crd-docs/cr/kiali.io_v1alpha1_kiali.yaml @@ -464,6 +464,8 @@ spec: skip_verify: false tls_enabled: false port: 20001 + profiler: + enabled: false web_fqdn: "" web_history_mode: "" web_port: "" diff --git a/crd-docs/crd/kiali.io_kialis.yaml b/crd-docs/crd/kiali.io_kialis.yaml index 1ee9d1dc..fb27df8f 100644 --- a/crd-docs/crd/kiali.io_kialis.yaml +++ b/crd-docs/crd/kiali.io_kialis.yaml @@ -1357,6 +1357,13 @@ spec: port: description: "The port that the server will bind to in order to receive console and API requests." type: integer + profiler: + description: "Controls the internal profiler used to debug the internals of Kiali" + type: object + properties: + enabled: + description: "When 'true', the profiler will be enabled and accessible at /debug/pprof/ on the Kiali endpoint." + type: boolean web_fqdn: description: "Defines the public domain where Kiali is being served. This is the 'domain' part of the URL (usually it's a fully-qualified domain name). For example, `kiali.example.org`. When empty, Kiali will try to guess this value from HTTP headers. On non-OpenShift clusters, you must populate this value if you want to enable cross-linking between Kiali instances in a multi-cluster setup." type: string diff --git a/deploy/kiali/kiali_cr_dev.yaml b/deploy/kiali/kiali_cr_dev.yaml index 820d102f..d80ebe42 100644 --- a/deploy/kiali/kiali_cr_dev.yaml +++ b/deploy/kiali/kiali_cr_dev.yaml @@ -28,3 +28,7 @@ spec: service_type: $SERVICE_TYPE logger: log_level: info + + server: + profiler: + enabled: true diff --git a/roles/default/kiali-deploy/defaults/main.yml b/roles/default/kiali-deploy/defaults/main.yml index bdb606e6..d9888d3d 100644 --- a/roles/default/kiali-deploy/defaults/main.yml +++ b/roles/default/kiali-deploy/defaults/main.yml @@ -348,6 +348,8 @@ kiali_defaults: skip_verify: false tls_enabled: false port: 20001 + profiler: + enabled: false web_fqdn: "" web_history_mode: "" web_port: ""