Skip to content

Commit

Permalink
test/e2e_node: set apiserver kubelet preferred addresses
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Sy Kim <andrewsy@google.com>
  • Loading branch information
andrewsykim committed Nov 21, 2022
1 parent 3f823c0 commit 6c8eacb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/e2e_node/services/apiserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ func (a *APIServer) Start() error {
o.Authentication.ServiceAccounts.Issuers = []string{"https://foo.bar.example.com"}
o.Authentication.ServiceAccounts.KeyFiles = []string{saSigningKeyFile.Name()}

o.KubeletConfig.PreferredAddressTypes = []string{"InternalIP"}

errCh := make(chan error)
go func() {
defer close(errCh)
Expand Down

0 comments on commit 6c8eacb

Please sign in to comment.