Signed-off-by: hanghuge <cmoman@outlook.com>

Fix unavailable link

Signed-off-by: hanghuge <cmoman@outlook.com>
This commit is contained in:
hanghuge 2024-04-06 19:48:24 +08:00
parent fc567a1df8
commit c14a158d03

View file

@ -311,7 +311,7 @@ func New(l log.Logger, metrics discovery.DiscovererMetrics, conf *SDConfig) (*Di
}
case conf.APIServer.URL == nil:
// Use the Kubernetes provided pod service account
// as described in https://kubernetes.io/docs/admin/service-accounts-admin/
// as described in https://kubernetes.io/docs/tasks/run-application/access-api-from-pod/#using-official-client-libraries
kcfg, err = rest.InClusterConfig()
if err != nil {
return nil, err