Commit 032c091
committed
Use service CIDRs to determine bootstrap kubelet IP family
The bootstrap kubelet needs to pick a node IP of the cluster's primary
IP family (to ensure that the bootstrap apiserver will advertise an IP
of that family, matching the family of the kubernetes.default
service).
Previously it was doing this based on the apiVIPs, but those may not
be defined in the install-config for UPI. Instead, base it on the
service CIDR. (The install-config validation ensures that all of the
values that *are* specified agree on the IP families, so this will
still pick the same family as the old code did when apiVIPs is
specified.)1 parent 9b51313 commit 032c091
1 file changed
+6
-37
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
| 303 | + | |
| 304 | + | |
308 | 305 | | |
309 | 306 | | |
310 | 307 | | |
311 | 308 | | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
312 | 312 | | |
313 | 313 | | |
314 | 314 | | |
| |||
341 | 341 | | |
342 | 342 | | |
343 | 343 | | |
344 | | - | |
| 344 | + | |
345 | 345 | | |
346 | 346 | | |
347 | 347 | | |
| |||
703 | 703 | | |
704 | 704 | | |
705 | 705 | | |
706 | | - | |
707 | | - | |
708 | | - | |
709 | | - | |
710 | | - | |
711 | | - | |
712 | | - | |
713 | | - | |
714 | | - | |
715 | | - | |
716 | | - | |
717 | | - | |
718 | | - | |
719 | | - | |
720 | | - | |
721 | | - | |
722 | | - | |
723 | | - | |
724 | | - | |
725 | | - | |
726 | | - | |
727 | | - | |
728 | | - | |
729 | | - | |
730 | | - | |
731 | | - | |
732 | | - | |
733 | | - | |
734 | | - | |
735 | | - | |
736 | | - | |
0 commit comments