Tests local and system-under-test in Kubernetes namespaces

If, or perhaps when, the system you are testing exceeds what Minikube can support, the common solution is to start using a remote cluster, either managed by you, your IT team, or a cloud provider. As you start to use remote compute to do this, sharing and isolation become important, particularly with tests that are dependent on the state of the system, where the control of that state is critical to understanding if the validation is correct or not. Kubernetes has good isolation in general, and taking advantage of how namespaces work can make the setup of your code and testing it significantly easier. You can leverage namespaces by running the related pods and services all in a single ...

Get Kubernetes for Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.