Kubernetes Calico pods failing with PodInitializing

10/25/2019

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
  - Egress

the 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 reached

I believe the reason the dig failure might be happening is because the DNS is incorrectly configured. We have CoreDNS deployed as our DNS solution.

-- digerati32
calico
coredns
kubernetes
kubernetes-ingress
networking

0 Answers