INNER CODE UNIT · Go
err
kubermatic/kubermatic · cmd/kubeletdnat-controller/main.go:84
err = wait.PollUntilContextTimeout(ctx, 1*time.Second, 5*time.Minute, true, func(ctx context.Context) (bool, error) {
client, err := ctrlruntimeclient.New(config, ctrlruntimeclient.Options{})
if err != nil {
return false, nil
}
nodeList := &corev1.NodeList{}
if err := client.List(ctx, nodeList); err != nil {
return false, nil
}
return true, nil
})
if err != nil {
log.Fatalw("Failed waiting for the API server to be alive", zap.Error(err))
}
// 8080 is already in use by the insecure port of the apiserver