mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 08:14:18 -04:00
* Removing old unused inline k8s API code and tests. * Adding parsing implementation for `resyncperiod` keyword from Corefile. * Adding tests for parsing `resyncperiod` keyword from Corefile. 8 Updating README.md and conf/k8sCorefile.
19 lines
610 B
Plaintext
19 lines
610 B
Plaintext
# Serve on port 53
|
|
.:53 {
|
|
# use kubernetes middleware for domain "coredns.local"
|
|
kubernetes coredns.local {
|
|
# Kubernetes data API resync period
|
|
# Example values: 60s, 5m, 1h
|
|
resyncperiod 5m
|
|
# Use url for k8s API endpoint
|
|
endpoint http://localhost:8080
|
|
# Assemble k8s record names with the template
|
|
template {service}.{namespace}.{zone}
|
|
# Only expose the k8s namespace "demo"
|
|
namespaces demo
|
|
}
|
|
# Perform DNS response caching for the coredns.local zone
|
|
# Cache timeout is provided by the integer in seconds
|
|
#cache 180 coredns.local
|
|
}
|