Skip to content

Commit

Permalink
istio tracing config is set to 100 (kyma-project#11549)
Browse files Browse the repository at this point in the history
* cleaning istio tracing config and setting a sampling rate of 100 for evaluation profile only

* made sampling configurable at runtime via env variables
  • Loading branch information
a-thaler authored and sayanh committed Jul 6, 2021
1 parent 47b5f30 commit f8f796d
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 90 deletions.
19 changes: 1 addition & 18 deletions resources/istio/files/istio-operator-cluster-evaluation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,6 @@ spec:
enabled: true
k8s:
env:
- name: PILOT_TRACE_SAMPLING
value: "100"
- name: PILOT_HTTP10
value: "1"
- name: POD_NAME
Expand Down Expand Up @@ -177,6 +175,7 @@ spec:
defaultConfig:
proxyMetadata: {}
tracing:
sampling: 100
zipkin:
address: "{{ .Values.global.tracing.zipkinAddress }}"
enablePrometheusMerge: false
Expand Down Expand Up @@ -295,25 +294,9 @@ spec:
keepaliveMaxServerConnectionAge: 30m
nodeSelector: {}
replicaCount: 1
traceSampling: 1
sidecarInjectorWebhook:
enableNamespacesByDefault: true
objectSelector:
autoInject: true
enabled: false
rewriteAppHTTPProbe: true
telemetry:
enabled: true
v2:
enabled: true
metadataExchange:
wasmEnabled: false
prometheus:
enabled: true
wasmEnabled: false
stackdriver:
configOverride: {}
enabled: false
logging: false
monitoring: false
topology: false
19 changes: 1 addition & 18 deletions resources/istio/files/istio-operator-cluster-production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,6 @@ spec:
enabled: true
k8s:
env:
- name: PILOT_TRACE_SAMPLING
value: "100"
- name: PILOT_HTTP10
value: "1"
- name: POD_NAME
Expand Down Expand Up @@ -177,6 +175,7 @@ spec:
defaultConfig:
proxyMetadata: {}
tracing:
# sampling: 1 # use the istio default (which is 1) to support override by pilot env variable at runtime
zipkin:
address: "{{ .Values.global.tracing.zipkinAddress }}"
enablePrometheusMerge: false
Expand Down Expand Up @@ -297,25 +296,9 @@ spec:
keepaliveMaxServerConnectionAge: 30m
nodeSelector: {}
replicaCount: 1
traceSampling: 1
sidecarInjectorWebhook:
enableNamespacesByDefault: true
objectSelector:
autoInject: true
enabled: false
rewriteAppHTTPProbe: true
telemetry:
enabled: true
v2:
enabled: true
metadataExchange:
wasmEnabled: false
prometheus:
enabled: true
wasmEnabled: false
stackdriver:
configOverride: {}
enabled: false
logging: false
monitoring: false
topology: false
19 changes: 1 addition & 18 deletions resources/istio/files/istio-operator-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,6 @@ spec:
enabled: true
k8s:
env:
- name: PILOT_TRACE_SAMPLING
value: "100"
- name: PILOT_HTTP10
value: "1"
- name: POD_NAME
Expand Down Expand Up @@ -174,6 +172,7 @@ spec:
defaultConfig:
proxyMetadata: {}
tracing:
# sampling: 1 # use the istio default (which is 1) to support override by pilot env variable at runtime
zipkin:
address: "{{ .Values.global.tracing.zipkinAddress }}"
enablePrometheusMerge: false
Expand Down Expand Up @@ -294,25 +293,9 @@ spec:
keepaliveMaxServerConnectionAge: 30m
nodeSelector: {}
replicaCount: 1
traceSampling: 1
sidecarInjectorWebhook:
enableNamespacesByDefault: true
objectSelector:
autoInject: true
enabled: false
rewriteAppHTTPProbe: true
telemetry:
enabled: true
v2:
enabled: true
metadataExchange:
wasmEnabled: false
prometheus:
enabled: true
wasmEnabled: false
stackdriver:
configOverride: {}
enabled: false
logging: false
monitoring: false
topology: false
20 changes: 2 additions & 18 deletions resources/istio/files/istio-operator-minikube-evaluation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,6 @@ spec:
enabled: true
k8s:
env:
- name: PILOT_TRACE_SAMPLING
value: "100"
- name: PILOT_HTTP10
value: "1"
- name: POD_NAME
Expand Down Expand Up @@ -188,9 +186,11 @@ spec:
defaultConfig:
proxyMetadata: {}
tracing:
sampling: 100
zipkin:
address: "{{ .Values.global.tracing.zipkinAddress }}"
enablePrometheusMerge: false
enableTracing: {{ .Values.global.tracing.enabled }}
values:
base:
enableCRDTemplates: false
Expand Down Expand Up @@ -306,25 +306,9 @@ spec:
keepaliveMaxServerConnectionAge: 30m
nodeSelector: {}
replicaCount: 1
traceSampling: 1
sidecarInjectorWebhook:
enableNamespacesByDefault: true
objectSelector:
autoInject: true
enabled: false
rewriteAppHTTPProbe: true
telemetry:
enabled: true
v2:
enabled: true
metadataExchange:
wasmEnabled: false
prometheus:
enabled: true
wasmEnabled: false
stackdriver:
configOverride: {}
enabled: false
logging: false
monitoring: false
topology: false
20 changes: 2 additions & 18 deletions resources/istio/files/istio-operator-minikube.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,6 @@ spec:
enabled: true
k8s:
env:
- name: PILOT_TRACE_SAMPLING
value: "100"
- name: PILOT_HTTP10
value: "1"
- name: POD_NAME
Expand Down Expand Up @@ -187,9 +185,11 @@ spec:
defaultConfig:
proxyMetadata: {}
tracing:
# sampling: 1 # use the istio default (which is 1) to support override by pilot env variable at runtime
zipkin:
address: "{{ .Values.global.tracing.zipkinAddress }}"
enablePrometheusMerge: false
enableTracing: {{ .Values.global.tracing.enabled }}
values:
base:
enableCRDTemplates: false
Expand Down Expand Up @@ -304,25 +304,9 @@ spec:
keepaliveMaxServerConnectionAge: 30m
nodeSelector: {}
replicaCount: 1
traceSampling: 1
sidecarInjectorWebhook:
enableNamespacesByDefault: true
objectSelector:
autoInject: true
enabled: false
rewriteAppHTTPProbe: true
telemetry:
enabled: true
v2:
enabled: true
metadataExchange:
wasmEnabled: false
prometheus:
enabled: true
wasmEnabled: false
stackdriver:
configOverride: {}
enabled: false
logging: false
monitoring: false
topology: false

0 comments on commit f8f796d

Please sign in to comment.