What tools can help with local testing before deploying to Kubernetes?
Asked by
DevExplore42
I'm looking for effective development tools to help with local testing for deploying to Kubernetes. I've heard about several projects like mirrord, telepresence, garden, okteto, and devspace. While mirrord sounded interesting, I found out it may not support larger teams very well, so I'm considering other options. I'm particularly interested in making it easier for developers to test their applications in environments like AWS EKS. Ideally, I'd like to shift traffic to a Deployment/Pod to identify any issues, which could allow us to eliminate our DEV EKS cluster while retaining STAGE and PROD EKS clusters, leading to cost savings.
Answers
We use Tilt along with a local k3d cluster for our development. It's geared towards local environments, but we've also set it up to work with our infrastructure in a test account using specialized overlays in kustomize. While itโs a great tool, it might not be the best fit for larger teams or for applications that require AWS EKS traffic management. Still, itโs been working well for us!
Reply to this answer
Docker Desktop is my go-to for local testing. It integrates seamlessly with locally built images, eliminating the hassle of pushing images or maintaining a local registry. It supports LoadBalancer settings and has built-in storage providers. I'm also keen to check out vClusters since it allows for porting entire clusters.
Reply to this answer
For local testing, I stick with Skaffold. It doesnโt emulate full EKS or routing but does a great job spinning up projects in a cluster with hot-code reloading.
Reply to this answer
I recommend Skaffold plus kustomize for setting up a local kind cluster. It allows you to create targets for easily managing the cluster lifecycle. Plus, Localstack is helpful for local AWS service simulation, alongside containers like Valkey and Postgres for other needed services.
Reply to this answer
The development space can be quite chaotic! Devspace is really solid once you get it set up, though it can be a hassle initially. Telepresence is quite popular too for live traffic testing. Just be cautious about resource isolationโare you considering per-developer namespaces or a shared staging environment? That choice will impact which tool works best!
Reply to this answer
Add your answer
Answers are reviewed before publication.
Related Discussions