Demo: Local Kubernetes Development Enabled with Telepresence
CHICAGO — Ambassador Labs’ tagline on its website is “Simplify your Kubernetes journey.” One of the ways it does this is with its open source tool Telepresence. Telepresence works by bridging the gap between local and remote Kubernetes environments, making it possible to run your laptop as if it’s in a Kubernetes cluster.
“Some people run everything locally — that gets cumbersome on your laptop,” Kay James, a solutions engineer at Ambassador Labs, told The New Stack Publisher Alex Williams in this episode of TNS Demos, recorded at KubeCon + CloudNativeCon North America.
Alternatively, you can deploy to a cluster, James said — but “that can take a lot of time needing to containerize and build and wait for YAML and CI/CD processes.”
This is where Telepresence comes in, he said. It “allows you to very quickly do your testing locally and bypass the need to deploy, or the need to have multiple namespaces or clusters for each developer.”
Telepresence lets users create intercepts, rerouting traffic that would have gone to a service that you’ve set up in a Kubernetes cluster to a local version running on your machine.
That should be intriguing enough for developers used to grappling with Kubernetes. But in this episode of TNS Demos, James also showed how two new integrations — for Docker Compose and IntelliJ IDEA — promise to make using Telepresence even easier.
James explained the benefits as she walked Williams through an example. “If you’re already using Docker Compose, then you can easily translate [an] existing configuration into Telepresence to be able to utilize your hot reloads from your Docker container and run all of this in one command.”
The advantages of the Docker Compose and IntelliJ integrations should be obvious: an improved developer experience. James believes it will save developers time, as it means Telepresence can now fit neatly into existing developer workflows.
It’s about “the idea of meeting a developer where they’re at, whatever they’re already using,” James said.
To learn more about Telepresence, watch the video. If you’d like to get started, visit the project website — it features a wealth of resources to help you better understand how it works and how to integrate it into your own workflow.