Skip to content
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

Bind test services to an IP other than localhost #3051

Open
ns-sjorgedeaguiar opened this issue Dec 30, 2024 · 0 comments
Open

Bind test services to an IP other than localhost #3051

ns-sjorgedeaguiar opened this issue Dec 30, 2024 · 0 comments

Comments

@ns-sjorgedeaguiar
Copy link

Hi,

I'm trying to expose the test cluster to a docker network but it fails to start with the default namespace not being created before the timeout. Looks like the API is not able to connect to etcd. What is the right way to get this working? I tried setting the etcd url

etcdURL := &url.URL{
	Scheme: "http",
	Host: ips[0].String() + ":2379",
}

testEnv := &envtest.Environment{
	ControlPlaneStartTimeout: time.Hour,
	CRDDirectoryPaths: crdDirs,
	ControlPlane: envtest.ControlPlane{
		APIServer: &envtest.APIServer{
			EtcdURL: etcdURL,
			SecureServing: envtest.SecureServing{
				ListenAddr: envtest.ListenAddr{
					Address: ips[0].String(),
					Port:    listenPort,
				},
			},
		},
		Etcd: &envtest.Etcd{
			URL: etcdURL,
		},
	},
}

But this didn't work, same error. Also tried setting listen-client-urls, advertise-address and listen-peer-urls in the etcd and api server, to no avail. Is this supported?

@ns-sjorgedeaguiar ns-sjorgedeaguiar changed the title Bind test services to an IP other then localhost Bind test services to an IP other than localhost Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant