Cannot ping ClusterIP from inside the pod and DNS is not working for external domains like google.com

I can answer your ping clusterIP problem. I met the same problem, want to ping the service's cluster IP from Pod.

The resolution seems that the cluster IP cannot be pinged, but the endpoint can be access using curl with port.

I just work around to find details about ping virtual IP.


Another way to handle the same issue with DNS is to set upstream servers in a configMap:

apiVersion: v1
    kind: ConfigMap
    metadata:
      name: kube-dns
      namespace: kube-system
    data:
        upstreamNameservers: |
        ["8.8.8.8", "8.8.4.4"]