CoreDNS

  • By Canonical Kubernetes
Channel Revision Published Runs on
latest/stable 145 17 Apr 2024
Ubuntu 22.04
latest/candidate 145 15 Apr 2024
Ubuntu 22.04
latest/beta 130 20 Apr 2024
Ubuntu 22.04
latest/edge 130 28 Oct 2023
Ubuntu 22.04
1.30/beta 130 19 Apr 2024
Ubuntu 22.04
1.30/edge 130 13 Mar 2024
Ubuntu 22.04
1.29/stable 145 17 Apr 2024
Ubuntu 22.04
1.29/candidate 145 15 Apr 2024
Ubuntu 22.04
1.29/beta 130 17 Apr 2024
Ubuntu 22.04
1.29/edge 130 28 Oct 2023
Ubuntu 22.04
1.28/stable 135 07 Nov 2023
Ubuntu 22.04
1.28/candidate 135 01 Nov 2023
Ubuntu 22.04
1.28/beta 105 07 Aug 2023
Ubuntu 22.04
1.28/edge 110 09 Aug 2023
Ubuntu 22.04
1.27/stable 48 12 Jun 2023
Ubuntu 22.04
1.27/candidate 48 12 Jun 2023
Ubuntu 22.04
1.27/beta 46 09 Apr 2023
Ubuntu 22.04
1.27/edge 42 13 Jan 2023
Ubuntu 22.04
1.26/stable 44 27 Feb 2023
Ubuntu 22.04
1.26/candidate 44 25 Feb 2023
Ubuntu 22.04
1.26/beta 34 09 Apr 2023
Ubuntu 22.04
1.26/edge 34 09 Nov 2022
Ubuntu 22.04
1.25/stable 33 30 Sep 2022
Ubuntu 22.04 Ubuntu 20.04
1.25/candidate 33 28 Sep 2022
Ubuntu 22.04 Ubuntu 20.04
1.25/beta 35 01 Dec 2022
Ubuntu 22.04
1.25/edge 25 16 Aug 2022
Ubuntu 22.04 Ubuntu 20.04
1.24/stable 24 04 Aug 2022
Ubuntu 22.04 Ubuntu 20.04
1.24/candidate 24 02 Aug 2022
Ubuntu 22.04 Ubuntu 20.04
1.24/beta 18 10 May 2022
Ubuntu 20.04
1.24/edge 21 22 Jul 2022
Ubuntu 22.04 Ubuntu 20.04
1.23/edge 11 05 May 2022
Ubuntu 20.04
juju deploy coredns
Show information

Platform:

Sourced from: https://github.com/coredns/deployment.git

CoreDNS has been the default DNS provider for Charmed Kubernetes clusters since 1.14.

For additional control over CoreDNS, you can also deploy it into the cluster using the CoreDNS Kubernetes operator charm. To do so, set the dns-provider kubernetes-control-plane configuration option to none and deploy the charm into a Kubernetes model on your cluster. You’ll also need to cross-model relate it to kubernetes-control-plane:

juju config -m cluster-model kubernetes-control-plane dns-provider=none
juju add-k8s k8s-cloud --controller mycontroller
juju add-model k8s-model k8s-cloud
juju deploy coredns --trust
juju offer coredns:dns-provider
juju consume -m cluster-model k8s-model.coredns
juju relate -m cluster-model coredns kubernetes-control-plane

Once everything settles out, new or restarted pods will use the CoreDNS charm as their DNS provider. The CoreDNS charm config allows you to change the cluster domain, the IP address or config file to forward unhandled queries to, add additional DNS servers, or even override the Corefile entirely.

It is also possible to use kube-dns as the DNS provider, or turn off DNS altogether using the dns-provider kubernetes-control-plane configuration.


Help improve this document in the forum (guidelines). Last updated 1 year, 7 months ago.