adamant-kite-43734
03/08/2024, 8:14 PMcreamy-pencil-82913
03/09/2024, 12:09 AMstale-orange-31544
03/09/2024, 12:13 AMstale-orange-31544
03/09/2024, 12:16 AMcreamy-pencil-82913
03/09/2024, 12:18 AMkubectl logs
or kubectl exec
is from the apiserver connecting to the kubelet, not kubectl connecting to the control-plane endpoint. It has nothing to dowith the LB SANs, it is only about the node address that the apiserver is trying to use to connect to the node, not being in the kubelet’s server cert.creamy-pencil-82913
03/09/2024, 12:20 AM--kubelet-preferred-address-types
flag
https://kubernetes.io/docs/reference/command-line-tools-reference/kube-apiserver/
```--kubelet-preferred-address-types strings Default: "Hostname,InternalDNS,InternalIP,ExternalDNS,ExternalIP"
List of the preferred NodeAddressTypes to use for kubelet connections.```
creamy-pencil-82913
03/09/2024, 12:21 AMInternalIP,ExternalIP,Hostname
by default, that help text shows the kubernetes defaultsstale-orange-31544
03/09/2024, 12:22 AMcreamy-pencil-82913
03/09/2024, 12:23 AMcreamy-pencil-82913
03/09/2024, 12:24 AMkubectl get node
creamy-pencil-82913
03/09/2024, 12:24 AMstale-orange-31544
03/09/2024, 12:25 AMnode
resource does return the correct internal/extneral IP but what we are seeing is unless we set it with the k3s args/config those IPs are not getting added to the kubelet certs SANstale-orange-31544
03/09/2024, 12:26 AMcreamy-pencil-82913
03/10/2024, 9:57 PMcreamy-pencil-82913
03/10/2024, 9:58 PM