Skip to content

Commit

Permalink
Fix: set fallback value of kubelet ip6 (kubernetes-sigs#8858) (kubern…
Browse files Browse the repository at this point in the history
…etes-sigs#8926)

* Fix: set fallback value of kubelet ip6 (kubernetes-sigs#8858)

* Prune the spurious comma in the end of kubelet_address

- Update `roles/kubernetes/node/defaults/main.yml`

Co-authored-by: Cristian Calin <6627509+cristicalin@users.noreply.github.com>

* Fix: set fallback value of kubelet ip6 (kubernetes-sigs#8858)

- Apply the lint: kubernetes-sigs@1326063

Co-authored-by: Cristian Calin <6627509+cristicalin@users.noreply.github.com>
  • Loading branch information
2 people authored and chinnonae committed Jun 7, 2022
1 parent 1f65e6d commit 5a89181
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/kubernetes/node/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
kube_apiserver_insecure_bind_address: 127.0.0.1

# advertised host IP for kubelet. This affects network plugin config. Take caution
kubelet_address: "{{ ip | default(fallback_ips[inventory_hostname]) }}{{ ',' + ip6 if enable_dual_stack_networks and ip6 is defined }}"
kubelet_address: "{{ ip | default(fallback_ips[inventory_hostname]) }}{{ (',' + ip6) if enable_dual_stack_networks and ip6 is defined else '' }}"

# bind address for kubelet. Set to 0.0.0.0 to listen on all interfaces
kubelet_bind_address: "{{ ip | default('0.0.0.0') }}"
Expand Down

0 comments on commit 5a89181

Please sign in to comment.