-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
minikube in gitlab ci with dind service fails #19514
Comments
You can disable the preload, with Though you might have the same issues with that, if you don't have a home directory (or cache) |
this fixed the issue with the preload. But i still can't startup minikube. I assume it's due to the fact that all certs get generated in the root dir of the runner. So the dind service which runs as a seperate container can't access certs. I guess its the same issue why the preload is not working.
|
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
What Happened?
I'm setting up minikube in a gitlab ci pipeline as described in https://minikube.sigs.k8s.io/docs/tutorials/continuous_integration/.
.gitlab-ci.yml
output
I see that minikube wants to start a container and mount the preloaded.tar into the container -> "W0826 13:33:08.556452 82 cli_runner.go:211] docker run --rm --entrypoint /usr/bin/tar -v /root/.minikube/cache/preloaded-tarball/preloaded-images-k8s-v18-v1.30.0-docker-overlay2-amd64.tar.lz4:/preloaded.tar:ro -v minikube:/extractDir gcr.io/k8s-minikube/".
But this is not possible do to dind is spawned as a service which runs outside the job in the gitlab runner and the job only attaches to the docker daemon. The root/.minikube/cache/preloaded-tarball/preloaded-images-k8s-v18-v1.30.0-docker-overlay2-amd64.tar.lz4 isn't available there so a new dir gets created.
I suppose to make this run we would need to create a volume and cp the preloaded-images-k8s-v18-v1.30.0-docker-overlay2-amd64.tar.lz4 into it and then we could use the volume to make the tar available. (https://github.com/kubernetes/minikube/blob/master/pkg/drivers/kic/oci/volumes.go#L133)
Attach the log file
log.txt
Operating System
None
Driver
None
The text was updated successfully, but these errors were encountered: