Browse Source

Allow customizing kubelet healthz port and bind addr (#5403)

Change-Id: I1634ba2d2d3337243ffcdea86750003a559f2576
pull/5405/head
Matthew Mosesohn 4 years ago
committed by Kubernetes Prow Robot
parent
commit
57fef8f75e
2 changed files with 8 additions and 0 deletions
  1. 6
      roles/kubernetes/node/defaults/main.yml
  2. 2
      roles/kubernetes/node/templates/kubelet-config.v1beta1.yaml.j2

6
roles/kubernetes/node/defaults/main.yml

@ -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"

2
roles/kubernetes/node/templates/kubelet-config.v1beta1.yaml.j2

@ -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 %}

Loading…
Cancel
Save