---
title: Charmhub | Deploy CoreDNS using Charmhub - The Open Operator Collection
description: Deploy the latest version of CoreDNS as a Kubernetes Operator on any
  cloud.
url: https://charmhub.io/coredns/configurations
---

# CoreDNS

[Canonical Kubernetes](https://charmhub.io/publisher/containers "View all packages from Canonical Kubernetes")

* [Canonical Kubernetes](https://charmhub.io/publisher/containers "View all packages from Canonical Kubernetes")

Platform:

stable 88ad7d7

```
juju deploy coredns
```

[Learn to deploy on juju >](https://juju.is/docs/juju/manage-applications)

* [coredns\_memory\_limit](https://charmhub.io/coredns/configurations#coredns_memory_limit)
* [coredns\_namespace](https://charmhub.io/coredns/configurations#coredns_namespace)
* [coredns\_release](https://charmhub.io/coredns/configurations#coredns_release)
* [coredns\_replicas](https://charmhub.io/coredns/configurations#coredns_replicas)
* [corefile](https://charmhub.io/coredns/configurations#corefile)
* [domain](https://charmhub.io/coredns/configurations#domain)
* [extra\_servers](https://charmhub.io/coredns/configurations#extra_servers)
* [forward](https://charmhub.io/coredns/configurations#forward)

[Learn about configurations >](https://juju.is/docs/juju/configuration#heading--application-configuration)

* coredns\_memory\_limit | string

  Default: 170Mi

  Memory limit for each CoreDNS pod.
* coredns\_namespace | string

  Default: kube-system

  An existing namespace to deploy CoreDNS into.

  if {model} is specified, the current model's name will be used.
* coredns\_release | string

  The CoreDNS release to deploy.
* coredns\_replicas | int

  Default: 1

  Number of CoreDNS replicas to deploy.
* corefile | string

  Default: .:53 {
  errors
  health {
  lameduck 5s
  }
  ready
  kubernetes ${domain} in-addr.arpa ip6.arpa {
  fallthrough in-addr.arpa ip6.arpa
  pods insecure
  }
  prometheus :9153
  forward . ${forward}
  cache 30
  loop
  reload
  loadbalance
  }
  ${extra\_servers}

  Configuration file to use for CoreDNS. This is interpreted as a Python string. Template which will be given the `domain` and `forward` configs as its context.
* domain | string

  Default: cluster.local

  The local domain for cluster DNS.
* extra\_servers | string

  Any additional servers to add to the Corefile.
* forward | string

  Default: /etc/resolv.conf

  Where to forward non-cluster addresses.
