Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
3cbd5f01
Commit
3cbd5f01
authored
Sep 25, 2015
by
Brian Grant
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #13044 from roberthbailey/kubelet-healthcheck
Healthcheck the kubelet on the secure port rather than the read-only port.
parents
51a3b80b
da94ed79
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
node.yaml
cluster/gce/trusty/node.yaml
+1
-1
kubelet-checker.sh
cluster/saltbase/salt/supervisor/kubelet-checker.sh
+1
-1
No files found.
cluster/gce/trusty/node.yaml
View file @
3cbd5f01
...
@@ -400,7 +400,7 @@ script
...
@@ -400,7 +400,7 @@ script
echo "Docker daemon failed!"
echo "Docker daemon failed!"
pkill docker
pkill docker
fi
fi
if ! curl -
m ${max_seconds} -f -s http://127.0.0.1:10255
/healthz > /dev/null; then
if ! curl -
-insecure -m ${max_seconds} -f -s https://127.0.0.1:10250
/healthz > /dev/null; then
echo "Kubelet is unhealthy!"
echo "Kubelet is unhealthy!"
pkill kubelet
pkill kubelet
fi
fi
...
...
cluster/saltbase/salt/supervisor/kubelet-checker.sh
View file @
3cbd5f01
...
@@ -27,7 +27,7 @@ sleep 60
...
@@ -27,7 +27,7 @@ sleep 60
max_seconds
=
10
max_seconds
=
10
while
true
;
do
while
true
;
do
if
!
curl
-
m
${
max_seconds
}
-f
-s
http://127.0.0.1:10255
/healthz
>
/dev/null
;
then
if
!
curl
-
-insecure
-m
${
max_seconds
}
-f
-s
https://127.0.0.1:10250
/healthz
>
/dev/null
;
then
echo
"kubelet failed!"
echo
"kubelet failed!"
exit
2
exit
2
fi
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment