Merge pull request #114180 from saschagrunert/tracing-local-up-cluster

Tracing: sample always in `hack/local-up-cluster.sh`
This commit is contained in:
Kubernetes Prow Robot 2022-12-10 07:53:48 -08:00 committed by GitHub
commit 01e6efcc37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -753,6 +753,15 @@ runtimeRequestTimeout: "${RUNTIME_REQUEST_TIMEOUT}"
staticPodPath: "${POD_MANIFEST_PATH}" staticPodPath: "${POD_MANIFEST_PATH}"
resolvConf: "${KUBELET_RESOLV_CONF}" resolvConf: "${KUBELET_RESOLV_CONF}"
EOF EOF
if [[ "$FEATURE_GATES" == *KubeletTracing=true* ]]; then
cat <<EOF >> /tmp/kubelet.yaml
tracing:
endpoint: localhost:4317 # the default value
samplingRatePerMillion: 1000000 # sample always
EOF
fi
{ {
# authentication # authentication
echo "authentication:" echo "authentication:"