1. Packages
  2. Kubernetes CoreDNS
Kubernetes CoreDNS v0.1.0 published on Tuesday, Jan 7, 2025 by Pulumi

Kubernetes CoreDNS

Kubernetes CoreDNS v0.1.0 published on Tuesday, Jan 7, 2025 by Pulumi

    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',
                              ),
                          ],
                      ),
                  ],
                  )
    
    Kubernetes CoreDNS v0.1.0 published on Tuesday, Jan 7, 2025 by Pulumi