I deployed Kubernetes-in-docker (KIND) successfully and then the Calico CNI. The pods all came up successfully and were in Running state. When I tried to do a new deployment then with a NetworkPolicy with open ingress and egress:
spec:
egress:
- to:
- ipBlock:
cidr: 0.0.0.0/0
ingress:
- from:
- ipBlock:
cidr: 0.0.0.0/0
policyTypes:
- Ingress
- Egressthe init container on the pods have a status of Init:CrashLoopBackOff with the following log:
; <<>> DiG 9.11.3-1ubuntu1.8-Ubuntu <<>> -t A +tries=5 +retry=5 +time=1 amazon.com
;; global options: +cmd
;; connection timed out; no servers could be reachedI believe the reason the dig failure might be happening is because the DNS is incorrectly configured. We have CoreDNS deployed as our DNS solution.