<p>I have a local Kubernetes cluster on a single machine, and a container that needs to receive a url (like <a href="https://www.wikipedia.org/" rel="noreferrer">https://www.wikipedia.org/</a>) and extract the text content from it. Essentially I need my pod to connect to the outside world. Since I am using v1.2.5, I need some DNS add-on like SkyDNS, but I cannot find any working example or tutorial on how to set it up. Tutorials like <a href="http://www.projectatomic.io/blog/2015/10/setting-up-skydns/" rel="noreferrer">this</a> usually only tell me how to make pods within the cluster talk to each other by DNS look-up. </p>

<p>Therefore, could anyone give me some advice on how to set up and configure an add-on of Kubernetes so that pods can access the public Internet? Thank you very much!</p>

<p>You can simply create your pods with "dnsPolicy: Default", this will give it a resolv.conf just like on the host and it will be able to resolve wikipedia.org. It will not be able to resolve cluster local services.If you're looking to actually deploy kube-dns so you can also resolve cluster local services this is probably the best starting point: <a href="https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/" rel="nofollow noreferrer">https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/</a></p>
