File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -995,6 +995,14 @@ users:
995
995
EOF
996
996
fi
997
997
998
+ if [[ " ${ENABLE_APISERVER_TRACING:- false} " == " true" ]]; then
999
+ cat << EOF >/etc/srv/kubernetes/opentelemetry_config.yaml
1000
+ apiVersion: apiserver.k8s.io/v1alpha1
1001
+ kind: OpenTelemetryClientConfiguration
1002
+ url: localhost:55680
1003
+ EOF
1004
+ fi
1005
+
998
1006
if [[ -n " ${ADMISSION_CONTROL:- } " ]]; then
999
1007
# Emit a basic admission control configuration file, with no plugins specified.
1000
1008
cat << EOF >/etc/srv/kubernetes/admission_controller_config.yaml
Original file line number Diff line number Diff line change @@ -255,6 +255,10 @@ function start-kube-apiserver {
255
255
params+=" --admission-control-config-file=/etc/srv/kubernetes/admission_controller_config.yaml"
256
256
fi
257
257
258
+ if [[ " ${ENABLE_APISERVER_TRACING:- false} " == " true" ]]; then
259
+ params+=" --opentelemetry-config-file=/etc/srv/kubernetes/opentelemetry_config.yaml"
260
+ fi
261
+
258
262
# If GKE exec auth support is requested for webhooks, then
259
263
# gke-exec-auth-plugin needs to be mounted into the kube-apiserver container.
260
264
local webhook_exec_auth_plugin_mount=" "
You can’t perform that action at this time.
0 commit comments