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
Kind cluster inside gitlab seems unreachable #630
Comments
What gitlab CI runner? This is almost definitely because the cluster binds to localhost by default (for security reasons) and the localhost is somewhere other than where your kubectl binary is running. The solution to this is to either change your setup so that this is not true, or to configure the kind apiServerListenAddress in the config |
Currently we use: gitlab/gitlab-runner:alpine-v10.7.0. |
just Ben replied in slack to this 😄
to obtain the kubeconfig using the internal ip address , to use per example from other internal containers, we just merged a new command |
we are currently tracking release efforts with github milestones. the next release is tentatively slated to be by the 24th but we have a little flexibility. In particular still aiming to land the initial ipv6 support. |
I did update my config with:
and follow: https://github.com/kind-ci/examples/blob/master/.gitlab-ci.yml I'll come back here when I find my solution. Since this may be very gitlab configuration specific, feel free to close this ticket and I'll propose some explanation/solution (when I find them) in https://github.com/kind-ci/examples/ |
SGTM, it would be very helpful to document there and post a link back to here then. I'm hoping to direct more of the CI specific config etc. there, we're starting to link out to it in https://kind.sigs.k8s.io/docs/user/resources/#using-kind-in-ci |
What happened:
Use kind inside a gitlab CI runner.
The cluster is created fine but I cannot use it after creation
kubectl cluster-info
spit out
What you expected to happen:
Create an in-CI cluster and populate the k8s cluster as usual.
How to reproduce it (as minimally and precisely as possible):
Start a gitlab CI job with kind inside.
Create a kind cluster:
Then try
kubectl cluster-info
and you'll get
Anything else we need to know?:
This behavior really looks like the one described in #52 but I don't know how to properly apply the VOLUME trick. At least I tried with no success.
Environment:
The text was updated successfully, but these errors were encountered: