mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-13 11:25:19 +00:00
Merge pull request #47443 from p0lyn0mial/use_incluster_cfg_when_creating_ext_informers
Automatic merge from submit-queue (batch tested with PRs 48012, 47443, 47702, 47178) incluster config will be used when creating external shared informers. **What this PR does / why we need it**: Previously the loopback configuration was used to talk to the server. As a consequence a custom API server was unable to talk to the root API server. This PR changes the above by using incluster configuration to create shared informers. **Release note**: ```release-note NONE ```
This commit is contained in:
@@ -593,6 +593,8 @@ func defaultOptions(s *options.ServerRunOptions) error {
|
||||
if err != nil {
|
||||
return fmt.Errorf("error determining service IP ranges: %v", err)
|
||||
}
|
||||
s.SecureServing.ForceLoopbackConfigUsage()
|
||||
|
||||
if err := s.SecureServing.MaybeDefaultWithSelfSignedCerts(s.GenericServerRunOptions.AdvertiseAddress.String(), []string{"kubernetes.default.svc", "kubernetes.default", "kubernetes"}, []net.IP{apiServerServiceIP}); err != nil {
|
||||
return fmt.Errorf("error creating self-signed certificates: %v", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user