Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supports custom configuration of cluster dns #1956

Merged
merged 1 commit into from
Aug 22, 2023

Conversation

pixiake
Copy link
Collaborator

@pixiake pixiake commented Aug 18, 2023

What type of PR is this?

/kind feature

What this PR does / why we need it:

Supports custom configuration of cluster dns, including coredns and nodelocaldns.
example:

  dns:
    dnsEtcHosts: |
      192.168.0.100 api.example.com
      192.168.0.200 ingress.example.com
    coredns:
      additionalConfigs: |
        whoami
        log
      externalZones:
      - zones:
        - example.com
        - example.io:1053
        nameservers:
        - 1.1.1.1
        - 2.2.2.2
        cache: 5
      - zones:
        - mycompany.local:4453
        nameservers:
        - 192.168.0.53
        cache: 10
      - zones:
        - mydomain.tld
        nameservers:
        - 10.233.0.3
        cache: 5
        rewrite:
        - name substring website.tld website.namespace.svc.cluster.local
      rewriteBlock: |
        rewrite stop {
          name regex (.*)\.my\.domain {1}.svc.cluster.local
          answer name (.*)\.svc\.cluster\.local {1}.my.domain
        }
      upstreamDNSServers:
      - 8.8.8.8
      - 1.2.4.8
      - 114.114.114.114
    nodelocaldns:
      externalZones:
      - zones:
        - example.com
        - example.io:1053
        nameservers:
        - 1.1.1.1
        - 2.2.2.2
        cache: 5
      - zones:
        - mycompany.local:4453
        nameservers:
        - 192.168.0.53
        cache: 10
      - zones:
        - mydomain.tld
        nameservers:
        - 10.233.0.3
        cache: 5
        rewrite:
        - name substring website.tld website.namespace.svc.cluster.local

Which issue(s) this PR fixes:

Fixes #

Special notes for reviewers:

Does this PR introduced a user-facing change?


Additional documentation, usage docs, etc.:


@ks-ci-bot ks-ci-bot added the kind/feature Categorizes issue or PR as related to a new feature. label Aug 18, 2023
@ks-ci-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: pixiake

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ks-ci-bot ks-ci-bot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Aug 18, 2023
@ks-ci-bot ks-ci-bot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Aug 21, 2023
@redscholar
Copy link
Collaborator

/lgtm

@ks-ci-bot ks-ci-bot added the lgtm Indicates that a PR is ready to be merged. label Aug 22, 2023
@ks-ci-bot
Copy link
Collaborator

LGTM label has been added.

Git tree hash: ad5fe96964c2dc86caf1c6d3a0b747bb0edb47d8

@ks-ci-bot ks-ci-bot merged commit 6db33bc into kubesphere:master Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/feature Categorizes issue or PR as related to a new feature. lgtm Indicates that a PR is ready to be merged. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants