{"id":8242,"date":"2022-05-07T16:12:11","date_gmt":"2022-05-07T08:12:11","guid":{"rendered":"https:\/\/blog.ywdevops.cn\/?p=8242"},"modified":"2023-04-04T14:47:35","modified_gmt":"2023-04-04T06:47:35","slug":"k8s-8","status":"publish","type":"post","link":"https:\/\/blog.ywdevops.cn\/index.php\/2022\/05\/07\/k8s-8\/","title":{"rendered":"k8s\u4f7f\u7528\u5e38\u89c1\u95ee\u9898"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">1\u3001\u521b\u5efaingress\u670d\u52a1\u7684\u65f6\u5019\uff0c\u51fa\u73b0\u9519\u8bef\u4fe1\u606f\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Internal error occurred: failed calling webhook \"validate.nginx.ingress.kubernetes.io\": Post \nhttps:&#47;&#47;ingress-nginx-controller-admission.kube-system.svc:443\/networking\/v1beta1\/ingresses?\ntimeout=10s: dial tcp 10.0.0.5:8443: connect: connection refused\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u539f\u56e0\uff1a\u5b89\u88c5\u5b8cingress controller\u540e\uff0c\u5c06\u5176\u5220\u9664\u5e76\u4e14\u5220\u9664\u4e86\u547d\u4ee4\u7a7a\u95f4\uff0c\u4f46\u662f\u6ca1\u6709\u5220\u9664ValidatingWebhookConfiguration\uff0c\u518d\u6b21\u521b\u5efaingress\u670d\u52a1\u7684\u65f6\u5019\u5c31\u4f1a\u62a5\u9519<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u89e3\u51b3\u65b9\u6848\uff1a<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u901a\u8fc7\u547d\u4ee4\u67e5\u770bwebhook\uff0c\u5e76\u5220\u9664\uff0c\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"706\" height=\"163\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/05\/4-2.png\" alt=\"\" class=\"wp-image-8244\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/05\/4-2.png 706w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/05\/4-2-300x69.png 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/05\/4-2-600x139.png 600w\" sizes=\"auto, (max-width: 706px) 100vw, 706px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">2\u3001\u673a\u5668\u65ad\u7535\u91cd\u542f\u540e\uff0capiserver\u8d77\u4e0d\u6765\uff0cetcd\u62a5\u9519\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>panic: freepages: failed to get all reachable pages (page 113: multiple references)<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u539f\u56e0\uff1a\u65ad\u7535\u5bfc\u81f4etcd\u6570\u636e\u635f\u574f<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u89e3\u51b3\u65b9\u6848\uff1a\u6062\u590d\u5907\u4efd\u7684etcd\u6570\u636e\uff0c\u53ef\u53c2\u8003<a href=\"https:\/\/blog.ywdevops.cn\/index.php\/2023\/02\/14\/etcd\/\">k8s\u4e4betcd\u7684\u5907\u4efd\u4e0e\u56de\u6062\u590d \u2013 IT\u8fd0\u7ef4 (blog.ywdevops.cn)<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">3\u3001\u673a\u5668\u610f\u5916\u91cd\u542f\u6216\u5176\u4f59\u539f\u56e0\u5bfc\u81f4calico-controller\u8d77\u4e0d\u6765\uff0c\u540c\u65f6pod\u4e5f\u65e0\u6cd5\u521b\u5efa\u548c\u5220\u9664\uff0c\u67e5\u770b\u62a5\u9519\u4fe1\u606f\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>network: error getting ClusterInformation: connection is unauthorized\uff0cnetworkPlugin cni failed to teardown\nFailed to verify datastore error=Get \"https:\/\/10.96.0.1:443\/apis\/crd.projectcalico.org\/v1\/clusterinformations\/default\": context deadline exceeded<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u539f\u56e0\uff1acalico\u8fde\u63a5<strong>Kubernetes API datastore<\/strong>\u5931\u8d25\uff0c\u65e0\u6cd5\u8fde\u63a5\uff0ccalico\u4e3aPod\u5206\u914d\u7684IP\u662f\u5b58\u50a8\u5728kubernetes api datastore\u4e2d\uff0c\u5982\u679c\u51fa\u73b0\u5f02\u5e38\u60c5\u51b5\uff0c\u6bd4\u5982node\u8282\u70b9down\u6389\uff0c\u4e0a\u9762\u7684Pod\u6ca1\u6709\u9a71\u9010\uff0c\u90a3\u4e48\u5c31\u4f1a\u6709\u5b58\u7559\u7684ip\u5b58\u50a8\u5728api datastore\u4e2d\uff0c\u518d\u6b21\u542f\u52a8\u65f6\u6b8b\u7559\u7684\u6570\u636e\u5c31\u4f1a\u5bf9pod\u7684\u542f\u52a8\u4ea7\u751f\u5f71\u54cd\uff0c\u5bfc\u81f4\u65e0\u6cd5\u542f\u52a8<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u89e3\u51b3\u65b9\u6848\uff1a\u5c06\u6240\u6709\u7684calico\u76f8\u5173\u7684pod\u5168\u90e8\u5220\u6389\uff0c\u90a3\u4e48\u901a\u8fc7deployment\u89c4\u5219\u4f1a\u81ea\u52a8\u91cd\u65b0\u542f\u52a8\u65b0\u7684pod\uff0c\u4ece\u91cd\u65b0\u5206\u914dip\u5730\u5740\uff0c\u95ee\u9898\u89e3\u51b3<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1\u3001\u521b\u5efaingress\u670d\u52a1\u7684\u65f6\u5019\uff0c\u51fa\u73b0\u9519\u8bef\u4fe1\u606f\u5982\u4e0b\uff1a \u539f\u56e0\uff1a\u5b89\u88c5\u5b8cingress controller\u540e\uff0c\u5c06\u5176 [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":8246,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[93,23],"tags":[102,99],"class_list":["post-8242","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-kubernetes","category-rong","tag-k8s","tag-kubernetes"],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":8}},"_links":{"self":[{"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/posts\/8242","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/comments?post=8242"}],"version-history":[{"count":8,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/posts\/8242\/revisions"}],"predecessor-version":[{"id":12807,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/posts\/8242\/revisions\/12807"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/media\/8246"}],"wp:attachment":[{"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/media?parent=8242"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/categories?post=8242"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/tags?post=8242"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}