From 548b538f72c8c5b1762b7f0e9f7541f88757a791 Mon Sep 17 00:00:00 2001 From: Gregory Hanson Date: Wed, 17 Oct 2018 19:27:28 -0500 Subject: [PATCH] Bug in coredns ConfigMap spec (#10585) Missing the `data` label in configmap spec. Attempting to create the file as is results in: ``` error: error validating "STDIN": error validating data: ValidationError(ConfigMap): unknown field "Corefile" in io.k8s.api.core.v1.ConfigMap; if you choose to ignore these errors, turn validation off with --validate=false ``` --- .../docs/tasks/administer-cluster/dns-custom-nameservers.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/content/en/docs/tasks/administer-cluster/dns-custom-nameservers.md b/content/en/docs/tasks/administer-cluster/dns-custom-nameservers.md index 4f019473c6..2d3c921ea5 100644 --- a/content/en/docs/tasks/administer-cluster/dns-custom-nameservers.md +++ b/content/en/docs/tasks/administer-cluster/dns-custom-nameservers.md @@ -71,7 +71,8 @@ kind: ConfigMap metadata: name: coredns namespace: kube-system -Corefile: | +data: + Corefile: | .:53 { errors health @@ -139,7 +140,8 @@ kind: ConfigMap metadata: name: coredns namespace: kube-system -Corefile: | +data: + Corefile: | .:53 { errors health