Hi! yesterday I set up a kubernetes cluster on DigitalOcean and today I ran the following steps:

$doctl kubernetes cluster kubeconfig save fyx-cluster
(OK)
$kubectl config current-context
(prints cluster name)
$kubectl apply -f gitlab-admin-service-account.yaml
Unable to connect to the server: dial tcp <IP address>:443: i/o timeout

I run the last command repeatedly, same error.

Now, 10 minutes later, the same command succeeds:

$kubectl apply -f gitlab-admin-service-account.yaml
serviceaccount/gitlab-admin created
clusterrolebinding.rbac.authorization.k8s.io/gitlab-admin created

Is there a way I can avoid these timeouts in the future?

1 comment

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

Running the same command a few minutes later, results again in the same error:

$kubectl apply -f gitlab-admin-service-account.yaml
Unable to connect to the server: dial tcp <IP address>:443: i/o timeout

These errors seem to happen sporadically and I’d like to learn how to fix the root cause. My personal internet connection is fine.

Submit an Answer