-
Notifications
You must be signed in to change notification settings - Fork 770
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
Docker compose links section can't support #859
Comments
I think this will be bit confusing since name of deployment and service will change,
This second option, I think will be better,
@cdrage thought here ? |
Yeah, we should add the second option since the Thanks @xianlubird for pointing this out! |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/remove-lifecycle stale |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
About compose introduce links https://docs.docker.com/compose/compose-file/compose-file-v2/#links .
I have a compose like this:
kompose will convert db service to db deployment, but the wordpress deplotment will connect db by
mysql
hostname. So wordpress pods will call that and it can't connect the db database. Because thelinks
can't convert to k8s yaml.I have two kinds suggestions:
kompose convert db service to mysql service, just rename deployment name for links, and the new service name is mysql, the wordpress can connect mysql by service name corrently.
print warning or error message if compose has links section which alias name is different from service name.
Can anyone give me some suggestion, and I will create a PR to fix this, Thanks.
The text was updated successfully, but these errors were encountered: