-
Notifications
You must be signed in to change notification settings - Fork 458
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
custom vpc pod support tcp http probe with tproxy method #3024
Merged
Merged
Changes from 15 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
d139877
custom vpc pod support tcp http probe with tproxy method
changluyi fbfb30c
fix golang lint
changluyi 8420e13
remove unused import
changluyi b7d99eb
fix security
changluyi d18177b
fix e2e err
changluyi 7871098
fix e2e
changluyi 6857648
remove unused map
changluyi 69d0725
refactor
changluyi 488447a
fix
changluyi 6ca6f0e
fix
changluyi 99c7f85
move func
changluyi fc71cb5
remove no need code
changluyi dcfe86b
refactor
changluyi 4d55af3
conflict with submariner table id 100
changluyi d452b40
add install param
changluyi 7db36d1
refactor comment
changluyi c5ac116
refactor
changluyi 704d4ad
fix
changluyi 659e78c
fix
changluyi b9c3618
fix
changluyi 8292f03
fix
changluyi 5661d58
fix
changluyi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,6 +32,7 @@ IFACE=${IFACE:-} | |
# Note that the dpdk tunnel iface and tunnel ip cidr should be diffierent with Kubernetes api cidr, otherwise the route will be a problem. | ||
DPDK_TUNNEL_IFACE=${DPDK_TUNNEL_IFACE:-br-phy} | ||
ENABLE_BIND_LOCAL_IP=${ENABLE_BIND_LOCAL_IP:-true} | ||
ENABLE_TPROXY=${ENABLE_TPROXY:-true} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 同上 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 1 |
||
|
||
# debug | ||
DEBUG_WRAPPER=${DEBUG_WRAPPER:-} | ||
|
@@ -4037,6 +4038,7 @@ spec: | |
- --log_file=/var/log/kube-ovn/kube-ovn-cni.log | ||
- --log_file_max_size=0 | ||
- --kubelet-dir=$KUBELET_DIR | ||
- --enable-tproxy=$ENABLE_TPROXY | ||
securityContext: | ||
runAsUser: 0 | ||
privileged: true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,6 +63,7 @@ type Configuration struct { | |
EnableVerboseConnCheck bool | ||
TCPConnCheckPort int | ||
UDPConnCheckPort int | ||
EnableTProxy bool | ||
} | ||
|
||
// ParseFlags will parse cmd args then init kubeClient and configuration | ||
|
@@ -100,6 +101,7 @@ func ParseFlags() *Configuration { | |
argEnableVerboseConnCheck = pflag.Bool("enable-verbose-conn-check", false, "enable TCP/UDP connectivity check listen port") | ||
argTCPConnectivityCheckPort = pflag.Int("tcp-conn-check-port", 8100, "TCP connectivity Check Port") | ||
argUDPConnectivityCheckPort = pflag.Int("udp-conn-check-port", 8101, "UDP connectivity Check Port") | ||
argEnableTProxy = pflag.Bool("enable-tproxy", true, "enable tproxy for vpc pod liveness or readiness probe") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 同上
zhangzujian marked this conversation as resolved.
Show resolved
Hide resolved
|
||
) | ||
|
||
// mute info log for ipset lib | ||
|
@@ -154,6 +156,7 @@ func ParseFlags() *Configuration { | |
EnableVerboseConnCheck: *argEnableVerboseConnCheck, | ||
TCPConnCheckPort: *argTCPConnectivityCheckPort, | ||
UDPConnCheckPort: *argUDPConnectivityCheckPort, | ||
EnableTProxy: *argEnableTProxy, | ||
} | ||
return config | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
默认需要关闭,避免未知问题影响其他功能