test/e2e_node: set apiserver kubelet preferred addresses

Signed-off-by: Andrew Sy Kim <andrewsy@google.com>
This commit is contained in:
Andrew Sy Kim 2022-11-21 09:57:43 -05:00
parent 3f823c0daa
commit 6c8eacb157

View File

@ -88,6 +88,8 @@ func (a *APIServer) Start() error {
o.Authentication.ServiceAccounts.Issuers = []string{"https://foo.bar.example.com"} o.Authentication.ServiceAccounts.Issuers = []string{"https://foo.bar.example.com"}
o.Authentication.ServiceAccounts.KeyFiles = []string{saSigningKeyFile.Name()} o.Authentication.ServiceAccounts.KeyFiles = []string{saSigningKeyFile.Name()}
o.KubeletConfig.PreferredAddressTypes = []string{"InternalIP"}
errCh := make(chan error) errCh := make(chan error)
go func() { go func() {
defer close(errCh) defer close(errCh)