Telepresence telepresence: error 38

Local VPN interfering with Telepresence.

Understanding Telepresence

Telepresence is an open-source tool designed to improve the development workflow for Kubernetes applications. It allows developers to run a single service locally while connecting it to a remote Kubernetes cluster, facilitating rapid development and testing. By doing so, developers can leverage local development tools and workflows while still interacting with the broader Kubernetes environment.

Identifying the Symptom: Error 38

When using Telepresence, you might encounter the error message telepresence: error 38. This error typically manifests when attempting to connect to a Kubernetes cluster, and it prevents the successful establishment of the connection required for local development.

Exploring the Issue: What is Error 38?

Error 38 in Telepresence is often linked to network conflicts, particularly those caused by VPNs. VPNs can alter network routes and DNS settings, which interferes with Telepresence's ability to establish a connection to the Kubernetes cluster. This interference can result in the tool being unable to resolve cluster addresses or route traffic correctly.

Why VPNs Cause Issues

VPNs typically reroute all network traffic through a secure tunnel, which can conflict with the routing rules that Telepresence sets up to connect your local machine to the Kubernetes cluster. This conflict can lead to errors like Error 38, as Telepresence cannot properly configure the network settings it needs.

Steps to Resolve Error 38

To resolve Error 38, you need to address the network interference caused by the VPN. Here are the steps you can take:

Step 1: Disconnect the VPN

The simplest solution is to disconnect your VPN while using Telepresence. This action will remove the network routing conflicts and allow Telepresence to set up its required routes. To disconnect your VPN, you can usually click on the VPN icon in your system tray and select 'Disconnect'.

Step 2: Adjust VPN Settings

If disconnecting the VPN is not an option, you can try adjusting the VPN settings to allow local network traffic. This setting is often labeled as 'Allow LAN traffic' or 'Bypass VPN for local addresses'. Check your VPN's documentation for specific instructions on how to enable this feature.

Step 3: Use Split Tunneling

Another approach is to configure split tunneling, which allows you to specify which traffic should go through the VPN and which should not. By excluding the Kubernetes cluster's IP range from the VPN, you can prevent routing conflicts. Refer to your VPN provider's documentation for guidance on setting up split tunneling.

Additional Resources

For more detailed information on configuring your VPN or understanding Telepresence's network requirements, consider visiting the following resources:

By following these steps, you should be able to resolve Error 38 and continue using Telepresence effectively for your Kubernetes development tasks.

Master

Telepresence

in Minutes — Grab the Ultimate Cheatsheet

(Perfect for DevOps & SREs)

Most-used commands
Real-world configs/examples
Handy troubleshooting shortcuts
Your email is safe with us. No spam, ever.

Thankyou for your submission

We have sent the whitepaper on your email!
Oops! Something went wrong while submitting the form.

Telepresence

Cheatsheet

(Perfect for DevOps & SREs)

Most-used commands
Your email is safe with us. No spam, ever.

Thankyou for your submission

We have sent the whitepaper on your email!
Oops! Something went wrong while submitting the form.

MORE ISSUES

Made with ❤️ in Bangalore & San Francisco 🏢

Doctor Droid