I want to harden the traffic coming from other k8s containers with same segment but also to permit the k8s ingress (dns) to access the container
VM machine (10.194.65.4) --> k8s Ingress (10.194.66.14) --> k8s service (172.30.0.255) --> k8s container (172.18.0.43)
below is my network policy configured to accept traffic coming from 172.18.0.0/21
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
labels:
env: dev
namespace: big-calculator-dev
name: big-calculator-dev
namespace: big-calculator-dev
spec:
ingress:
- from:
- ipBlock:
cidr: 172.18.0.0/21
ports:
- port: 443
protocol: TCP
podSelector: {}
policyTypes:
- Ingress
What can I do to accept the traffic coming from my ingress from my VM in more?
thanks, Maurice