From ef832fb1927616d124c8784c61a5e28d8b8a9bec Mon Sep 17 00:00:00 2001 From: jurabek Date: Sat, 10 Feb 2024 20:21:10 +0100 Subject: [PATCH] adding OTEL into Istio --- .../infrastructure/istio-profile/istio-system.yaml | 9 +++++++++ .../infrastructure/istio-profile/kustomization.yaml | 3 ++- .../infrastructure/istio-profile/telemetry.yaml | 8 ++++++++ 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 k8s-kustomize/infrastructure/istio-profile/telemetry.yaml diff --git a/k8s-kustomize/infrastructure/istio-profile/istio-system.yaml b/k8s-kustomize/infrastructure/istio-profile/istio-system.yaml index d57046998..e1e5ddb97 100644 --- a/k8s-kustomize/infrastructure/istio-profile/istio-system.yaml +++ b/k8s-kustomize/infrastructure/istio-profile/istio-system.yaml @@ -8,6 +8,15 @@ spec: hub: gcr.io/istio-release meshConfig: accessLogFile: /dev/stdout + defaultProviders: + tracing: + - opentelemetry + extensionProviders: + - name: "opentelemetry" + opentelemetry: + service: "otel-collector.monitoring.svc.cluster.local" + port: 4317 + enablePrometheusMerge: true components: ingressGateways: - name: istio-ingressgateway diff --git a/k8s-kustomize/infrastructure/istio-profile/kustomization.yaml b/k8s-kustomize/infrastructure/istio-profile/kustomization.yaml index b8b3b7187..b2d6e1313 100644 --- a/k8s-kustomize/infrastructure/istio-profile/kustomization.yaml +++ b/k8s-kustomize/infrastructure/istio-profile/kustomization.yaml @@ -2,4 +2,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - namespace.yaml - - istio-system.yaml \ No newline at end of file + - istio-system.yaml + - telemetry.yaml \ No newline at end of file diff --git a/k8s-kustomize/infrastructure/istio-profile/telemetry.yaml b/k8s-kustomize/infrastructure/istio-profile/telemetry.yaml new file mode 100644 index 000000000..ba179ab02 --- /dev/null +++ b/k8s-kustomize/infrastructure/istio-profile/telemetry.yaml @@ -0,0 +1,8 @@ +apiVersion: telemetry.istio.io/v1alpha1 +kind: Telemetry +metadata: + name: mesh-default + namespace: istio-system +spec: + tracing: + - randomSamplingPercentage: 100.00 \ No newline at end of file