mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-07 02:27:43 +03:00
[containerd/tracing]: add distributed tracing config flags (#11103)
* [containerd/tracing]: add distributed tracing config flags Signed-off-by: Ugur Ozturk <ugurozturk918@gmail.com> * [containerd/tracing]: add distributed tracing config flags -fix Signed-off-by: Ugur Ozturk <ugurozturk918@gmail.com> --------- Signed-off-by: Ugur Ozturk <ugurozturk918@gmail.com>
This commit is contained in:
@@ -109,3 +109,11 @@ containerd_supported_distributions:
|
|||||||
|
|
||||||
# Enable container device interface
|
# Enable container device interface
|
||||||
enable_cdi: false
|
enable_cdi: false
|
||||||
|
|
||||||
|
# For containerd tracing configuration please check out the official documentation:
|
||||||
|
# https://github.com/containerd/containerd/blob/main/docs/tracing.md
|
||||||
|
containerd_tracing_enabled: false
|
||||||
|
containerd_tracing_endpoint: "0.0.0.0:4317"
|
||||||
|
containerd_tracing_protocol: "grpc"
|
||||||
|
containerd_tracing_sampling_ratio: 1.0
|
||||||
|
containerd_tracing_service_name: "containerd"
|
||||||
@@ -92,6 +92,18 @@ oom_score = {{ containerd_oom_score }}
|
|||||||
disable = false
|
disable = false
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% if containerd_tracing_enabled %}
|
||||||
|
[plugins."io.containerd.tracing.processor.v1.otlp"]
|
||||||
|
endpoint = "{{ containerd_tracing_endpoint }}"
|
||||||
|
protocol = "{{ containerd_tracing_protocol }}"
|
||||||
|
{% if containerd_tracing_protocol == "grpc" %}
|
||||||
|
insecure = false
|
||||||
|
{% endif %}
|
||||||
|
[plugins."io.containerd.internal.v1.tracing"]
|
||||||
|
sampling_ratio = {{ containerd_tracing_sampling_ratio }}
|
||||||
|
service_name = "{{ containerd_tracing_service_name }}"
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% if containerd_extra_args is defined %}
|
{% if containerd_extra_args is defined %}
|
||||||
{{ containerd_extra_args }}
|
{{ containerd_extra_args }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
Reference in New Issue
Block a user