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

docs: warn not to set network_mode for Connect-enabled Docker task #10724

Merged
merged 1 commit into from
Jun 8, 2021

Conversation

tgross
Copy link
Member

@tgross tgross commented Jun 8, 2021

This warning comes out of #8900 and other issues where the correct configuration for network_mode of Connect-enabled docker driver tasks is a little unclear.

@tgross tgross requested review from notnoop and shoenig June 8, 2021 13:02
@tgross tgross added theme/docs Documentation issues and enhancements theme/consul/connect Consul Connect integration labels Jun 8, 2021
The default `network_mode` for tasks that use [Connect] will be
`container:<name>`, where the name is the container name of the parent
container used to share network namespaces between tasks. You should not set
`network_mode` for Connect-enabled tasks.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens now when it's set? Should we add some validation/warning logic in the docker driver too?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your task can't reach the Envoy proxy and can't be reached over the Envoy proxy. I do want to add a warning but it's one of those annoying scenarios where the enforcement will be all client-side because it's in the driver config. In any case, I want to do any code changes to improve that in a separate PR. Also, I do worry that I haven't considered some weird corner case where you'd want to do that?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've opened #10725 for the driver change, just in case I don't get to it right away.

@tgross tgross merged commit f5c7152 into main Jun 8, 2021
@tgross tgross deleted the docs-connect-docker-network-mode branch June 8, 2021 14:14
@tgross tgross added this to the 1.1.1 milestone Jun 8, 2021
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
theme/consul/connect Consul Connect integration theme/docs Documentation issues and enhancements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants