Welcome to Pulumi Registry, your window into the cloud. Read the announcement.

Kubernetes CoreDNS

v0.0.1 published on Monday, Oct 18, 2021 by Joe Duffy

Easily manage CoreDNS installations as a package available in all Pulumi languages.

Example

import * as coredns from "@pulumi/kubernetes-coredns";

const dns = new coredns.CoreDNS("dns", {
    servers: [{
        zones: [
            {
                zone: "hello.world.",
                scheme: "tls://",
            },
            {
                zone: "foo.bar.",
                scheme: "dns://",
                use_tcp: true,
            },
        ],
        port: 12345,
        plugins: [
            {
                name: "kubernetes",
                parameters: "foo bar",
                configBlock: "hello world\nfoo bar",
            },
        ],
    }],
});
import pulumi
from pulumi_kubernetes_coredns import CoreDNS, CoreDNSServerArgs, CoreDNSServerZoneArgs, CoreDNSServerPluginArgs

dns = CoreDNS('dns',
              servers=[
                  CoreDNSServerArgs(
                      zones=[
                          CoreDNSServerZoneArgs(
                              zone='hello.world.',
                              scheme='tls://',
                          ),
                          CoreDNSServerZoneArgs(
                              zone='foo.bar.',
                              scheme='dns://',
                              use_tcp=True,
                          ),
                      ],
                      port=12345,
                      plugins=[
                          CoreDNSServerPluginArgs(
                              name='kubernetes',
                              parameters='foo bar',
                              config_block='hello world\nfoo bar',
                          ),
                      ],
                  ),
              ],
              )