From 43ffdc044494d23b6ce9c0a7c7a39c104e8e8dba Mon Sep 17 00:00:00 2001 From: prameshj Date: Fri, 28 Jun 2019 11:07:40 -0700 Subject: [PATCH] Update nodelocaldns.md to render website correctly - on master branch (#15142) * Update nodelocaldns.md * Fix the image rendering code. Added newline --- .../docs/tasks/administer-cluster/nodelocaldns.md | 14 ++++++++++++-- .../images/docs}/nodelocaldns.jpg | Bin 2 files changed, 12 insertions(+), 2 deletions(-) rename {content/en/docs/tasks/administer-cluster => static/images/docs}/nodelocaldns.jpg (100%) diff --git a/content/en/docs/tasks/administer-cluster/nodelocaldns.md b/content/en/docs/tasks/administer-cluster/nodelocaldns.md index 318a8d5220..43b7a0eb70 100644 --- a/content/en/docs/tasks/administer-cluster/nodelocaldns.md +++ b/content/en/docs/tasks/administer-cluster/nodelocaldns.md @@ -10,7 +10,13 @@ content_template: templates/task This page provides an overview of NodeLocal DNSCache feature in Kubernetes. {{% /capture %}} -{{% capture body %}} + +{{% capture prerequisites %}} + + {{< include "task-tutorial-prereqs.md" >}} {{< version-check >}} +{{% /capture %}} + + {{% capture steps %}} ## Introduction @@ -36,7 +42,8 @@ Having a local cache will help improve the latency in such scenarios. This is the path followed by DNS Queries after NodeLocal DNSCache is enabled: -![ ](nodelocaldns.jpg "NodeLocal DNSCache") + +{{< figure src="/images/docs/nodelocaldns.jpg" alt="NodeLocal DNSCache flow" title="Nodelocal DNSCache flow" caption="This image shows how NodeLocal DNSCahe handles DNS queries." >}} ## Configuration @@ -45,6 +52,7 @@ This feature can be enabled using the command: `KUBE_ENABLE_NODELOCAL_DNS=true go run hack/e2e.go -v --up` This works for e2e clusters created on GCE. On all other environments, the following steps will setup NodeLocal DNSCache: + * A yaml similar to [this](https://github.com/kubernetes/kubernetes/blob/master/cluster/addons/dns/nodelocaldns/nodelocaldns.yaml) can be applied using `kubectl create -f` command. * --cluster-dns flag to kubelet needs to be modified to use the LOCAL_DNS IP that NodeLocal DNSCache is listening on (169.254.20.10 by default) @@ -58,3 +66,5 @@ The addon can be applied using the yaml specified above in any k8s version. The | :---------: |:-----------:| | 1.15 | Beta(Not enabled by default) | | 1.13 | Alpha(Not enabled by default) | + + {{% /capture %}} diff --git a/content/en/docs/tasks/administer-cluster/nodelocaldns.jpg b/static/images/docs/nodelocaldns.jpg similarity index 100% rename from content/en/docs/tasks/administer-cluster/nodelocaldns.jpg rename to static/images/docs/nodelocaldns.jpg