Testing your microservices-based application becomes difficult when it can no longer be run locally due to resource requirements. Moving to the cloud for testing is a no-brainer, but how do you synchronize your local changes against your remote Kubernetes environment?
Run integration tests locally instead of waiting on remote deployments with Telepresence, now available as an Extension on Docker Desktop. By using Telepresence with Docker, you get flexible remote development environments that work with your Docker toolchain so you can code and test faster for Kubernetes-based apps.
Install Telepresence for Docker through these quick steps:
- Download Docker Desktop.
- Open Docker Desktop.
- In the Docker Dashboard, click “Add Extensions” in the left navigation bar.
- In the Extensions Marketplace, search for the Ambassador Telepresence extension.
- Click install.
Connect to Ambassador Cloud through the Telepresence extension:
After you install the Telepresence extension in Docker Desktop, you need to generate an API key to connect the Telepresence extension.
- Click the Telepresence extension in Docker Desktop, then click Get Started.
- Click the Get API Key button to open Ambassador Cloud in a browser window.
- Sign in with your Google, Github, or Gitlab account. Ambassador Cloud opens to your profile and displays the API key.
- Copy the API key and paste it into the API key field in the Docker Dashboard.
Connect to your cluster in Docker Desktop:
- Select the desired cluster from the dropdown menu and click Next. This cluster is now set to kubectl's current context.
Click Connect to [your cluster]. Your cluster is connected and you can now create intercepts.