{"id":9930,"date":"2022-12-16T07:59:11","date_gmt":"2022-12-16T07:59:11","guid":{"rendered":"https:\/\/www.scmgalaxy.com\/tutorials\/?p=9930"},"modified":"2022-12-16T07:59:13","modified_gmt":"2022-12-16T07:59:13","slug":"kubernetes-error-cannot-retrieve-configmap-from-the-default-namespacekubernetes-error","status":"publish","type":"post","link":"https:\/\/www.scmgalaxy.com\/tutorials\/kubernetes-error-cannot-retrieve-configmap-from-the-default-namespacekubernetes-error\/","title":{"rendered":"Kubernetes Error: Cannot retrieve ConfigMap from the default namespaceKubernetes Error:"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Error<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>root@k8-master-dec-2022:~\/k8# kubectl logs datadog-cluster-agent-58699fcccc-thxgg\r\n'\/conf.d\/kubernetes_state_core.yaml.default' -> '\/etc\/datadog-agent\/conf.d\/kubernetes_state_core.yaml.default'\r\n'\/conf.d\/kubernetes_state_core.yaml.default' -> '\/etc\/datadog-agent\/conf.d\/kubernetes_state_core.yaml.default'\r\n2022-12-16 07:26:05 UTC | CLUSTER | WARN | (pkg\/util\/log\/log.go:616 in func1) | Agent configuration relax permissions constraint on the secret backend cmd, Group can read and exec\r\n2022-12-16 07:26:05 UTC | CLUSTER | INFO | (pkg\/util\/log\/log.go:588 in func1) | Features detected from environment: kubernetes,orchestratorexplorer\r\n2022-12-16 07:26:05 UTC | CLUSTER | INFO | (pkg\/api\/security\/security.go:250 in saveAuthToken) | Wrote auth token\r\n2022-12-16 07:26:05 UTC | CLUSTER | INFO | (pkg\/api\/security\/security.go:144 in fetchAuthToken) | Saved a new authentication token to \/etc\/datadog-agent\/auth_token\r\n2022-12-16 07:26:05 UTC | CLUSTER | INFO | (pkg\/api\/security\/security.go:189 in getClusterAgentAuthToken) | Using configured cluster_agent.auth_token\r\n2022-12-16 07:26:05 UTC | CLUSTER | INFO | (app\/app.go:204 in start) | Waiting to obtain APIClient connection\r\n2022-12-16 07:26:05 UTC | CLUSTER | INFO | (app\/app.go:209 in start) | Got APIClient connection\r\n2022-12-16 07:26:16 UTC | CLUSTER | INFO | (app\/app.go:216 in start) | Hostname is: datadog-cluster-agent-58699fcccc-thxgg\r\n2022-12-16 07:26:18 UTC | CLUSTER | INFO | (pkg\/forwarder\/forwarder.go:237 in NewDefaultForwarder) | Retry queue storage on disk is disabled\r\n2022-12-16 07:26:18 UTC | CLUSTER | INFO | (pkg\/forwarder\/forwarder.go:237 in NewDefaultForwarder) | Retry queue storage on disk is disabled\r\n2022-12-16 07:26:18 UTC | CLUSTER | INFO | (pkg\/aggregator\/time_sampler.go:46 in NewTimeSampler) | Creating TimeSampler #0\r\n2022-12-16 07:26:18 UTC | CLUSTER | INFO | (pkg\/forwarder\/forwarder.go:356 in Start) | Forwarder started, sending to 1 endpoint(s) with 1 worker(s) each: \"https:\/\/orchestrator.datadoghq.com\" (1 api key(s))\r\n2022-12-16 07:26:18 UTC | CLUSTER | INFO | (pkg\/forwarder\/forwarder.go:356 in Start) | Forwarder started, sending to 1 endpoint(s) with 1 worker(s) each: \"https:\/\/7-39-2-app.agent.datadoghq.com\" (1 api key(s))\r\nError: temporary failure in leaderElection, will retry later: Get \"https:\/\/10.96.0.1:443\/api\/v1\/namespaces\/default\/configmaps\/datadog-leader-election?timeout=10s\": net\/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)\r\n2022-12-16 07:26:28 UTC | CLUSTER | ERROR | (pkg\/util\/kubernetes\/apiserver\/leaderelection\/leaderelection.go:146 in init) | Cannot retrieve ConfigMap from the default namespace: Get \"https:\/\/10.96.0.1:443\/api\/v1\/namespaces\/default\/configmaps\/datadog-leader-election?timeout=10s\": net\/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)\r\nUsage:\r\n  datadog-cluster-agent start &#91;flags]\r\n\r\nFlags:\r\n  -h, --help   help for start\r\n\r\nGlobal Flags:\r\n  -c, --cfgpath string   path to directory containing datadog.yaml\r\n  -n, --no-color         disable color output\r\n\r\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Solution &#8211; Still working on it<\/h2>\n","protected":false},"excerpt":{"rendered":"<p>Error Solution &#8211; Still working on it<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[1],"tags":[],"class_list":["post-9930","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Kubernetes Error: Cannot retrieve ConfigMap from the default namespaceKubernetes Error: - scmGalaxy<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.scmgalaxy.com\/tutorials\/kubernetes-error-cannot-retrieve-configmap-from-the-default-namespacekubernetes-error\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Kubernetes Error: Cannot retrieve ConfigMap from the default namespaceKubernetes Error: - scmGalaxy\" \/>\n<meta property=\"og:description\" content=\"Error Solution &#8211; Still working on it\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.scmgalaxy.com\/tutorials\/kubernetes-error-cannot-retrieve-configmap-from-the-default-namespacekubernetes-error\/\" \/>\n<meta property=\"og:site_name\" content=\"scmGalaxy\" \/>\n<meta property=\"article:published_time\" content=\"2022-12-16T07:59:11+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-12-16T07:59:13+00:00\" \/>\n<meta name=\"author\" content=\"rajeshkumar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"rajeshkumar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/kubernetes-error-cannot-retrieve-configmap-from-the-default-namespacekubernetes-error\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/kubernetes-error-cannot-retrieve-configmap-from-the-default-namespacekubernetes-error\\\/\"},\"author\":{\"name\":\"rajeshkumar\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/a40e0dd38feee7c2779460a804d49361\"},\"headline\":\"Kubernetes Error: Cannot retrieve ConfigMap from the default namespaceKubernetes Error:\",\"datePublished\":\"2022-12-16T07:59:11+00:00\",\"dateModified\":\"2022-12-16T07:59:13+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/kubernetes-error-cannot-retrieve-configmap-from-the-default-namespacekubernetes-error\\\/\"},\"wordCount\":17,\"commentCount\":0,\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/kubernetes-error-cannot-retrieve-configmap-from-the-default-namespacekubernetes-error\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/kubernetes-error-cannot-retrieve-configmap-from-the-default-namespacekubernetes-error\\\/\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/kubernetes-error-cannot-retrieve-configmap-from-the-default-namespacekubernetes-error\\\/\",\"name\":\"Kubernetes Error: Cannot retrieve ConfigMap from the default namespaceKubernetes Error: - scmGalaxy\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#website\"},\"datePublished\":\"2022-12-16T07:59:11+00:00\",\"dateModified\":\"2022-12-16T07:59:13+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/a40e0dd38feee7c2779460a804d49361\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/kubernetes-error-cannot-retrieve-configmap-from-the-default-namespacekubernetes-error\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/kubernetes-error-cannot-retrieve-configmap-from-the-default-namespacekubernetes-error\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/kubernetes-error-cannot-retrieve-configmap-from-the-default-namespacekubernetes-error\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Kubernetes Error: Cannot retrieve ConfigMap from the default namespaceKubernetes Error:\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#website\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/\",\"name\":\"scmGalaxy\",\"description\":\"A Platform for Software Engineers\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/a40e0dd38feee7c2779460a804d49361\",\"name\":\"rajeshkumar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/82337e1fc8642c7f36795aa0775af055a4f38882994004b593efd31758d4434e?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/82337e1fc8642c7f36795aa0775af055a4f38882994004b593efd31758d4434e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/82337e1fc8642c7f36795aa0775af055a4f38882994004b593efd31758d4434e?s=96&d=mm&r=g\",\"caption\":\"rajeshkumar\"},\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/author\\\/rajeshkumar\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Kubernetes Error: Cannot retrieve ConfigMap from the default namespaceKubernetes Error: - scmGalaxy","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.scmgalaxy.com\/tutorials\/kubernetes-error-cannot-retrieve-configmap-from-the-default-namespacekubernetes-error\/","og_locale":"en_US","og_type":"article","og_title":"Kubernetes Error: Cannot retrieve ConfigMap from the default namespaceKubernetes Error: - scmGalaxy","og_description":"Error Solution &#8211; Still working on it","og_url":"https:\/\/www.scmgalaxy.com\/tutorials\/kubernetes-error-cannot-retrieve-configmap-from-the-default-namespacekubernetes-error\/","og_site_name":"scmGalaxy","article_published_time":"2022-12-16T07:59:11+00:00","article_modified_time":"2022-12-16T07:59:13+00:00","author":"rajeshkumar","twitter_card":"summary_large_image","twitter_misc":{"Written by":"rajeshkumar","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/kubernetes-error-cannot-retrieve-configmap-from-the-default-namespacekubernetes-error\/#article","isPartOf":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/kubernetes-error-cannot-retrieve-configmap-from-the-default-namespacekubernetes-error\/"},"author":{"name":"rajeshkumar","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/a40e0dd38feee7c2779460a804d49361"},"headline":"Kubernetes Error: Cannot retrieve ConfigMap from the default namespaceKubernetes Error:","datePublished":"2022-12-16T07:59:11+00:00","dateModified":"2022-12-16T07:59:13+00:00","mainEntityOfPage":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/kubernetes-error-cannot-retrieve-configmap-from-the-default-namespacekubernetes-error\/"},"wordCount":17,"commentCount":0,"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.scmgalaxy.com\/tutorials\/kubernetes-error-cannot-retrieve-configmap-from-the-default-namespacekubernetes-error\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/kubernetes-error-cannot-retrieve-configmap-from-the-default-namespacekubernetes-error\/","url":"https:\/\/www.scmgalaxy.com\/tutorials\/kubernetes-error-cannot-retrieve-configmap-from-the-default-namespacekubernetes-error\/","name":"Kubernetes Error: Cannot retrieve ConfigMap from the default namespaceKubernetes Error: - scmGalaxy","isPartOf":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#website"},"datePublished":"2022-12-16T07:59:11+00:00","dateModified":"2022-12-16T07:59:13+00:00","author":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/a40e0dd38feee7c2779460a804d49361"},"breadcrumb":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/kubernetes-error-cannot-retrieve-configmap-from-the-default-namespacekubernetes-error\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.scmgalaxy.com\/tutorials\/kubernetes-error-cannot-retrieve-configmap-from-the-default-namespacekubernetes-error\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/kubernetes-error-cannot-retrieve-configmap-from-the-default-namespacekubernetes-error\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.scmgalaxy.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"Kubernetes Error: Cannot retrieve ConfigMap from the default namespaceKubernetes Error:"}]},{"@type":"WebSite","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#website","url":"https:\/\/www.scmgalaxy.com\/tutorials\/","name":"scmGalaxy","description":"A Platform for Software Engineers","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.scmgalaxy.com\/tutorials\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/a40e0dd38feee7c2779460a804d49361","name":"rajeshkumar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/82337e1fc8642c7f36795aa0775af055a4f38882994004b593efd31758d4434e?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/82337e1fc8642c7f36795aa0775af055a4f38882994004b593efd31758d4434e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/82337e1fc8642c7f36795aa0775af055a4f38882994004b593efd31758d4434e?s=96&d=mm&r=g","caption":"rajeshkumar"},"url":"https:\/\/www.scmgalaxy.com\/tutorials\/author\/rajeshkumar\/"}]}},"_links":{"self":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/9930","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/comments?post=9930"}],"version-history":[{"count":1,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/9930\/revisions"}],"predecessor-version":[{"id":9931,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/9930\/revisions\/9931"}],"wp:attachment":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/media?parent=9930"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/categories?post=9930"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/tags?post=9930"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}