diff --git a/in-cluster/default.yaml b/in-cluster/default.yaml index 509f1be..d8587d6 100644 --- a/in-cluster/default.yaml +++ b/in-cluster/default.yaml @@ -496,3 +496,15 @@ spec: - pass: when: "false" message: No OOMKilling event detected + - textAnalyze: + checkName: "CoreDNS nameserver configuration" + regex: "no nameservers found" + ignoreIfNoFiles: true + fileName: cluster-resources/pods/logs/kube-system/coredns-*/coredns.log + outcomes: + - fail: + when: "true" + message: "CoreDNS reported missing nameserver configuration. Ensure /etc/resolv.conf has at least 1 'nameserver' configured" + - pass: + when: "false" + message: "CoreDNS found valid nameserver configuration"