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

Try to fallback to CNI gateway when regular address fails. #1689

Merged
merged 5 commits into from
Feb 23, 2022

Conversation

dchw
Copy link
Collaborator

@dchw dchw commented Feb 22, 2022

According to the CNI spec, our host-local ipam module will always put the gateway at .1 inside our subnet. If the derived address from the config fails to connect, fallback and try the internal CNI gateway. Should improve compatibility when the container does not have an IP, such as rootless configurations.

Fixes #1573.

@dchw dchw requested a review from alexcb February 22, 2022 23:59
@dchw dchw self-assigned this Feb 22, 2022
cmd/debugger/main.go Outdated Show resolved Hide resolved
Copy link
Collaborator

@alexcb alexcb left a comment

Choose a reason for hiding this comment

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

looks good, just a minor nit.

dchw and others added 2 commits February 22, 2022 17:05
Co-authored-by: Alex Couture-Beil <alex@earthly.dev>
@dchw dchw enabled auto-merge (squash) February 23, 2022 00:10
cmd/debugger/main.go Outdated Show resolved Hide resolved
@dchw dchw merged commit 128039a into main Feb 23, 2022
@dchw dchw deleted the corey/interactive-cni-fallback branch February 23, 2022 00:39
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

Successfully merging this pull request may close these issues.

Podman support for interactive mode
3 participants