-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow configuration of extra coredns server blocks (#1709)
The goal of this PR is to allow configuration of the glue records of the other clusters in k8gb's coreDNS. I know this defies DNS best practices because k8gb is not authoritative for the parent zone. However, it allows k8gb to do cluster discovery without depending on any infrastructure outside of the cluster. The configuration is quite generic, giving the users freedom to configure what they desire, therefore we could add it to the chart. Example configuration: ``` extraServerBlocks: | example.com:5353 { errors health ready prometheus 0.0.0.0:9153 forward . /etc/resolv.conf k8s_crd { filter k8gb.absa.oss/dnstype=glue negttl {{ .Values.k8gb.dnsZoneNegTTL }} loadbalance weight } } ``` Testing: ``` helm package . && helm template k8gb k8gb-v0.13.0.tgz > manifests.yaml ``` Signed-off-by: abaguas <[email protected]>
- Loading branch information
Showing
4 changed files
with
11 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -369,6 +369,9 @@ | |
"array", | ||
"null" | ||
] | ||
}, | ||
"extraServerBlocks": { | ||
"type": "string" | ||
} | ||
}, | ||
"title": "k8gbCoredns" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters