-
Notifications
You must be signed in to change notification settings - Fork 1
Troubleshooting
Minh Tu Le edited this page Sep 26, 2025
·
4 revisions
To troubleshoot connection issues with Gateway,
- Login to Twingate client and sync the Kubernetes configuration if Auto Sync is not enabled.
- Switch
kubectlcurrent context to the context added by Twingate.- Run
kubectl config view --minify --output yamlto print the configuration of the current context.
- Run
- Run
kubectl auth whoamito check if the connection is working. - Check the Gateway log for any errors.
- If there is no log at all, it means the executed
kubectlcommand never reached the Gateway. See Connector fails to connect to the Gateway.
- If there is no log at all, it means the executed
- Check the Kubernetes resource's network events in Twingate Admin Console.
- When running
kubectl auth whoami, you get an error message:
E0728 11:28:58.794311 10416 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list:
Get \"https://my-k8s-cluster.int/api?timeout=32s\": read tcp 100.96.0.2:51459->100.109.236.181:443: read: connection
reset by peer - error from a previous attempt: read tcp 100.96.0.2:51458->100.109.236.181:443: read: connection reset by peer"
- In Twingate Admin Console, check the Kubernetes resource for its network event. If the Connector fails to connect to the Gateway, you should see a "DNS lookup failed" event.
- There is no logs in the Gateway pod.
- Some Connectors are deployed outside the Kubernetes cluster but the Gateway is deployed with a
ClusterIPservice (the default configuration).- In the default setup using
ClusterIP, the Gateway is only accessible to a Connector deployed inside the cluster. If you have a Connector (in the same Remote Network) deployed outside the Kubernetes cluster, you need to use aLoadBalancerorNodePortservice to expose the Gateway to the Connector.
- In the default setup using
- The resource's Gateway address is entered inaccurately and hence not resolvable by the Connector.
If ~/.kube isn't present on the machine, the Twingate Client configuration sync will not work.
To resolve, create the ~/.kube directory. After this, the configuration sync should succeed.
Copyright © 2025 Twingate.