Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kubespray
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Kubespray
Commits
57fef8f7
Commit
57fef8f7
authored
5 years ago
by
Matthew Mosesohn
Committed by
Kubernetes Prow Robot
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Allow customizing kubelet healthz port and bind addr (#5403)
Change-Id: I1634ba2d2d3337243ffcdea86750003a559f2576
parent
f599a4a8
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
roles/kubernetes/node/defaults/main.yml
+6
-0
6 additions, 0 deletions
roles/kubernetes/node/defaults/main.yml
roles/kubernetes/node/templates/kubelet-config.v1beta1.yaml.j2
+2
-0
2 additions, 0 deletions
.../kubernetes/node/templates/kubelet-config.v1beta1.yaml.j2
with
8 additions
and
0 deletions
roles/kubernetes/node/defaults/main.yml
+
6
−
0
View file @
57fef8f7
...
...
@@ -84,6 +84,12 @@ kube_override_hostname: >-
# The read-only port for the Kubelet to serve on with no authentication/authorization.
kube_read_only_port
:
0
# Port for healthz for Kubelet
kubelet_healthz_port
:
10248
# Bind address for healthz for Kubelet
kubelet_healthz_bind_address
:
127.0.0.1
# sysctl_file_path to add sysctl conf to
sysctl_file_path
:
"
/etc/sysctl.d/99-sysctl.conf"
...
...
This diff is collapsed.
Click to expand it.
roles/kubernetes/node/templates/kubelet-config.v1beta1.yaml.j2
+
2
−
0
View file @
57fef8f7
...
...
@@ -27,6 +27,8 @@ cgroupDriver: {{ kubelet_cgroup_driver|default(kubelet_cgroup_driver_detected) }
maxPods: {{ kubelet_max_pods }}
address: {{ kubelet_bind_address }}
readOnlyPort: {{ kube_read_only_port }}
healthzPort: {{ kubelet_healthz_port }}
healthzBindAddress: {{ kubelet_healthz_bind_address }}
kubeletCgroups: {{ kubelet_kubelet_cgroups }}
clusterDomain: {{ dns_domain }}
{% if kubelet_rotate_certificates|bool %}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment