From d3b2708ae8632b514ac1e7abd3a8029fc6611814 Mon Sep 17 00:00:00 2001 From: Alejandro Escobar Date: Mon, 13 Feb 2017 15:39:38 -0800 Subject: [PATCH] first steps to adding kubelet option to enable debugger mode, next steps is to included a warning message. added warning in case that debug mode is on for kubelet. --- hack/local-up-cluster.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hack/local-up-cluster.sh b/hack/local-up-cluster.sh index 3aedfe93988..718c737f6f9 100755 --- a/hack/local-up-cluster.sh +++ b/hack/local-up-cluster.sh @@ -29,6 +29,7 @@ RUNTIME_CONFIG=${RUNTIME_CONFIG:-""} KUBELET_AUTHORIZATION_WEBHOOK=${KUBELET_AUTHORIZATION_WEBHOOK:-""} KUBELET_AUTHENTICATION_WEBHOOK=${KUBELET_AUTHENTICATION_WEBHOOK:-""} POD_MANIFEST_PATH=${POD_MANIFEST_PATH:-"/var/run/kubernetes/static-pods"} +ENABLE_KUBELET_DEBUG_HANDLERS=${ENABLE_KUBELET_DEBUG_HANDLERS:-false} # Name of the network plugin, eg: "kubenet" NET_PLUGIN=${NET_PLUGIN:-""} # Place the binaries required by NET_PLUGIN in this directory, eg: "/home/kubernetes/bin". @@ -590,6 +591,7 @@ function start_kubelet { --eviction-soft=${EVICTION_SOFT} \ --eviction-pressure-transition-period=${EVICTION_PRESSURE_TRANSITION_PERIOD} \ --pod-manifest-path="${POD_MANIFEST_PATH}" \ + --enable-debugging-handlers=${ENABLE_KUBELET_DEBUG_HANDLERS} \ ${auth_args} \ ${dns_args} \ ${net_plugin_dir_args} \ @@ -794,6 +796,9 @@ if [[ "${START_MODE}" != "nokubelet" ]]; then ;; Linux) start_kubelet + if [[ "${ENABLE_KUBELET_DEBUG_HANDLER}" = true ]]; then + warning "kubelet is debug mode." + fi ;; *) warning "Unsupported host OS. Must be Linux or Mac OS X, kubelet aborted."