4 ms·
Show HN: A local development tool for Kubernetes, now with Golang support
Telepresence lets you proxy your code, running locally, to a Kubernetes cluster. That means networking, environment variables, volumes... The goal is to make local process have an environment as close as possible to being in the cluster, while still running locally so you can use a debugger, IDE, and so on.
I just released latest version, which adds support for new VPN-style proxying method (`--method vpn-tcp`) based on sshuttle. Previously the tool only supported LD_PRELOAD (and mac equivalent), which meant it didn't work with Go programs. New method should work with any program at all.
http://telepresence.io http://telepresence.io - let me know if you have any questions.
- mleonard 9y agoDo you have an examples of how to get started with Telepresence and a go app? Thanks
- itamarst 9y agoI'll write an example today and post it. But basically you just do: ``` $ telepresence -m vpn-tcp --new-deployment example --run-shell ``` And now you have a shell with env variables matching a kube pod, and processes can access kubernetes services by name using standard k8s DNS lookup.
- itamarst 9y agoOK, wrote a first pass: http://www.telepresence.io/howto/golang.html http://www.telepresence.io/howto/golang.html