-
Notifications
You must be signed in to change notification settings - Fork 376
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
Accept protocol = ICMP on ClusterNetworkPolicies #3263
Comments
I ask this because even if k8s default netpol does not support it, calico GlobalNetworkPolicies do support it. And that helps a lot debugging connectivity. |
@GraysonWu Could you share some insights / do some scope investigation? Thanks |
@GraysonWu could you please share your insights on this? Is this change hard to implement? ( No developer here ) |
Sorry for the late response. Somehow I missed this message. |
@GraysonWu will that doc be publicly available?😅 |
@jsalatiel After a few round discussions offline we got some ideas and here is the doc: https://docs.google.com/document/d/1TnAhJh-8-5XEU-wYetL5zQu_aVsXgItPWudpTmoPnaI/edit?usp=sharing |
Hi @GraysonWu , I've read the documentation. Just perfect! |
@GraysonWu In which release can icmp support be expected then? 😅 |
I'd like to say in 1.7 |
Had another round of discussion in the community meeting. We decided not to remove type Rule struct {
Action *RuleAction
Ports []NetworkPolicyPort
Protocols []Protocol
...
}
type Protocol struct {
TCP *L4Protocol
UDP *L4Protocol
SCTP *L4Protocol
ICMP *ICMPProtocol
}
type L4Protocol struct {
Port *intstr.IntOrString
EndPort *int32
}
type ICMPProtocol struct {
ICMPType *int32
ICMPCode *int32
} |
@GraysonWu Understood, tks! Probably not having to bump up the api version is a good thing. |
@jsalatiel NP. This is an example. ingress:
- action: allow
protocols:
- icmp: // matching Ping request
icmpType: 8
icmpCode: 0 |
Thanks!, @GraysonWu |
Yes. |
@GraysonWu when it gets merged to master I will deploy the latest image in my test environment, do several tests, and let you know if I see any problems. |
Describe the problem/challenge you have
I would like to allow ping as a ClusterNetworkPolicy.
Unfortunatelly ICMP is not supported yet.
Describe the solution you'd like
Accept protocol: ICMP on ClusterNetworkPolicy and maybe icmpType to describe the ICMP code allowed.
The current behaviour is wrong as explained here #3262.
The text was updated successfully, but these errors were encountered: