Search code examples
dockerkubernetesgitlab-ci-runner

Run Kubernetes in a docker container in GitLab runner?


I need to be able to execute some Python code that would:

  1. Run a docker container in GitLab runner.
  2. Install Kubernetes (Minikube?) in that container.
  3. Run a pod in that Kubernetes.

I was having troubles finding the way to run Kubernetes in a container. It shouldn't be anything advanced, just for test purposes.


Solution

  • Use Kind instead of Minikube. These articles may help you.