We would like to allow all the traffic from TCP and UDP protocol to the pods in a particular Namespace.
Can we use more than one option at a time in Calico Policy while defining GlobalNetworkPolicy
eg:
Protocol: TCP, UDP
Action: Allow,Log
You’ll see that the namespaceSelector takes an argument of type Selector. The Selector section of that doc shows that Selector can have multiple, logically combined expressions.
Assuming that what you want here is a rule which ORs the namespaces together, I think your policy should look like:
From the official document I could understand the “PROTOCOL” value can be either String(eg TCP,UDP) or INTEGER 1-255.
Is that mean PROTOCOL value can be 1-255(inorder to select all protocols)?