{"id":800,"date":"2024-12-17T11:29:45","date_gmt":"2024-12-17T03:29:45","guid":{"rendered":"https:\/\/www.luyouli.com\/?p=800"},"modified":"2024-12-17T11:30:18","modified_gmt":"2024-12-17T03:30:18","slug":"kubernetes-1-30%e5%92%8c1-32-kubeadm-config-apiserver%e9%85%8d%e7%bd%ae%e6%96%87%e4%bb%b6%e7%9a%84%e5%8c%ba%e5%88%ab","status":"publish","type":"post","link":"https:\/\/www.luyouli.com\/?p=800","title":{"rendered":"Kubernetes 1.30\u548c1.32 kubeadm-config apiServer\u548capiVersion\u914d\u7f6e\u6587\u4ef6\u7684\u533a\u522b"},"content":{"rendered":"\n<p>\u8fd1\u671f\u4ece1.30\u5347\u7ea7\u52301.31\uff0c\u6bcf\u6b21\u5347\u7ea7cilium\u90fd\u4f1a\u62a5\u9519\uff0c\u9519\u8bef\u89c1\u4e0a\u4e00\u7bc7\u6587\u7ae0\uff1a<a href=\"https:\/\/www.luyouli.com\/?p=797\">https:\/\/www.luyouli.com\/?p=797<\/a><\/p>\n\n\n\n<p>cilium\u62a5\u9519\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Errors: cilium cilium daemonsets.apps \"cilium\" not found<br>status check failed: [daemonsets.apps \"cilium\" not found, unable to retrieve ConfigMap \"cilium-config\": configmaps \"cilium-config\" not found]<\/pre>\n\n\n\n<p>\u4eca\u5929\u8d81\u77401.32\u53d1\u5e03\u4e86\uff0c\u7d22\u6027\u5c31\u76f4\u63a5\u641e\u52301.32\uff0c\u4e5f\u505a\u597d\u4e86\u91cd\u65b0\u90e8\u7f72\u7684\u51c6\u5907<\/p>\n\n\n\n<p>\u7ecf\u8fc7\u4e0d\u65ad\u7684\u5347\u7ea7\u6d4b\u8bd5\uff0c\u53d1\u73b0\u6709\u8fd9\u4e9b\u62a5\u9519\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[preflight] Running pre-flight checks<br>[preflight] Reading configuration from the \"kubeadm-config\" ConfigMap in namespace \"kube-system\"...<br>[preflight] Use 'kubeadm init phase upload-config --config your-config.yaml' to re-upload it.<br>W1217 09:48:43.484026    6798 configset.go:78] Warning: No kubeproxy.config.k8s.io\/v1alpha1 config is loaded. Continuing without it: configmaps \"kube-proxy\" is forbidden: User \"system:bootstrap:qggnmv\" cannot get resource \"configmaps\" in API group \"\" in the namespace \"kube-system\"<br>error execution phase preflight: unable to fetch the kubeadm-config ConfigMap: this version of kubeadm only supports deploying clusters with the control plane version >= 1.31.0. Current version: v1.30.7<br>To see the stack trace of this error execute with --v=5 or higher<\/pre>\n\n\n\n<p>\u7ecf\u8fc7\u7814\u7a76\uff0c\u6700\u7ec8\u628a\u95ee\u9898\u5b9a\u4f4d\u5230\u8fd9\u4e00\u53e5\uff1aReading configuration from the &#8220;kubeadm-config&#8221; ConfigMap in namespace &#8220;kube-system&#8221;<\/p>\n\n\n\n<p>\u8fd9\u53e5\u7684\u610f\u601d\u662f\uff1a\u6ca1\u6709\u52a0\u8f7d kubeproxy.config.k8s.io\/v1alpha1 \u914d\u7f6e\uff0c\u5e76\u4e14\u7528\u6237 system:bootstrap:qggnmv \u6ca1\u6709\u6743\u9650\u83b7\u53d6 kube-system \u547d\u540d\u7a7a\u95f4\u4e0b\u7684 configmaps \u8d44\u6e90\u3002\u8fd9\u90e8\u5206\u95ee\u9898\u53ef\u80fd\u4e0e RBAC (\u57fa\u4e8e\u89d2\u8272\u7684\u8bbf\u95ee\u63a7\u5236) \u8bbe\u7f6e\u6709\u5173\uff0c\u4f46\u4e3b\u8981\u5173\u6ce8\u70b9\u5728\u4e8e kubeadm-config ConfigMap \u7684\u7248\u672c\u4e0d\u517c\u5bb9\u95ee\u9898<\/p>\n\n\n\n<p>\u6700\u7ec8\uff0c\u77e5\u6653\u4e86\u4e3a\u4ec0\u4e48\u5c61\u6b21\u5347\u7ea7\u4e0d\u4e0a\u53bb\u7684\u539f\u56e0\u4e86\uff0c\u662f\u7531\u4e8ekubeadm-config\u914d\u7f6e\u6587\u4ef6\u5347\u7ea7\u4e86\uff0c\u4f46\u662f\u6211\u8fd9\u4e2a\u73af\u5883\u4e00\u76f4\u662f\u65e7\u7248\u7684\u914d\u7f6e\uff0c\u6240\u4ee5\u65b0\u7248\u672c\u4e0d\u517c\u5bb9<\/p>\n\n\n\n<p>\u65b0\u65e7\u7248\u672c\u5bf9\u6bd4\u5982\u4e0b\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"972\" height=\"484\" src=\"https:\/\/www.luyouli.com\/wp-content\/uploads\/2024\/12\/image.png\" alt=\"\" class=\"wp-image-802\"\/><\/figure>\n\n\n\n<p>\u5f88\u660e\u663e\u7684\u770b\u51fa\uff1a<\/p>\n\n\n\n<p>1\u3001apiServer\u5185\u5bb9\u53bb\u6389\u4e86authorization-mode<\/p>\n\n\n\n<p>2\u3001apiVersion\u7248\u672c\u5347\u7ea7\u5230\u4e86beta4<\/p>\n\n\n\n<p>\u8fd9\u4e24\u70b9\uff0c\u5e94\u8be5\u5c31\u662f\u5bfc\u81f4\u6211\u6570\u6b21\u5347\u7ea7\u4e0d\u4e0a\u53bb\u7684\u539f\u56e0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8fd1\u671f\u4ece1.30\u5347\u7ea7\u52301.31\uff0c\u6bcf\u6b21\u5347\u7ea7cilium\u90fd\u4f1a\u62a5\u9519\uff0c\u9519\u8bef\u89c1\u4e0a\u4e00\u7bc7\u6587\u7ae0\uff1ahttps:\/\/www.luyo [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[],"class_list":["post-800","post","type-post","status-publish","format-standard","hentry","category-kubernetes"],"blocksy_meta":[],"views":1340,"_links":{"self":[{"href":"https:\/\/www.luyouli.com\/index.php?rest_route=\/wp\/v2\/posts\/800","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.luyouli.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.luyouli.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.luyouli.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.luyouli.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=800"}],"version-history":[{"count":3,"href":"https:\/\/www.luyouli.com\/index.php?rest_route=\/wp\/v2\/posts\/800\/revisions"}],"predecessor-version":[{"id":804,"href":"https:\/\/www.luyouli.com\/index.php?rest_route=\/wp\/v2\/posts\/800\/revisions\/804"}],"wp:attachment":[{"href":"https:\/\/www.luyouli.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=800"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.luyouli.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=800"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.luyouli.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=800"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}