{"id":98150,"date":"2026-08-31T08:56:48","date_gmt":"2026-08-31T00:56:48","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/98150.html"},"modified":"2026-08-31T08:56:48","modified_gmt":"2026-08-31T00:56:48","slug":"k8s%e7%94%9f%e4%ba%a7%e9%9b%86%e7%be%a4%e6%95%85%e9%9a%9c%e5%ba%94%e6%80%a5%e5%a4%84%e7%bd%ae%e5%ae%9e%e6%88%98%ef%bc%9a%e8%8a%82%e7%82%b9notready%e3%80%81pod%e9%9b%aa%e5%b4%a9%e4%b8%8e%e8%b5%84","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/98150.html","title":{"rendered":"K8s\u751f\u4ea7\u96c6\u7fa4\u6545\u969c\u5e94\u6025\u5904\u7f6e\u5b9e\u6218\uff1a\u8282\u70b9NotReady\u3001Pod\u96ea\u5d29\u4e0e\u8d44\u6e90\u8017\u5c3d\u7684\u73b0\u573a\u6392\u67e5\u590d\u76d8"},"content":{"rendered":"<p>\u5144\u5f1f\u4eec&#xff0c;\u4eca\u5929\u590d\u76d8\u4e00\u4e2aK8s\u751f\u4ea7\u96c6\u7fa4\u7684\u4e25\u91cd\u6545\u969c\u3002<\/p>\n<p>\u6545\u969c\u73b0\u8c61\u975e\u5e38\u5178\u578b\u4e14\u81f4\u547d&#xff1a;\u96c6\u7fa4\u591a\u4e2a\u8282\u70b9\u72b6\u6001\u7a81\u53d8\u4e3a NotReady&#xff0c;\u6838\u5fc3\u4e1a\u52a1Pod\u5927\u9762\u79ef\u9677\u5165 CrashLoopBackOff&#xff0c;Service\u5c42\u76f4\u63a5\u7206\u51fa\u5927\u91cf502\u9519\u8bef&#xff0c;\u6574\u4e2a\u96c6\u7fa4\u5904\u4e8e\u534a\u762b\u75ea\u72b6\u6001&#xff0c;\u4e1a\u52a1\u5b8c\u5168\u4e0d\u53ef\u7528\u3002<\/p>\n<p>\u9762\u5bf9\u8fd9\u79cd\u96c6\u7fa4\u7ea7\u6545\u969c&#xff0c;\u6700\u8003\u9a8cSRE\u548c\u8fd0\u7ef4\u7684\u5fc3\u7406\u7d20\u8d28\u3002\u4eca\u5929\u5c31\u628a\u8fd9\u6b21\u771f\u5b9e\u6545\u969c\u7684\u6392\u67e5\u548c\u5904\u7f6e\u8fc7\u7a0b\u62c6\u89e3\u4e00\u4e0b&#xff0c;\u5168\u662f\u73b0\u573a\u5b9e\u64cd\u7684\u8840\u6cea\u7ecf\u9a8c&#xff0c;\u5e0c\u671b\u80fd\u5e2e\u5927\u5bb6\u5728\u9047\u5230\u7c7b\u4f3c\u60c5\u51b5\u65f6&#xff0c;\u80fd\u7a33\u4f4f\u9635\u811a&#xff0c;\u5feb\u901f\u6062\u590d\u3002<\/p>\n<p>&#x1f6a8; \u6545\u969c\u521d\u671f\u201c\u56db\u4e0d\u8981\u201d\u7ea2\u7ebf&#xff08;\u4fdd\u547d\u5fc5\u770b&#xff09;&#xff1a;<\/p>\n<li>\u4e0d\u8981\u76f2\u76ee\u91cd\u542f\u6240\u6709\u8282\u70b9&#xff1a;\u8fd9\u4f1a\u5bfc\u81f4\u8c03\u5ea6\u96ea\u5d29&#xff0c;\u539f\u672c\u8fd8\u80fd\u8dd1\u7684Pod\u5168\u88ab\u6324\u5230\u574f\u8282\u70b9\u4e0a&#xff0c;\u76f4\u63a5\u5168\u519b\u8986\u6ca1\u3002<\/li>\n<li>\u4e0d\u8981\u76f4\u63a5 delete \u5927\u91cfPod&#xff1a;\u5220\u4e86Pod\u5c31\u4e22\u5931\u4e86\u73b0\u573a\u65e5\u5fd7\u548c\u6392\u67e5\u7ebf\u7d22&#xff0c;\u800c\u4e14\u91cd\u5efa\u53ef\u80fd\u4f9d\u7136\u5931\u8d25\u3002<\/li>\n<li>\u4e0d\u8981\u5728\u672a\u6392\u67e5\u524d\u5347\u7ea7\u96c6\u7fa4\u7248\u672c&#xff1a;\u6545\u969c\u671f\u95f4\u505a\u53d8\u66f4&#xff0c;\u7b49\u4e8e\u8499\u7740\u773c\u775b\u5f00\u9ad8\u901f&#xff0c;\u51fa\u4e86\u4e8b\u4f60\u90fd\u4e0d\u77e5\u9053\u662f\u539f\u6545\u969c\u8fd8\u662f\u5347\u7ea7\u5f15\u8d77\u7684\u3002<\/li>\n<li>\u4e0d\u8981\u968f\u610f\u4fee\u6539kubelet\u914d\u7f6e&#xff1a;\u6539\u9519\u4e86\u76f4\u63a5\u5bfc\u81f4\u8282\u70b9\u5f7b\u5e95\u5931\u8054&#xff0c;\u8fdeSSH\u8fdb\u53bb\u6551\u7684\u673a\u4f1a\u90fd\u6ca1\u6709\u3002<\/li>\n<hr \/>\n<h3>\u4e00\u3001 \u5b8c\u6574\u5e94\u6025\u5904\u7f6eSOP&#xff1a;\u5148\u7a33\u4f4f&#xff0c;\u518d\u62a2\u6551<\/h3>\n<p>\u9047\u5230\u5927\u6545\u969c&#xff0c;\u5343\u4e07\u522b\u4e00\u4e0a\u6765\u5c31\u60f3\u7740\u201c\u600e\u4e48\u628a\u4ee3\u7801\u4fee\u597d\u201d\u6216\u8005\u201c\u600e\u4e48\u628a\u8282\u70b9\u91cd\u542f\u201d&#xff0c;\u53e3\u8bc0\u662f&#xff1a;\u5148\u7a33\u4f4f\u96c6\u7fa4&#xff0c;\u518d\u62a2\u6551\u4e1a\u52a1\u3002<\/p>\n<p>\u5b8c\u6574\u6d41\u7a0b\u5982\u4e0b&#xff1a;<\/p>\n<li>\u6545\u969c\u5b9a\u7ea7&#xff1a;\u62c9\u7fa4\u3001\u901a\u62a5&#xff0c;\u660e\u786e\u5f53\u524d\u5f71\u54cd\u9762\u3002<\/li>\n<li>\u96c6\u7fa4\u5065\u5eb7\u5ea6\u5feb\u901f\u6478\u5e95&#xff1a;\u770b\u76d1\u63a7\u5927\u76d8&#xff0c;\u786e\u8ba4\u662f\u5355\u70b9\u95ee\u9898\u8fd8\u662f\u5168\u5c40\u95ee\u9898\u3002<\/li>\n<li>\u63a7\u5236\u9762\u72b6\u6001\u786e\u8ba4&#xff1a;\u786e\u8ba4apiserver\u3001etcd\u662f\u5426\u6b63\u5e38\u3002<\/li>\n<li>\u8282\u70b9\u5c42\u6392\u67e5&#xff1a;\u627e\u51faNotReady\u7684\u8282\u70b9&#xff0c;\u770b\u662f\u6b7b\u673a\u8fd8\u662f\u7ec4\u4ef6\u6302\u4e86\u3002<\/li>\n<li>Pod\/\u5bb9\u5668\u5c42\u6392\u67e5&#xff1a;\u770b\u4e1a\u52a1Pod\u4e3a\u4ec0\u4e48\u8d77\u4e0d\u6765\u3002<\/li>\n<li>\u7f51\u7edc\u4e0e\u5b58\u50a8\u5c42\u6392\u67e5&#xff1a;\u6392\u67e5CNI\u3001CoreDNS\u3001PV\/PVC\u3002<\/li>\n<li>\u4e1a\u52a1\u6062\u590d&#xff1a;\u9694\u79bb\u6545\u969c\u70b9&#xff0c;\u5feb\u901f\u6062\u590d\u6838\u5fc3\u94fe\u8def\u3002<\/li>\n<li>\u6839\u56e0\u5b9a\u4f4d&#xff1a;\u627e\u80cc\u9505\u4fa0\u3002<\/li>\n<li>\u590d\u76d8\u52a0\u56fa&#xff1a;\u64e6\u5c41\u80a1&#xff0c;\u9632\u6b62\u4e8c\u6b21\u7ffb\u8f66\u3002<\/li>\n<hr \/>\n<h3>\u4e8c\u3001 \u63a7\u5236\u9762\u4e0e\u8282\u70b9\u6392\u67e5&#xff1a;\u6478\u6e05\u5e95\u724c<\/h3>\n<p>\u8282\u70b9 NotReady \u662f\u8868\u8c61&#xff0c;\u80cc\u540e\u53ef\u80fd\u662fkubelet\u6302\u4e86\u3001\u7f51\u7edc\u65ad\u4e86\u6216\u8005\u8d44\u6e90\u8017\u5c3d\u4e86\u3002<\/p>\n<h4>1. \u5feb\u901f\u67e5\u770b\u96c6\u7fa4\u4e0e\u8282\u70b9\u72b6\u6001<\/h4>\n<p><span class=\"token comment\"># \u67e5\u770b\u8282\u70b9\u72b6\u6001&#xff0c;\u627e\u51faNotReady\u7684\u8282\u70b9<\/span><br \/>\nkubectl get nodes <span class=\"token parameter variable\">-o<\/span> wide<\/p>\n<p><span class=\"token comment\"># \u67e5\u770b\u5f02\u5e38\u8282\u70b9\u7684\u8be6\u7ec6\u4e8b\u4ef6&#xff08;\u91cd\u70b9\u770b Conditions \u548c Events&#xff09;<\/span><br \/>\nkubectl describe <span class=\"token function\">node<\/span> <span class=\"token operator\">&lt;<\/span>node-name<span class=\"token operator\">&gt;<\/span><\/p>\n<p><span class=\"token comment\"># \u67e5\u770b\u63a7\u5236\u9762\u7ec4\u4ef6\u72b6\u6001&#xff08;apiserver, scheduler, controller-manager&#xff09;<\/span><br \/>\nkubectl get pods <span class=\"token parameter variable\">-n<\/span> kube-system <span class=\"token parameter variable\">-o<\/span> wide<\/p>\n<h4>2. \u8282\u70b9\u5c42\u6df1\u5ea6\u6392\u67e5&#xff08;\u4e0aSSH&#xff09;<\/h4>\n<p>\u767b\u5f55\u5230 NotReady \u7684\u8282\u70b9&#xff0c;\u6309\u4ee5\u4e0b\u987a\u5e8f\u6392\u67e5&#xff1a;<\/p>\n<p><span class=\"token comment\"># 1. \u67e5kubelet\u72b6\u6001\u548c\u65e5\u5fd7&#xff08;\u6700\u5e38\u89c1\u7684\u80cc\u9505\u4fa0&#xff09;<\/span><br \/>\nsystemctl status kubelet<br \/>\njournalctl <span class=\"token parameter variable\">-u<\/span> kubelet <span class=\"token parameter variable\">-f<\/span> <span class=\"token parameter variable\">&#8211;since<\/span> <span class=\"token string\">&#034;1 hour ago&#034;<\/span> <span class=\"token operator\">|<\/span> <span class=\"token function\">grep<\/span> <span class=\"token parameter variable\">-iE<\/span> <span class=\"token string\">&#034;error|fail|panic&#034;<\/span><\/p>\n<p><span class=\"token comment\"># 2. \u67e5\u5bb9\u5668\u8fd0\u884c\u65f6\u72b6\u6001&#xff08;containerd\/docker&#xff09;<\/span><br \/>\nsystemctl status containerd<br \/>\ncrictl info<br \/>\ncrictl <span class=\"token function\">ps<\/span> <span class=\"token parameter variable\">-a<\/span> <span class=\"token operator\">|<\/span> <span class=\"token function\">grep<\/span> <span class=\"token parameter variable\">-v<\/span> Running<\/p>\n<p><span class=\"token comment\"># 3. \u67e5\u8282\u70b9\u8d44\u6e90\u5360\u7528&#xff08;\u91cd\u70b9\u770b\u78c1\u76d8\u548cinode&#xff01;&#xff09;<\/span><br \/>\n<span class=\"token function\">top<\/span> <span class=\"token parameter variable\">-c<\/span><br \/>\n<span class=\"token function\">df<\/span> <span class=\"token parameter variable\">-h<\/span>  <span class=\"token comment\"># \u770b\u78c1\u76d8\u7a7a\u95f4&#xff0c;\u7279\u522b\u662f \/var\/lib\/kubelet \u548c \/var\/lib\/containerd<\/span><br \/>\n<span class=\"token function\">df<\/span> <span class=\"token parameter variable\">-i<\/span>  <span class=\"token comment\"># \u770binode\u4f7f\u7528\u7387&#xff0c;inode\u8017\u5c3d\u4e5f\u4f1a\u5bfc\u81f4kubelet\u505c\u6446&#xff01;<\/span><\/p>\n<p><span class=\"token comment\"># 4. etcd \u5065\u5eb7\u68c0\u67e5<\/span><br \/>\n<span class=\"token comment\"># \u5982\u679c\u662fkubeadm\u90e8\u7f72\u7684&#xff0c;\u53ef\u4ee5\u76f4\u63a5\u7528kubectl\u67e5<\/span><br \/>\nkubectl get <span class=\"token parameter variable\">&#8211;raw<\/span> \/healthz\/etcd<br \/>\n<span class=\"token comment\"># \u6216\u8005\u8fdbetcd\u5bb9\u5668\u67e5<\/span><br \/>\nkubectl <span class=\"token builtin class-name\">exec<\/span> <span class=\"token parameter variable\">-it<\/span> etcd-master <span class=\"token parameter variable\">-n<\/span> kube-system &#8212; etcdctl endpoint health <span class=\"token parameter variable\">&#8211;endpoints<\/span><span class=\"token operator\">&#061;<\/span>https:\/\/127.0.0.1:2379<\/p>\n<p>&#x1f4a1; \u5e38\u89c1\u8282\u70b9\u6545\u969c\u6a21\u5f0f&#xff1a;<\/p>\n<ul>\n<li>\u78c1\u76d8\u6ee1\/Inode\u6ee1&#xff1a;\u5bb9\u5668\u65e5\u5fd7\u6ca1\u8f6e\u8f6c&#xff0c;\u6216\u8005\u67d0\u4e2a\u4e1a\u52a1\u75af\u72c2\u5199\u4e34\u65f6\u6587\u4ef6\u3002<\/li>\n<li>OOM&#xff1a;\u8282\u70b9\u7269\u7406\u5185\u5b58\u8017\u5c3d&#xff0c;\u89e6\u53d1\u5185\u6838OOM Killer&#xff0c;\u628akubelet\u6216\u5bb9\u5668\u8fd0\u884c\u65f6\u6740\u4e86\u3002<\/li>\n<li>\u5185\u6838Panic\/\u6b7b\u673a&#xff1a;\u786c\u4ef6\u95ee\u9898\u6216\u5185\u6838Bug&#xff0c;\u53ea\u80fd\u786c\u91cd\u542f\u3002<\/li>\n<li>\u8bc1\u4e66\u8fc7\u671f&#xff1a;\u7ecf\u5178\u8001\u756a&#xff0c;1\u5e74\u671f\u6ee1&#xff0c;apiserver\u6216kubelet\u8bc1\u4e66\u8fc7\u671f&#xff0c;\u8282\u70b9\u76f4\u63a5\u5931\u8054\u3002<\/li>\n<\/ul>\n<hr \/>\n<h3>\u4e09\u3001 Pod\u4e0e\u5de5\u4f5c\u8d1f\u8f7d\u6392\u67e5&#xff1a;\u5b9a\u4f4d\u4e1a\u52a1\u6b7b\u56e0<\/h3>\n<p>\u8282\u70b9\u6ca1\u95ee\u9898&#xff0c;\u4f46Pod\u5c31\u662f\u8d77\u4e0d\u6765&#xff0c;\u6216\u8005\u75af\u72c2\u91cd\u542f\u3002<\/p>\n<h4>1. \u5feb\u901f\u5b9a\u4f4d\u5f02\u5e38Pod<\/h4>\n<p><span class=\"token comment\"># \u6309\u547d\u540d\u7a7a\u95f4\u5217\u51fa\u975eRunning\u72b6\u6001\u7684Pod<\/span><br \/>\nkubectl get pods <span class=\"token parameter variable\">-n<\/span> <span class=\"token operator\">&lt;<\/span>namespace<span class=\"token operator\">&gt;<\/span> <span class=\"token operator\">|<\/span> <span class=\"token function\">grep<\/span> <span class=\"token parameter variable\">-v<\/span> Running<\/p>\n<p><span class=\"token comment\"># \u67e5\u770bPod\u8be6\u7ec6\u4e8b\u4ef6\u548c\u9000\u51fa\u7801&#xff08;\u91cd\u70b9\u770b Last State \u548c Events&#xff09;<\/span><br \/>\nkubectl describe pod <span class=\"token operator\">&lt;<\/span>pod-name<span class=\"token operator\">&gt;<\/span> <span class=\"token parameter variable\">-n<\/span> <span class=\"token operator\">&lt;<\/span>namespace<span class=\"token operator\">&gt;<\/span><\/p>\n<p><span class=\"token comment\"># \u67e5\u770b\u5bb9\u5668\u65e5\u5fd7&#xff08;\u6ce8\u610f&#xff1a;\u4e00\u5b9a\u8981\u52a0 &#8211;previous \u770b\u4e0a\u4e00\u6b21\u5d29\u6e83\u524d\u7684\u65e5\u5fd7&#xff01;&#xff09;<\/span><br \/>\nkubectl logs <span class=\"token operator\">&lt;<\/span>pod-name<span class=\"token operator\">&gt;<\/span> <span class=\"token parameter variable\">-n<\/span> <span class=\"token operator\">&lt;<\/span>namespace<span class=\"token operator\">&gt;<\/span> <span class=\"token parameter variable\">&#8211;previous<\/span> <span class=\"token parameter variable\">&#8211;tail<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token number\">100<\/span><\/p>\n<p><span class=\"token comment\"># \u67e5\u770bDeployment\u6eda\u52a8\u72b6\u6001&#xff0c;\u770b\u662f\u4e0d\u662f\u5361\u4f4f\u4e86<\/span><br \/>\nkubectl rollout status deployment\/<span class=\"token operator\">&lt;<\/span>deployment-name<span class=\"token operator\">&gt;<\/span> <span class=\"token parameter variable\">-n<\/span> <span class=\"token operator\">&lt;<\/span>namespace<span class=\"token operator\">&gt;<\/span><\/p>\n<p><span class=\"token comment\"># \u6309\u65f6\u95f4\u6392\u5e8f\u67e5\u770b\u547d\u540d\u7a7a\u95f4Events&#xff0c;\u627e\u6700\u65b0\u62a5\u9519<\/span><br \/>\nkubectl get events <span class=\"token parameter variable\">-n<\/span> <span class=\"token operator\">&lt;<\/span>namespace<span class=\"token operator\">&gt;<\/span> &#8211;sort-by<span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#039;.lastTimestamp&#039;<\/span> <span class=\"token operator\">|<\/span> <span class=\"token function\">tail<\/span> <span class=\"token parameter variable\">-n<\/span> <span class=\"token number\">20<\/span><\/p>\n<h4>2. \u5e38\u89c1\u5f02\u5e38\u72b6\u6001\u7684\u771f\u5b9e\u542b\u4e49<\/h4>\n<p>\u522b\u53ea\u770b\u5b57\u9762\u610f\u601d&#xff0c;\u8981\u61c2\u80cc\u540e\u7684\u903b\u8f91&#xff1a;<\/p>\n<ul>\n<li>CrashLoopBackOff&#xff1a;\u5bb9\u5668\u542f\u52a8\u540e\u7acb\u523b\u9000\u51fa&#xff0c;\u6216\u8005\u63a2\u9488\u4e00\u76f4\u5931\u8d25\u3002K8s\u5728\u5c1d\u8bd5\u91cd\u542f\u5b83&#xff0c;\u4f46\u95f4\u9694\u65f6\u95f4\u8d8a\u6765\u8d8a\u957f\u3002\u771f\u76f8&#xff1a;\u901a\u5e38\u662f\u4ee3\u7801\u6709Bug\u542f\u52a8\u62a5\u9519\u3001\u914d\u7f6e\u6587\u4ef6\u6302\u8f7d\u9519\u4e86\u3001\u6216\u8005\u6570\u636e\u5e93\u8fde\u4e0d\u4e0a\u3002<\/li>\n<li>OOMKilled&#xff1a;\u5bb9\u5668\u5185\u5b58\u8d85\u9650\u88ab\u7cfb\u7edfKill\u3002\u771f\u76f8&#xff1a;\u4e0d\u4e00\u5b9a\u662f\u4ee3\u7801\u5185\u5b58\u6cc4\u6f0f&#xff01;\u5f88\u53ef\u80fd\u662f resources.limits.memory \u8bbe\u5f97\u592a\u62a0&#xff0c;\u6216\u8005Java\u5e94\u7528\u6ca1\u914d\u597dJVM\u53c2\u6570&#xff08;\u6ca1\u8bc6\u522b\u5230\u5bb9\u5668\u5185\u5b58\u9650\u5236&#xff09;\u3002<\/li>\n<li>ImagePullBackOff \/ ErrImagePull&#xff1a;\u955c\u50cf\u62c9\u4e0d\u5230\u3002\u771f\u76f8&#xff1a;\u955c\u50cfTag\u5199\u9519\u4e86\u3001Harbor\u5bc6\u7801\u53d8\u4e86\u3001\u6216\u8005\u8282\u70b9\u5230\u955c\u50cf\u4ed3\u5e93\u7684\u7f51\u7edc\u4e0d\u901a&#xff08;DNS\u89e3\u6790\u5931\u8d25&#xff09;\u3002<\/li>\n<li>ContainerCreating&#xff1a;\u4e00\u76f4\u5361\u5728\u521b\u5efa\u4e2d\u3002\u771f\u76f8&#xff1a;\u901a\u5e38\u662f\u5b58\u50a8\u5377&#xff08;PV\/PVC&#xff09;\u6302\u8f7d\u5931\u8d25&#xff0c;\u6216\u8005CNI\u7f51\u7edc\u63d2\u4ef6\u5206\u914dIP\u5931\u8d25\u3002<\/li>\n<\/ul>\n<hr \/>\n<h3>\u56db\u3001 \u7f51\u7edc\u4e0e\u5b58\u50a8\u6392\u67e5&#xff1a;\u6253\u901a\u4efb\u7763\u4e8c\u8109<\/h3>\n<p>Pod\u8d77\u6765\u4e86&#xff0c;\u4f46\u662f\u4e92\u76f8\u4e0d\u901a&#xff0c;\u6216\u8005\u57df\u540d\u89e3\u6790\u4e0d\u4e86&#xff0c;\u8fd9\u65f6\u5019\u5c31\u8981\u67e5\u7f51\u7edc\u4e86\u3002<\/p>\n<h4>1. \u7f51\u7edc\u6392\u67e5\u4e09\u8fde<\/h4>\n<p><span class=\"token comment\"># 1. \u67e5 Service \u548c Endpoints&#xff08;\u770b\u540e\u7aef\u6709\u6ca1\u6709\u6302\u4e0aPod&#xff09;<\/span><br \/>\nkubectl get svc <span class=\"token operator\">&lt;<\/span>svc-name<span class=\"token operator\">&gt;<\/span> <span class=\"token parameter variable\">-n<\/span> <span class=\"token operator\">&lt;<\/span>namespace<span class=\"token operator\">&gt;<\/span><br \/>\nkubectl get ep <span class=\"token operator\">&lt;<\/span>svc-name<span class=\"token operator\">&gt;<\/span> <span class=\"token parameter variable\">-n<\/span> <span class=\"token operator\">&lt;<\/span>namespace<span class=\"token operator\">&gt;<\/span> <span class=\"token comment\"># \u5982\u679cENDPOINTS\u4e3a\u7a7a&#xff0c;\u8bf4\u660ePod\u63a2\u9488\u5931\u8d25\u6216\u6807\u7b7e\u4e0d\u5339\u914d<\/span><\/p>\n<p><span class=\"token comment\"># 2. \u6d4b\u8bd5 CoreDNS \u89e3\u6790<\/span><br \/>\nkubectl <span class=\"token builtin class-name\">exec<\/span> <span class=\"token parameter variable\">-it<\/span> <span class=\"token operator\">&lt;<\/span>pod-name<span class=\"token operator\">&gt;<\/span> <span class=\"token parameter variable\">-n<\/span> <span class=\"token operator\">&lt;<\/span>namespace<span class=\"token operator\">&gt;<\/span> &#8212; <span class=\"token function\">nslookup<\/span> kubernetes.default<br \/>\nkubectl <span class=\"token builtin class-name\">exec<\/span> <span class=\"token parameter variable\">-it<\/span> <span class=\"token operator\">&lt;<\/span>pod-name<span class=\"token operator\">&gt;<\/span> <span class=\"token parameter variable\">-n<\/span> <span class=\"token operator\">&lt;<\/span>namespace<span class=\"token operator\">&gt;<\/span> &#8212; <span class=\"token function\">nslookup<\/span> <span class=\"token operator\">&lt;<\/span>your-service-name<span class=\"token operator\">&gt;<\/span><\/p>\n<p><span class=\"token comment\"># 3. \u67e5 NetworkPolicy&#xff08;\u662f\u4e0d\u662f\u8bef\u62e6\u622a\u4e86&#xff09;<\/span><br \/>\nkubectl get networkpolicy <span class=\"token parameter variable\">-A<\/span><\/p>\n<p><span class=\"token comment\"># 4. \u67e5 kube-proxy \u548c CNI \u63d2\u4ef6\u65e5\u5fd7<\/span><br \/>\nkubectl logs <span class=\"token operator\">&lt;<\/span>kube-proxy-pod<span class=\"token operator\">&gt;<\/span> <span class=\"token parameter variable\">-n<\/span> kube-system <span class=\"token parameter variable\">&#8211;tail<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token number\">50<\/span><br \/>\nkubectl logs <span class=\"token operator\">&lt;<\/span>calico-node-pod<span class=\"token operator\">&gt;<\/span> <span class=\"token parameter variable\">-n<\/span> kube-system <span class=\"token parameter variable\">&#8211;tail<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token number\">50<\/span> <span class=\"token comment\"># \u4ee5Calico\u4e3a\u4f8b<\/span><\/p>\n<h4>2. \u5b58\u50a8\u6392\u67e5<\/h4>\n<p><span class=\"token comment\"># \u67e5\u770b PVC \u72b6\u6001&#xff0c;\u5982\u679c\u662f Pending \u8bf4\u660e\u5b58\u50a8\u4f9b\u5e94\u5931\u8d25<\/span><br \/>\nkubectl get pvc <span class=\"token parameter variable\">-A<\/span><\/p>\n<p><span class=\"token comment\"># \u67e5\u770b PV \u8be6\u7ec6\u4e8b\u4ef6<\/span><br \/>\nkubectl describe pvc <span class=\"token operator\">&lt;<\/span>pvc-name<span class=\"token operator\">&gt;<\/span> <span class=\"token parameter variable\">-n<\/span> <span class=\"token operator\">&lt;<\/span>namespace<span class=\"token operator\">&gt;<\/span><\/p>\n<p>&#x1f4a1; \u96c6\u7fa4\u7f51\u7edc\u6545\u969c\u5178\u578b\u8868\u73b0&#xff1a;<\/p>\n<ul>\n<li>Pod\u80fd\u8d77&#xff0c;\u4f46\u8de8\u8282\u70b9\u4e0d\u901a&#xff1a;CNI\u63d2\u4ef6&#xff08;\u5982Calico\/Flannel&#xff09;\u6302\u4e86&#xff0c;\u6216\u8005\u5e95\u5c42\u7269\u7406\u7f51\u7edc&#xff08;VXLAN\/BGP&#xff09;\u8def\u7531\u95ee\u9898\u3002<\/li>\n<li>\u57df\u540d\u89e3\u6790\u5931\u8d25&#xff1a;CoreDNS Pod\u5f02\u5e38&#xff0c;\u6216\u8005\u8282\u70b9\u4e0a\u7684 resolv.conf \u88ab\u7be1\u6539\u3002<\/li>\n<li>Service\u8bbf\u95ee\u4e0d\u901a&#xff1a;kube-proxy\u6ca1\u6b63\u5e38\u4e0b\u53d1iptables\/IPVS\u89c4\u5219&#xff0c;\u6216\u8005\u540e\u7aefPod\u63a2\u9488\u5168\u6302\u5bfc\u81f4Endpoints\u4e3a\u7a7a\u3002<\/li>\n<\/ul>\n<p>&#x1f6e0;\ufe0f \u7ec8\u6781\u6740\u5668&#xff1a;\u5982\u679c\u4ee5\u4e0a\u547d\u4ee4\u770b\u4e0d\u51fa\u95ee\u9898&#xff0c;\u76f4\u63a5\u4e0a tcpdump \u6293\u5305&#xff0c;\u6216\u8005\u5728\u5bb9\u5668\u91cc\u7528 curl -v \u548c telnet \u6d4b\u7aef\u53e3&#xff0c;\u80fd\u89e3\u51b399%\u7684\u7f51\u7edc\u7384\u5b66\u95ee\u9898\u3002<\/p>\n<hr \/>\n<h3>\u4e94\u3001 \u4e1a\u52a1\u6062\u590d&#xff1a;\u5206\u7ea7\u5904\u7406&#xff0c;\u6b62\u8840\u4f18\u5148<\/h3>\n<p>\u6545\u969c\u6392\u67e5\u6e05\u695a\u4e86&#xff0c;\u63a5\u4e0b\u6765\u662f\u6062\u590d\u4e1a\u52a1\u3002\u8bb0\u4f4f&#xff1a;\u80fd\u6458\u9664\u6545\u969c\u8282\u70b9\u5c31\u6458\u9664&#xff0c;\u522b\u6b7b\u78d5\u4fee\u590d&#xff0c;\u4e1a\u52a1\u4f18\u5148&#xff01;<\/p>\n<h4>1. \u53ef\u5feb\u901f\u6062\u590d\u7684\u573a\u666f<\/h4>\n<ul>\n<li>\u4ee3\u7801\/\u914d\u7f6e\u53d8\u66f4\u5f15\u8d77\u7684\u96ea\u5d29&#xff1a;\u76f4\u63a5\u56de\u6eda\u3002kubectl rollout undo deployment\/<span class=\"token operator\">&lt;<\/span>name<span class=\"token operator\">&gt;<\/span> <span class=\"token parameter variable\">-n<\/span> <span class=\"token operator\">&lt;<\/span>namespace<span class=\"token operator\">&gt;<\/span>\n<\/li>\n<li>\u5355\u8282\u70b9\u6545\u969c&#xff08;\u5982\u786c\u4ef6\u635f\u574f\u3001\u5185\u6838Panic&#xff09;&#xff1a;\u76f4\u63a5\u9694\u79bb\u5e76\u9a71\u9010Pod&#xff0c;\u8ba9\u8c03\u5ea6\u5668\u628a\u5b83\u8c03\u5ea6\u5230\u5065\u5eb7\u8282\u70b9\u3002<span class=\"token comment\"># \u6807\u8bb0\u8282\u70b9\u4e0d\u53ef\u8c03\u5ea6<\/span><br \/>\nkubectl cordon <span class=\"token operator\">&lt;<\/span>node-name<span class=\"token operator\">&gt;<\/span><br \/>\n<span class=\"token comment\"># \u9a71\u9010\u8282\u70b9\u4e0a\u7684Pod&#xff08;\u6ce8\u610f\u52a0 &#8211;ignore-daemonsets \u548c &#8211;delete-emptydir-data&#xff09;<\/span><br \/>\nkubectl drain <span class=\"token operator\">&lt;<\/span>node-name<span class=\"token operator\">&gt;<\/span> &#8211;ignore-daemonsets &#8211;delete-emptydir-data <span class=\"token parameter variable\">&#8211;force<\/span><\/p>\n<\/li>\n<li>\u5355\u70b9\u8d44\u6e90\u8017\u5c3d&#xff1a;\u4e34\u65f6\u6269\u5bb9\u8282\u70b9&#xff0c;\u6216\u8005\u8c03\u6574HPA\u3002<\/li>\n<\/ul>\n<h4>2. \u9700\u8c28\u614e\u64cd\u4f5c\u7684\u573a\u666f<\/h4>\n<ul>\n<li>etcd \u6570\u636e\u635f\u574f\/\u4e22\u5931&#xff1a;\n<ul>\n<li>\u524d\u63d0&#xff1a;\u5fc5\u987b\u6709\u6700\u8fd1\u7684etcd\u5907\u4efd&#xff01;<\/li>\n<li>\u98ce\u9669&#xff1a;\u6062\u590detcd\u4f1a\u4e22\u5931\u5907\u4efd\u70b9\u4e4b\u540e\u6240\u6709\u7684\u96c6\u7fa4\u72b6\u6001\u53d8\u66f4&#xff08;\u6bd4\u5982\u4f60\u521a\u5efa\u7684Pod\u3001\u521a\u6539\u7684\u914d\u7f6e\u5168\u6ca1\u4e86&#xff09;\u3002<\/li>\n<li>\u64cd\u4f5c&#xff1a;\u505c\u6389apiserver&#xff0c;\u4f7f\u7528 etcdctl snapshot restore \u6062\u590d\u6570\u636e&#xff0c;\u91cd\u542fetcd\u548capiserver\u3002\u4e0d\u5230\u4e07\u4e0d\u5f97\u5df2&#xff0c;\u4e0d\u8981\u8d70\u8fd9\u4e00\u6b65\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u8282\u70b9\u5e95\u5c42OS\/\u8fd0\u884c\u65f6\u5f7b\u5e95\u5d29\u6e83&#xff1a;\u4e0d\u8981\u5c1d\u8bd5\u53bb\u91cd\u542fkubelet\u6216containerd&#xff0c;\u76f4\u63a5\u8d70\u4e0a\u9762\u7684 cordon &#043; drain \u6d41\u7a0b&#xff0c;\u7136\u540e\u8ba9\u5e95\u5c42IaaS\u56e2\u961f\u53bb\u91cd\u88c5\u7cfb\u7edf\u6216\u91cd\u5efa\u8282\u70b9\u3002<\/li>\n<\/ul>\n<hr \/>\n<h3>\u516d\u3001 \u6839\u56e0\u5206\u6790&#xff1a;\u627e\u80cc\u9505\u4fa0<\/h3>\n<p>\u4e1a\u52a1\u6062\u590d\u4e86&#xff0c;\u590d\u76d8\u4e0d\u80fd\u5c11\u3002\u5e38\u89c1\u6545\u969c\u8bf1\u56e0\u53ca\u6392\u67e5\u8def\u5f84&#xff1a;<\/p>\n<li>\u8d44\u6e90\u8017\u5c3d&#xff08;\u5185\u5b58\/\u78c1\u76d8\/inode&#xff09;&#xff1a;\u770bPrometheus\u76d1\u63a7&#xff0c;\u627e\u6545\u969c\u524d5\u5206\u949f\u54ea\u4e2a\u6307\u6807\u7a81\u53d8\u3002\u67e5\u5ba1\u8ba1\u65e5\u5fd7\u770b\u662f\u54ea\u4e2a\u547d\u540d\u7a7a\u95f4\u7684Pod\u5728\u75af\u72c2\u5199\u65e5\u5fd7\u3002<\/li>\n<li>\u914d\u7f6e\u53d8\u66f4\u8bef\u64cd\u4f5c&#xff1a;\u67e5 apiserver \u7684 audit log&#xff08;\u5ba1\u8ba1\u65e5\u5fd7&#xff09;&#xff0c;\u770b\u6545\u969c\u65f6\u95f4\u70b9\u8c01\u6267\u884c\u4e86 kubectl apply \u6216 kubectl delete\u3002<\/li>\n<li>\u8bc1\u4e66\u8fc7\u671f&#xff1a;\u770bkubelet\u65e5\u5fd7&#xff0c;\u5982\u679c\u6709 x509: certificate has expired \u5b57\u6837&#xff0c;\u5c31\u662f\u5b83\u4e86\u3002<\/li>\n<li>\u7f51\u7edc\u7b56\u7565\u8bef\u5220\/\u8bef\u914d&#xff1a;\u67e5 NetworkPolicy \u7684\u53d8\u66f4\u8bb0\u5f55\u3002<\/li>\n<li>\u955c\u50cf\u62c9\u53d6\u5931\u8d25&#xff1a;\u67e5\u8282\u70b9\u4e0a\u7684 crictl \u65e5\u5fd7\u6216 \/var\/log\/messages&#xff0c;\u770b\u662f\u4e0d\u662f Harbor \u6302\u4e86\u6216\u8005\u7f51\u7edc\u6296\u52a8\u3002<\/li>\n<p>\u600e\u4e48\u627e\u6839\u56e0&#xff1f;<br \/>\n\u4e0d\u8981\u62cd\u8111\u888b&#xff01;\u987a\u7740 kubectl get events \u7684\u65f6\u95f4\u7ebf&#xff0c;\u7ed3\u5408 Grafana \u76d1\u63a7\u5927\u76d8\u7684\u6307\u6807\u7a81\u53d8&#xff0c;\u518d\u8f85\u4ee5 apiserver \u5ba1\u8ba1\u65e5\u5fd7&#xff0c;\u5f62\u6210\u8bc1\u636e\u94fe\u3002<\/p>\n<hr \/>\n<h3>\u4e03\u3001 \u4e8b\u540e\u52a0\u56fa&#xff1a;\u64e6\u5c41\u80a1\u7684\u827a\u672f<\/h3>\n<p>\u6545\u969c\u5904\u7406\u5b8c&#xff0c;\u5982\u679c\u4e0d\u505a\u52a0\u56fa&#xff0c;\u4e0b\u6b21\u8fd8\u4f1a\u7ffb\u8f66\u3002<\/p>\n<li>\u8d44\u6e90\u89c4\u8303&#xff1a;\u5f3a\u5236\u8981\u6c42\u6240\u6709Deployment\u5fc5\u987b\u914d\u7f6e requests \u548c limits&#xff0c;\u901a\u8fc7 OPA\/Gatekeeper \u6216 Kyverno \u505a\u51c6\u5165\u63a7\u5236\u3002<\/li>\n<li>\u8282\u70b9\u8d44\u6e90\u9884\u7559&#xff1a;\u914d\u7f6e kubelet \u7684 &#8211;kube-reserved \u548c &#8211;system-reserved&#xff0c;\u7ed9\u7cfb\u7edf\u7ec4\u4ef6\u548cOS\u7559\u8db3\u5185\u5b58\u548cCPU&#xff0c;\u9632\u6b62\u88ab\u4e1a\u52a1Pod\u6324\u6b7b\u3002<\/li>\n<li>Pod\u4f18\u5148\u7ea7\u4e0e\u62a2\u5360&#xff1a;\u914d\u7f6e PriorityClass&#xff0c;\u786e\u4fdd\u6838\u5fc3\u4ea4\u6613\u94fe\u8def\u7684Pod\u5728\u8d44\u6e90\u4e0d\u8db3\u65f6\u80fd\u62a2\u5360\u975e\u6838\u5fc3\u4efb\u52a1\u7684\u8d44\u6e90\u3002<\/li>\n<li>\u76d1\u63a7\u544a\u8b66\u8865\u9f50&#xff1a;\u628a\u78c1\u76d8\u4f7f\u7528\u7387\u3001inode\u4f7f\u7528\u7387\u3001\u8bc1\u4e66\u8fc7\u671f\u65f6\u95f4\u3001etcd leader\u53d8\u66f4\u7b49\u6307\u6807\u52a0\u5165\u544a\u8b66&#xff0c;\u9608\u503c\u8c03\u5408\u7406\u3002<\/li>\n<li>etcd \u5907\u4efd\u4e0e\u6f14\u7ec3&#xff1a;\u5199\u4e2a\u5b9a\u65f6\u811a\u672c\u5907\u4efdetcd\u5230OSS\/S3\u3002\u6700\u91cd\u8981\u7684\u662f&#xff1a;\u6bcf\u4e2a\u5b63\u5ea6\u5fc5\u987b\u505a\u4e00\u6b21\u6062\u590d\u6f14\u7ec3&#xff01; \u5907\u4efd\u4e0d\u7b49\u4e8e\u80fd\u6062\u590d\u3002<\/li>\n<li>\u53d8\u66f4\u5ba1\u6279\u4e0e\u7070\u5ea6&#xff1a;\u751f\u4ea7\u73af\u5883\u4e25\u7981\u76f4\u63a5 kubectl apply&#xff0c;\u5fc5\u987b\u8d70CI\/CD\u6d41\u6c34\u7ebf&#xff0c;\u4e14\u6838\u5fc3\u670d\u52a1\u5fc5\u987b\u914d\u7f6e\u6eda\u52a8\u66f4\u65b0\u7b56\u7565&#xff08;maxSurge \u548c maxUnavailable&#xff09;\u3002<\/li>\n<hr \/>\n<h3>\u516b\u3001 \u603b\u7ed3&#xff1a;\u9ad8\u9891\u8e29\u5751\u8840\u6cea\u6559\u8bad<\/h3>\n<p>\u6700\u540e&#xff0c;\u603b\u7ed3\u51e0\u4e2a\u6211\u89c1\u8fc7\u65e0\u6570\u4eba\u8e29\u8fc7\u7684\u5751&#xff0c;\u5927\u5bb6\u5f15\u4ee5\u4e3a\u6212&#xff1a;<\/p>\n<li>\u76f2\u76ee\u91cd\u542f\u8282\u70b9\u5bfc\u81f4\u8c03\u5ea6\u96ea\u5d29&#xff1a;\u8282\u70b9\u53ea\u662f\u7f51\u7edc\u6296\u52a8\u53d8\u6210NotReady&#xff0c;\u4f60\u4e00\u53bb\u91cd\u542f&#xff0c;\u4e0a\u9762\u7684Pod\u5168\u6389\u7ebf&#xff0c;\u8c03\u5ea6\u5668\u77ac\u95f4\u628a\u6d41\u91cf\u6253\u5230\u5176\u4ed6\u8282\u70b9&#xff0c;\u76f4\u63a5\u628a\u5176\u4ed6\u8282\u70b9\u4e5f\u538b\u57ae\u3002<\/li>\n<li>\u4e0d\u770bEvents\u5c31\u731c\u539f\u56e0&#xff1a;\u4e0a\u6765\u5c31\u91cd\u542fPod&#xff0c;\u7ed3\u679c\u53d1\u73b0\u662f ConfigMap \u6ca1\u66f4\u65b0&#xff0c;\u91cd\u542f\u4e00\u4e07\u6b21\u4e5f\u6ca1\u7528\u3002<\/li>\n<li>\u63a2\u9488\u914d\u7f6e\u8fc7\u6fc0\u5f15\u53d1\u5065\u5eb7\u68c0\u67e5\u98ce\u66b4&#xff1a;livenessProbe \u7684 timeoutSeconds \u8bbe\u5f97\u592a\u77ed&#xff0c;\u6216\u8005\u63a5\u53e3\u672c\u8eab\u54cd\u5e94\u6162&#xff0c;\u5bfc\u81f4K8s\u75af\u72c2\u6740Pod&#xff0c;\u628a\u6d3b\u7740\u7684\u4e1a\u52a1\u4e5f\u641e\u6b7b\u4e86\u3002\u5efa\u8bae&#xff1a;\u6838\u5fc3\u670d\u52a1\u614e\u7528 livenessProbe&#xff0c;\u591a\u7528 readinessProbe\u3002<\/li>\n<li>\u78c1\u76d8\u6ee1\u5bfc\u81f4kubelet\u505c\u6446&#xff1a;\u53ea\u76d1\u63a7\u4e86\u78c1\u76d8\u5bb9\u91cf&#xff0c;\u6ca1\u76d1\u63a7 inode\u3002\u7ed3\u679c\u5c0f\u6587\u4ef6\u592a\u591a\u628a inode \u6491\u7206\u4e86&#xff0c;\u78c1\u76d8\u8fd8\u6709\u7a7a\u95f4\u4f46 kubelet \u76f4\u63a5\u7f62\u5de5\u3002<\/li>\n<li>etcd\u5907\u4efd\u4ece\u672a\u6f14\u7ec3\u8fc7\u6062\u590d&#xff1a;\u5e73\u65f6\u5907\u4efd\u8dd1\u5f97\u6b22&#xff0c;\u771f\u51fa\u4e8b\u4e86\u4e00\u6062\u590d&#xff0c;\u53d1\u73b0\u5907\u4efd\u811a\u672c\u53ea\u5907\u4efd\u4e86\u5143\u6570\u636e\u6ca1\u5907\u4efd\u6570\u636e&#xff0c;\u6216\u8005\u5bc6\u7801\u4e22\u4e86&#xff0c;\u76f4\u63a5\u539f\u5730\u53bb\u4e16\u3002<\/li>\n<hr \/>\n<p>K8s \u8fd0\u7ef4\u5c31\u662f\u4e00\u573a\u4fee\u884c&#xff0c;\u6545\u969c\u4e0d\u53ef\u6015&#xff0c;\u53ef\u6015\u7684\u662f\u6ca1\u6709\u9884\u6848\u548c\u590d\u76d8\u3002\u5e0c\u671b\u8fd9\u7bc7\u5b9e\u6218\u590d\u76d8\u80fd\u5e2e\u5927\u5bb6\u5728\u9047\u5230\u96c6\u7fa4\u7ea7\u6545\u969c\u65f6&#xff0c;\u505a\u5230\u5fc3\u4e2d\u6709\u6570&#xff0c;\u624b\u4e2d\u6709\u5251\u3002<\/p>\n<p>\u5982\u679c\u4f60\u89c9\u5f97\u8fd9\u7bc7\u6587\u7ae0\u5bf9\u4f60\u6709\u5e2e\u52a9&#xff0c;\u6216\u8005\u4f60\u4e5f\u5728\u751f\u4ea7\u73af\u5883\u8e29\u8fc7\u7c7b\u4f3c\u7684\u5751&#xff0c;\u6b22\u8fce\u5728\u8bc4\u8bba\u533a\u4ea4\u6d41\u4f60\u7684\u201c\u8840\u6cea\u53f2\u201d&#xff01;<\/p>\n<p>\u89c9\u5f97\u6709\u7528&#xff0c;\u522b\u5fd8\u4e86\u70b9\u4e2a\u8d5e\u3001\u6536\u85cf\u4e00\u4e0b&#xff0c;\u4ee5\u5907\u4e0d\u65f6\u4e4b\u9700&#xff08;\u6bd5\u7adf\u6392\u67e5\u6545\u969c\u65f6&#xff0c;\u4f60\u53ef\u80fd\u53ea\u60f3\u76f4\u63a5\u590d\u5236\u547d\u4ee4&#xff09;&#xff01;\u6211\u4eec\u4e0b\u671f\u89c1&#xff01;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5144\u5f1f\u4eec&#xff0c;\u4eca\u5929\u590d\u76d8\u4e00\u4e2aK8s\u751f\u4ea7\u96c6\u7fa4\u7684\u4e25\u91cd\u6545\u969c\u3002<br \/>\n\u6545\u969c\u73b0\u8c61\u975e\u5e38\u5178\u578b\u4e14\u81f4\u547d&#xff1a;\u96c6\u7fa4\u591a\u4e2a\u8282\u70b9\u72b6\u6001\u7a81\u53d8\u4e3a NotReady&#xff0c;\u6838\u5fc3\u4e1a\u52a1Pod\u5927\u9762\u79ef\u9677\u5165 CrashLoopBackOff&#xff0c;Service\u5c42\u76f4\u63a5\u7206\u51fa\u5927\u91cf502\u9519\u8bef&#xff0c;\u6574\u4e2a\u96c6\u7fa4\u5904\u4e8e\u534a\u762b\u75ea\u72b6\u6001&#xff0c;\u4e1a\u52a1\u5b8c\u5168\u4e0d\u53ef\u7528\u3002<br \/>\n\u9762\u5bf9\u8fd9\u79cd\u96c6\u7fa4\u7ea7\u6545\u969c&#xff0c;\u6700\u8003\u9a8cSRE\u548c\u8fd0\u7ef4\u7684\u5fc3\u7406\u7d20\u8d28\u3002\u4eca\u5929\u5c31\u628a\u8fd9\u6b21\u771f\u5b9e\u6545\u969c\u7684\u6392\u67e5\u548c\u5904\u7f6e\u8fc7\u7a0b\u62c6\u89e3\u4e00\u4e0b&#xff0c;\u5168\u662f\u73b0\u573a\u5b9e\u64cd\u7684\u8840<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[120,763,44],"topic":[],"class_list":["post-98150","post","type-post","status-publish","format-standard","hentry","category-server","tag-kubernetes","tag-763","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>K8s\u751f\u4ea7\u96c6\u7fa4\u6545\u969c\u5e94\u6025\u5904\u7f6e\u5b9e\u6218\uff1a\u8282\u70b9NotReady\u3001Pod\u96ea\u5d29\u4e0e\u8d44\u6e90\u8017\u5c3d\u7684\u73b0\u573a\u6392\u67e5\u590d\u76d8 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/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.wsisp.com\/helps\/98150.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"K8s\u751f\u4ea7\u96c6\u7fa4\u6545\u969c\u5e94\u6025\u5904\u7f6e\u5b9e\u6218\uff1a\u8282\u70b9NotReady\u3001Pod\u96ea\u5d29\u4e0e\u8d44\u6e90\u8017\u5c3d\u7684\u73b0\u573a\u6392\u67e5\u590d\u76d8 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u5144\u5f1f\u4eec&#xff0c;\u4eca\u5929\u590d\u76d8\u4e00\u4e2aK8s\u751f\u4ea7\u96c6\u7fa4\u7684\u4e25\u91cd\u6545\u969c\u3002 \u6545\u969c\u73b0\u8c61\u975e\u5e38\u5178\u578b\u4e14\u81f4\u547d&#xff1a;\u96c6\u7fa4\u591a\u4e2a\u8282\u70b9\u72b6\u6001\u7a81\u53d8\u4e3a NotReady&#xff0c;\u6838\u5fc3\u4e1a\u52a1Pod\u5927\u9762\u79ef\u9677\u5165 CrashLoopBackOff&#xff0c;Service\u5c42\u76f4\u63a5\u7206\u51fa\u5927\u91cf502\u9519\u8bef&#xff0c;\u6574\u4e2a\u96c6\u7fa4\u5904\u4e8e\u534a\u762b\u75ea\u72b6\u6001&#xff0c;\u4e1a\u52a1\u5b8c\u5168\u4e0d\u53ef\u7528\u3002 \u9762\u5bf9\u8fd9\u79cd\u96c6\u7fa4\u7ea7\u6545\u969c&#xff0c;\u6700\u8003\u9a8cSRE\u548c\u8fd0\u7ef4\u7684\u5fc3\u7406\u7d20\u8d28\u3002\u4eca\u5929\u5c31\u628a\u8fd9\u6b21\u771f\u5b9e\u6545\u969c\u7684\u6392\u67e5\u548c\u5904\u7f6e\u8fc7\u7a0b\u62c6\u89e3\u4e00\u4e0b&#xff0c;\u5168\u662f\u73b0\u573a\u5b9e\u64cd\u7684\u8840\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/98150.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-08-31T00:56:48+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/98150.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/98150.html\",\"name\":\"K8s\u751f\u4ea7\u96c6\u7fa4\u6545\u969c\u5e94\u6025\u5904\u7f6e\u5b9e\u6218\uff1a\u8282\u70b9NotReady\u3001Pod\u96ea\u5d29\u4e0e\u8d44\u6e90\u8017\u5c3d\u7684\u73b0\u573a\u6392\u67e5\u590d\u76d8 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-08-31T00:56:48+00:00\",\"dateModified\":\"2026-08-31T00:56:48+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/98150.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/98150.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/98150.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"K8s\u751f\u4ea7\u96c6\u7fa4\u6545\u969c\u5e94\u6025\u5904\u7f6e\u5b9e\u6218\uff1a\u8282\u70b9NotReady\u3001Pod\u96ea\u5d29\u4e0e\u8d44\u6e90\u8017\u5c3d\u7684\u73b0\u573a\u6392\u67e5\u590d\u76d8\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"K8s\u751f\u4ea7\u96c6\u7fa4\u6545\u969c\u5e94\u6025\u5904\u7f6e\u5b9e\u6218\uff1a\u8282\u70b9NotReady\u3001Pod\u96ea\u5d29\u4e0e\u8d44\u6e90\u8017\u5c3d\u7684\u73b0\u573a\u6392\u67e5\u590d\u76d8 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","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.wsisp.com\/helps\/98150.html","og_locale":"zh_CN","og_type":"article","og_title":"K8s\u751f\u4ea7\u96c6\u7fa4\u6545\u969c\u5e94\u6025\u5904\u7f6e\u5b9e\u6218\uff1a\u8282\u70b9NotReady\u3001Pod\u96ea\u5d29\u4e0e\u8d44\u6e90\u8017\u5c3d\u7684\u73b0\u573a\u6392\u67e5\u590d\u76d8 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u5144\u5f1f\u4eec&#xff0c;\u4eca\u5929\u590d\u76d8\u4e00\u4e2aK8s\u751f\u4ea7\u96c6\u7fa4\u7684\u4e25\u91cd\u6545\u969c\u3002 \u6545\u969c\u73b0\u8c61\u975e\u5e38\u5178\u578b\u4e14\u81f4\u547d&#xff1a;\u96c6\u7fa4\u591a\u4e2a\u8282\u70b9\u72b6\u6001\u7a81\u53d8\u4e3a NotReady&#xff0c;\u6838\u5fc3\u4e1a\u52a1Pod\u5927\u9762\u79ef\u9677\u5165 CrashLoopBackOff&#xff0c;Service\u5c42\u76f4\u63a5\u7206\u51fa\u5927\u91cf502\u9519\u8bef&#xff0c;\u6574\u4e2a\u96c6\u7fa4\u5904\u4e8e\u534a\u762b\u75ea\u72b6\u6001&#xff0c;\u4e1a\u52a1\u5b8c\u5168\u4e0d\u53ef\u7528\u3002 \u9762\u5bf9\u8fd9\u79cd\u96c6\u7fa4\u7ea7\u6545\u969c&#xff0c;\u6700\u8003\u9a8cSRE\u548c\u8fd0\u7ef4\u7684\u5fc3\u7406\u7d20\u8d28\u3002\u4eca\u5929\u5c31\u628a\u8fd9\u6b21\u771f\u5b9e\u6545\u969c\u7684\u6392\u67e5\u548c\u5904\u7f6e\u8fc7\u7a0b\u62c6\u89e3\u4e00\u4e0b&#xff0c;\u5168\u662f\u73b0\u573a\u5b9e\u64cd\u7684\u8840","og_url":"https:\/\/www.wsisp.com\/helps\/98150.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-08-31T00:56:48+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/98150.html","url":"https:\/\/www.wsisp.com\/helps\/98150.html","name":"K8s\u751f\u4ea7\u96c6\u7fa4\u6545\u969c\u5e94\u6025\u5904\u7f6e\u5b9e\u6218\uff1a\u8282\u70b9NotReady\u3001Pod\u96ea\u5d29\u4e0e\u8d44\u6e90\u8017\u5c3d\u7684\u73b0\u573a\u6392\u67e5\u590d\u76d8 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-08-31T00:56:48+00:00","dateModified":"2026-08-31T00:56:48+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/98150.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/98150.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/98150.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"K8s\u751f\u4ea7\u96c6\u7fa4\u6545\u969c\u5e94\u6025\u5904\u7f6e\u5b9e\u6218\uff1a\u8282\u70b9NotReady\u3001Pod\u96ea\u5d29\u4e0e\u8d44\u6e90\u8017\u5c3d\u7684\u73b0\u573a\u6392\u67e5\u590d\u76d8"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/98150","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=98150"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/98150\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=98150"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=98150"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=98150"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=98150"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}