Open mak241265 opened 3 weeks ago
It seems that if the redis client is on the same node as redis instance, then the connection can be set without problem but on different nodes then no connection. my calico ippool configuration is:
ipPools:
- blockSize: 26
cidr: 10.180.0.0/16
encapsulation: IPIP
natOutgoing: "Enabled"
nodeSelector: all()
then the connection can be set without problem but on different nodes then no connection.
This seems to suggest that the problem isn't so much with network policy, but with the cross-node networking configuration. A few potential things:
I suspect the latter is more likely - would be worth trying to do a packet capture, or verify that there is or is not NAT occurring when sending packets to redis when the client is on a different node.
Hello everyone..i have seen a few post complaining about namespaceSelector in network policy.i still have this problem and can not figure it out.
I have installed redis from bitnami and inside of helm chart i have enabled network policy with some customization:
Expected Behavior
from my understanding any pods which is in namespace which has a label called redis: external and also the pods its self with label redis-client: allow can connect to redis on port 6379
Current Behavior
....i had conducted many tests and everything works well if the pod its self is inside the same namespace with redis
Your Environment
My info enviornment is below: rke version: v1.4.6 k8s version: v1.26.4 calico version: v3.25.1 Os version: ubuntu 22.04