aboutsummaryrefslogtreecommitdiff
path: root/conf
diff options
context:
space:
mode:
Diffstat (limited to 'conf')
-rw-r--r--conf/k8sCorefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/conf/k8sCorefile b/conf/k8sCorefile
index 7825a626e..fc446e350 100644
--- a/conf/k8sCorefile
+++ b/conf/k8sCorefile
@@ -4,6 +4,10 @@
kubernetes coredns.local {
# 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