Skip to content

Commit

Permalink
use kubelet 10248 as health check port instead of 10255
Browse files Browse the repository at this point in the history
Signed-off-by: pacoxu <paco.xu@daocloud.io>
  • Loading branch information
pacoxu committed Apr 15, 2021
1 parent fcf9300 commit 396cb37
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions test/e2e_node/conformance/run_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,10 @@ start_kubelet() {
fi
}

# wait_kubelet retries for 10 times for kubelet to be ready by checking http://127.0.0.1:10255/healthz.
# wait_kubelet retries for 10 times for kubelet to be ready by checking http://127.0.0.1:10248/healthz.
wait_kubelet() {
echo "Health checking kubelet..."
healthCheckURL=http://127.0.0.1:10255/healthz
healthCheckURL=http://127.0.0.1:10248/healthz
local maxRetry=10
local cur=1
while [ $cur -le $maxRetry ]; do
Expand Down
4 changes: 2 additions & 2 deletions test/e2e_node/services/kubelet.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,11 @@ func RunKubelet() {

const (
// Ports of different e2e services.
kubeletReadOnlyPort = "10255"
kubeletHealthCheckPort = "10248"
// KubeletRootDirectory specifies the directory where the kubelet runtime information is stored.
KubeletRootDirectory = "/var/lib/kubelet"
// Health check url of kubelet
kubeletHealthCheckURL = "http://127.0.0.1:" + kubeletReadOnlyPort + "/healthz"
kubeletHealthCheckURL = "http://127.0.0.1:" + kubeletHealthCheckPort + "/healthz"
)

// startKubelet starts the Kubelet in a separate process or returns an error
Expand Down
4 changes: 2 additions & 2 deletions test/e2e_node/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ const (
defaultPodResourcesPath = "/var/lib/kubelet/pod-resources"
defaultPodResourcesTimeout = 10 * time.Second
defaultPodResourcesMaxSize = 1024 * 1024 * 16 // 16 Mb
kubeletReadOnlyPort = "10255"
kubeletHealthCheckURL = "http://127.0.0.1:" + kubeletReadOnlyPort + "/healthz"
kubeletHealthCheckPort = "10248"
kubeletHealthCheckURL = "http://127.0.0.1:" + kubeletHealthCheckPort + "/healthz"
)

func getNodeSummary() (*stats.Summary, error) {
Expand Down

0 comments on commit 396cb37

Please sign in to comment.