testcontainers-go icon indicating copy to clipboard operation
testcontainers-go copied to clipboard

Support for kubernetes deployments

Open mdelapenya opened this issue 4 years ago • 1 comments
trafficstars

Hi community 👋, we are using testcontainers as the main tool for provisioning services in a test framework, leveraging the docker-compose module, and our next steps are towards evaluating the deployment of those services in a k8s cluster, using kubectl as deployment tool.

We'd like to know the interest of the community in this direction, checking if it could bring value to the project, and hopefully help out with the requirements.

Looking forward to knowing your ideas!

Cheers!

mdelapenya avatar Apr 30 '21 17:04 mdelapenya

Hey, not sure if this still 'a thing' but could you probably elaborate how you imagine the workflow or what could be the benefit?

  • being able to run tests within a Kubernetes cluster by deploying test services as Deployments+Service vs. local containers? (I'm assuming here testcontainers should probably provide both the Deployment/StatefulSet and the Service)
  • Using 'testcontainers' to run integration tests of your packages e.g. from a CI pipeline probably running outside of the cluster by using the default deployment mechanism (e.g. Helm, Kustomize, Tanka, ... )?

I'm just wondering because the former approach could be done rather easy and could be really helpful because Docker-in-Docker is no fun in Kubernetes :smile: but the latter approach could be rather hard because there are so many different deployment mechanisms and what about CRDs and stuff...?

prskr avatar Apr 12 '22 07:04 prskr

@baez90 I'm closing this issue in favor of https://github.com/testcontainers/testcontainers-go/discussions/510, as a discussion. Do you mind if I copy your comment in there before that?

mdelapenya avatar Sep 15 '22 17:09 mdelapenya