Skip to content

Commit

Permalink
coredns: update notes in administer-cluster/coredns.md
Browse files Browse the repository at this point in the history
CoreDNS is installed by default in 1.11.
Add notes on how to install kube-dns instead.
  • Loading branch information
neolit123 committed May 23, 2018
1 parent 462adb8 commit 744dfd3
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions content/en/docs/tasks/administer-cluster/coredns.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,8 @@ min-kubernetes-server-version: v1.9
content_template: templates/task
---

{{< feature-state state="beta" >}}

{{% capture overview %}}
This page describes how to enable CoreDNS instead of kube-dns for service
discovery.
This page describes the CoreDNS upgrade process and how to install kube-dns instead of CoreDNS.
{{% /capture %}}

{{% capture prerequisites %}}
Expand All @@ -19,21 +16,18 @@ discovery.

{{% capture steps %}}

## Installing CoreDNS with kubeadm

In Kubernetes 1.9, [CoreDNS](https://coredns.io) is available as an alpha feature, and
in Kubernetes 1.10 it is available as a beta feature. In either case, you may install
it during cluster creation by setting the `CoreDNS` feature gate to `true` during `kubeadm init`:
## Installing kube-dns with kubeadm

In Kubernetes 1.11, [CoreDNS](https://coredns.io) has graduated to General Availability (GA)
and is installed by default. To install kube-dns instead, set the `CoreDNS` feature gate
value to `false`:
```
kubeadm init --feature-gates=CoreDNS=true
kubeadm init --feature-gates=CoreDNS=false
```

This installs CoreDNS instead of kube-dns.

## Upgrading an Existing Cluster with kubeadm

In Kubernetes 1.10, you can also move to CoreDNS when you use `kubeadm` to upgrade
In Kubernetes version 1.10 and later, you can also move to CoreDNS when you use `kubeadm` to upgrade
a cluster that is using `kube-dns`. In this case, `kubeadm` will generate the CoreDNS configuration
("Corefile") based upon the `kube-dns` ConfigMap, preserving configurations for federation,
stub domains, and upstream name server.
Expand Down

0 comments on commit 744dfd3

Please sign in to comment.