{"id":1915,"date":"2020-07-19T19:04:58","date_gmt":"2020-07-19T11:04:58","guid":{"rendered":"http:\/\/39.97.231.10\/?p=1915"},"modified":"2020-07-19T19:04:58","modified_gmt":"2020-07-19T11:04:58","slug":"kubernetes-%e5%ba%94%e7%94%a8%e6%95%85%e9%9a%9c%e6%8e%92%e6%9f%a5","status":"publish","type":"post","link":"http:\/\/www.weijing.co\/?p=1915","title":{"rendered":"Kubernetes \u5e94\u7528\u6545\u969c\u6392\u67e5"},"content":{"rendered":"<h3 data-mpa-powered-by=\\\"yiban.io\\\"><strong>Debugging Pods<\/strong><\/h3>\n<h3><\/h3>\n<h3>\u8c03\u8bd5pod\u7684\u7b2c\u4e00\u6b65\u662f\u770b\u4e00\u4e0b\u8fd9\u4e2apod\u7684\u4fe1\u606f\uff0c\u7528\u5982\u4e0b\u547d\u4ee4\u67e5\u770b\u4e00\u4e0bpod\u7684\u5f53\u524d\u72b6\u6001\u548c\u6700\u8fd1\u7684\u4e8b\u4ef6\uff1a<\/h3>\n<pre class=\\\"code-snippet__js code-snippet code-snippet_nowrap\\\" data-lang=\\\"shell\\\"><code><span class=\\\"code-snippet_outer\\\">$ kubectl describe pods ${POD_NAME}<\/span><\/code><\/pre>\n<p>\u67e5\u770b\u4e00\u4e0bpod\u4e2d\u7684\u5bb9\u5668\u6240\u5904\u7684\u72b6\u6001\u3002\u8fd9\u4e9b\u5bb9\u5668\u7684\u72b6\u6001\u90fd\u662fRunning\u5417\uff1f\u6700\u8fd1\u6709\u6ca1\u6709\u91cd\u542f\u8fc7\uff1f<br \/>\n\u540e\u9762\u7684\u8c03\u8bd5\u90fd\u662f\u8981\u4f9d\u9760pods\u7684\u72b6\u6001\u7684\u3002<\/p>\n<h4><strong>pod\u505c\u7559\u5728pending\u72b6\u6001<\/strong><\/h4>\n<h4><\/h4>\n<p>\u5982\u679c\u4e00\u4e2apod\u5361\u5728Pending\u72b6\u6001\uff0c\u5219\u8868\u793a\u8fd9\u4e2apod\u6ca1\u6709\u88ab\u8c03\u5ea6\u5230\u4e00\u4e2a\u8282\u70b9\u4e0a\u3002\u901a\u5e38\u8fd9\u662f\u56e0\u4e3a\u8d44\u6e90\u4e0d\u8db3\u5f15\u8d77\u7684\u3002\u6572\u4e00\u4e0bkubectl describe &#8230;\u8fd9\u4e2a\u547d\u4ee4\uff0c\u8f93\u51fa\u7684\u4fe1\u606f\u91cc\u9762\u5e94\u8be5\u6709\u663e\u793a\u4e3a\u4ec0\u4e48\u6ca1\u88ab\u8c03\u5ea6\u7684\u539f\u56e0\u3002\u5e38\u89c1\u539f\u56e0\u5982\u4e0b\uff1a<\/p>\n<ul class=\\\" list-paddingleft-2\\\">\n<li>\u8d44\u6e90\u4e0d\u8db3: \u4f60\u53ef\u80fd\u8017\u5c3d\u4e86\u96c6\u7fa4\u4e0a\u6240\u6709\u7684CPU\u548c\u5185\u5b58\uff0c\u6b64\u65f6\uff0c\u4f60\u9700\u8981\u5220\u9664pods\uff0c\u8c03\u6574\u8d44\u6e90\u8bf7\u6c42\uff0c\u6216\u8005\u589e\u52a0\u8282\u70b9\u3002<\/li>\n<li>\u4f7f\u7528\u4e86hostPort: \u5982\u679c\u7ed1\u5b9a\u4e00\u4e2apod\u5230hostPort\uff0c\u90a3\u4e48\u80fd\u521b\u5efa\u7684pod\u4e2a\u6570\u5c31\u6709\u9650\u4e86\u3002\u591a\u6570\u60c5\u51b5\u4e0b\uff0chostPort\u662f\u975e\u5fc5\u8981\u7684\uff0c\u800c\u5e94\u8be5\u91c7\u7528\u670d\u52a1\u6765\u66b4\u9732pod\u3002\u5982\u679c\u786e\u5b9e\u9700\u8981\u4f7f\u7528hostPort\uff0c\u90a3\u4e48\u80fd\u521b\u5efa\u7684pod\u7684\u6570\u91cf\u5c31\u662f\u8282\u70b9\u7684\u4e2a\u6570\u3002<\/li>\n<\/ul>\n<h4><\/h4>\n<h4><strong>pod\u505c\u7559\u5728waiting\u72b6\u6001<\/strong><\/h4>\n<h4><\/h4>\n<p>\u5982\u679c\u4e00\u4e2apod\u5361\u5728Waiting\u72b6\u6001\uff0c\u5219\u8868\u793a\u8fd9\u4e2apod\u5df2\u7ecf\u8c03\u8bd5\u5230\u8282\u70b9\u4e0a\uff0c\u4f46\u662f\u6ca1\u6709\u8fd0\u884c\u8d77\u6765\u3002\u518d\u6b21\u6572\u4e00\u4e0bkubectl describe &#8230;\u8fd9\u4e2a\u547d\u4ee4\u6765\u67e5\u770b\u76f8\u5173\u4fe1\u606f\u3002\u6700\u5e38\u89c1\u7684\u539f\u56e0\u662f\u62c9\u53d6\u955c\u50cf\u5931\u8d25\u3002\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u4e09\u79cd\u65b9\u5f0f\u6765\u68c0\u67e5\uff1a<\/p>\n<ul class=\\\" list-paddingleft-2\\\">\n<li>\u4f7f\u7528\u7684\u955c\u50cf\u540d\u5b57\u6b63\u786e\u5417\uff1f<\/li>\n<li>\u955c\u50cf\u4ed3\u5e93\u91cc\u6709\u6ca1\u6709\u8fd9\u4e2a\u955c\u50cf\uff1f<\/li>\n<li>\u7528docker pull &lt;image&gt;\u547d\u4ee4\u624b\u52a8\u62c9\u4e0b\u955c\u50cf\u8bd5\u8bd5\u3002<\/li>\n<\/ul>\n<h4><\/h4>\n<h4><strong>pod\u5904\u4e8ecrashing\u72b6\u6001\u6216\u8005unhealthy<\/strong><\/h4>\n<h4><\/h4>\n<h4>\u9996\u5148\uff0c\u770b\u4e00\u4e0b\u5bb9\u5668\u7684log:<\/h4>\n<pre class=\\\"code-snippet__js code-snippet code-snippet_nowrap\\\" data-lang=\\\"shell\\\"><code><span class=\\\"code-snippet_outer\\\">$\u00a0kubectl\u00a0logs\u00a0${POD_NAME}\u00a0${CONTAINER_NAME}<\/span><\/code><\/pre>\n<p>\u5982\u679c\u5bb9\u5668\u662fcrashed\u7684\uff0c\u7528\u5982\u4e0b\u547d\u4ee4\u53ef\u4ee5\u770b\u5230crash\u7684log:<\/p>\n<pre class=\\\"code-snippet__js code-snippet code-snippet_nowrap\\\" data-lang=\\\"shell\\\"><code><span class=\\\"code-snippet_outer\\\">$\u00a0kubectl\u00a0logs\u00a0--previous\u00a0${POD_NAME}\u00a0${CONTAINER_NAME}<\/span><\/code><\/pre>\n<p>\u6216\u8005\uff0c\u7528exec\u5728\u5bb9\u5668\u5185\u8fd0\u884c\u4e00\u4e9b\u547d\u4ee4\uff1a<\/p>\n<pre class=\\\"code-snippet__js code-snippet code-snippet_nowrap\\\" data-lang=\\\"shell\\\"><code><span class=\\\"code-snippet_outer\\\">$\u00a0kubectl\u00a0exec\u00a0${POD_NAME}\u00a0-c\u00a0${CONTAINER_NAME}\u00a0--\u00a0${CMD}\u00a0${ARG1}\u00a0${ARG2}\u00a0...\u00a0${ARGN}<\/span><\/code><\/pre>\n<p>\u6ce8\u610f\uff1a\u5f53\u4e00\u4e2apod\u5185\u53ea\u6709\u4e00\u4e2a\u5bb9\u5668\u65f6\uff0c\u53ef\u4ee5\u4e0d\u5e26\u53c2\u6570-c ${CONTAINER_NAME}\u3002<br \/>\n\u4f8b\u5982\uff0c\u540d\u4e3aCassandra\u7684pod\uff0c\u5904\u4e8erunning\u6001\uff0c\u8981\u67e5\u770b\u5b83\u7684log\uff0c\u53ef\u8fd0\u884c\u5982\u4e0b\u547d\u4ee4\uff1a<\/p>\n<pre class=\\\"code-snippet__js code-snippet code-snippet_nowrap\\\" data-lang=\\\"shell\\\"><code><span class=\\\"code-snippet_outer\\\">$\u00a0kubectl\u00a0exec\u00a0cassandra\u00a0--\u00a0cat\u00a0\/var\/log\/cassandra\/system.log<\/span><\/code><\/pre>\n<p>\u5982\u679c\u4ee5\u4e0a\u65b9\u6cd5\u90fd\u4e0d\u8d77\u4f5c\u7528\uff0c\u627e\u5230\u8fd9\u4e2apod\u6240\u5728\u7684\u8282\u70b9\u5e76\u7528SSH\u767b\u5f55\u8fdb\u53bb\u505a\u8fdb\u4e00\u6b65\u7684\u5206\u6790\u3002\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u662f\u4e0d\u9700\u8981\u5728Kubernetes API\u4e2d\u518d\u7ed9\u51fa\u53e6\u5916\u7684\u5de5\u5177\u7684\u3002\u56e0\u6b64\uff0c\u5982\u679c\u4f60\u53d1\u73b0\u9700\u8981ssh\u8fdb\u4e00\u4e2a\u4e3b\u673a\u6765\u5206\u6790\u95ee\u9898\u65f6\uff0c\u8bf7\u5728GitHub\u4e0a\u63d0\u4e00\u4e2a\u7279\u6027\u8bf7\u6c42\uff0c\u63cf\u8ff0\u4e00\u4e2a\u4f60\u7684\u573a\u666f\u5e76\u8bf4\u660e\u4e3a\u4ec0\u4e48\u5df2\u7ecf\u63d0\u4f9b\u7684\u5de5\u5177\u4e0d\u80fd\u6ee1\u8db3\u9700\u6c42\u3002<\/p>\n<h4><\/h4>\n<h4><strong>pod\u5904\u4e8erunning\u6001\uff0c\u4f46\u662f\u6ca1\u6709\u6b63\u5e38\u5de5\u4f5c<\/strong><\/h4>\n<h4><\/h4>\n<p>\u5982\u679c\u521b\u5efa\u7684pod\u4e0d\u7b26\u5408\u9884\u671f\uff0c\u90a3\u4e48\u521b\u5efapod\u7684\u63cf\u8ff0\u6587\u4ef6\u5e94\u8be5\u662f\u5b58\u5728\u67d0\u79cd\u9519\u8bef\u7684\uff0c\u5e76\u4e14\u8fd9\u4e2a\u9519\u8bef\u5728\u521b\u5efapod\u65f6\u88ab\u5ffd\u7565\u6389\u3002\u901a\u5e38pod\u7684\u5b9a\u4e49\u4e2d\uff0c\u7ae0\u8282\u88ab\u9519\u8bef\u7684\u5d4c\u5957\uff0c\u6216\u8005\u4e00\u4e2a\u5b57\u6bb5\u540d\u5b57\u88ab\u5199\u9519\uff0c\u90fd\u53ef\u80fd\u4f1a\u5f15\u8d77\u88ab\u5ffd\u7565\u6389\u3002\u4f8b\u5982\uff0c\u5e0c\u671b\u5728pod\u4e2d\u7528\u547d\u4ee4\u884c\u6267\u884c\u67d0\u4e2a\u547d\u4ee4\uff0c\u4f46\u662f\u5c06command\u5199\u6210commnd\uff0cpod\u867d\u7136\u53ef\u4ee5\u521b\u5efa\uff0c\u4f46\u547d\u4ee4\u5e76\u6ca1\u6709\u6267\u884c\u3002<br \/>\n\u5982\u4f55\u67e5\u51fa\u6765\u54ea\u91cc\u51fa\u9519\uff1f\u9996\u5148\uff0c\u5220\u6389\u8fd9\u4e2apod\u518d\u91cd\u65b0\u521b\u5efa\u4e00\u4e2a\uff0c\u91cd\u521b\u65f6\uff0c\u50cf\u4e0b\u9762\u8fd9\u6837\u5e26\u7740&#8211;validate\u8fd9\u4e2a\u53c2\u6570\uff1akubectl create &#8211;validate -f mypod.yaml\uff0ccommand\u5199\u6210commnd\u7684\u62fc\u5199\u9519\u8bef\u5c31\u4f1a\u6253\u5370\u51fa\u6765\u4e86\u3002<\/p>\n<pre class=\\\"code-snippet__js code-snippet code-snippet_nowrap\\\" data-lang=\\\"kotlin\\\"><code><span class=\\\"code-snippet_outer\\\">I0805 10:43:25.129850   46757 schema.go:126] unknown field: commnd<\/span><\/code><code><span class=\\\"code-snippet_outer\\\">I0805\u00a010:43:25.129973\u00a0\u00a0\u00a046757\u00a0schema.go:129]\u00a0this\u00a0may\u00a0be\u00a0a\u00a0false\u00a0alarm,\u00a0see\u00a0https:\/\/github.com\/kubernetes\/kubernetes\/issues\/6842 <\/span><\/code><code><span class=\\\"code-snippet_outer\\\">pods\/mypod<\/span><\/code><\/pre>\n<p>\u5982\u679c\u4e0a\u9762\u65b9\u6cd5\u6ca1\u6709\u770b\u5230\u76f8\u5173\u5f02\u5e38\u7684\u4fe1\u606f\uff0c\u90a3\u4e48\u63a5\u4e0b\u6765\u5c31\u8981\u9a8c\u8bc1\u4eceapiserver\u83b7\u53d6\u5230\u7684pod\u662f\u5426\u4e0e\u671f\u671b\u7684\u4e00\u81f4\uff0c\u6bd4\u5982\u521b\u5efaPod\u7684yaml\u6587\u4ef6\u662fmypod.yaml\u3002<br \/>\n\u8fd0\u884c\u5982\u4e0b\u547d\u4ee4\u6765\u83b7\u53d6apiserver\u521b\u5efa\u7684pod\u4fe1\u606f\u5e76\u4fdd\u5b58\u6210\u4e00\u4e2a\u6587\u4ef6\uff1akubectl get pods\/mypod -o yaml &gt; mypod-on-apiserver.yaml\u3002<br \/>\n\u7136\u540e\u624b\u52a8\u5bf9\u8fd9\u4e24\u4e2a\u6587\u4ef6\u8fdb\u884c\u6bd4\u8f83: apiserver\u83b7\u5f97\u7684yaml\u6587\u4ef6\u4e2d\u7684\u4e00\u4e9b\u884c\uff0c\u4e0d\u5728\u521b\u5efapod\u7684yaml\u6587\u4ef6\u5185\uff0c\u8fd9\u662f\u6b63\u5e38\u7684\u3002\u5982\u679c\u521b\u5efaPod\u7684yaml\u6587\u4ef6\u5185\u7684\u4e00\u4e9b\u884c\uff0c\u5728piserver\u83b7\u5f97\u7684yaml\u6587\u4ef6\u4e2d\u4e0d\u5b58\u5728\uff0c\u53ef\u4ee5\u8bf4\u660e\u521b\u5efapod\u7684yaml\u4e2d\u7684\u5b9a\u4e49\u6709\u95ee\u9898\u3002<\/p>\n<h3><\/h3>\n<h3><strong>Debugging Replication Controllers<\/strong><\/h3>\n<h3><\/h3>\n<p>RC\u76f8\u5f53\u7b80\u5355\u3002\u4ed6\u4eec\u8981\u4e48\u80fd\u521b\u5efapod\uff0c\u8981\u4e48\u4e0d\u80fd\u3002\u5982\u679c\u4e0d\u80fd\u521b\u5efapod\uff0c\u8bf7\u53c2\u9605\u4e0a\u8ff0Debugging Pods\u3002<br \/>\n\u4e5f\u53ef\u4ee5\u4f7f\u7528kubectl describe rc ${CONTROLLER_NAME}\u547d\u4ee4\u6765\u76d1\u89c6RC\u76f8\u5173\u7684\u4e8b\u4ef6\u3002<\/p>\n<h3><strong>Debugging Services<\/strong><\/h3>\n<h3><\/h3>\n<h3>\u670d\u52a1\u63d0\u4f9b\u4e86\u591a\u4e2aPod\u4e4b\u95f4\u7684\u8d1f\u8f7d\u5747\u8861\u529f\u80fd\u3002\u6709\u4e00\u4e9b\u5e38\u89c1\u7684\u95ee\u9898\u53ef\u4ee5\u9020\u6210\u670d\u52a1\u65e0\u6cd5\u6b63\u5e38\u5de5\u4f5c\u3002\u4ee5\u4e0b\u8bf4\u660e\u5c06\u6709\u52a9\u4e8e\u8c03\u8bd5\u670d\u52a1\u7684\u95ee\u9898\u3002<\/h3>\n<p>\u9996\u5148\uff0c\u9a8c\u8bc1\u670d\u52a1\u662f\u5426\u6709\u7aef\u70b9\u3002\u5bf9\u4e8e\u6bcf\u4e00\u4e2aService\u5bf9\u50cf\uff0capiserver\u4f7fendpoints\u8d44\u6e90\u53ef\u7528\u3002<br \/>\n\u901a\u8fc7\u5982\u4e0b\u547d\u4ee4\u53ef\u4ee5\u67e5\u770bendpoints\u8d44\u6e90\uff1a<\/p>\n<pre class=\\\"code-snippet__js code-snippet code-snippet_nowrap\\\" data-lang=\\\"shell\\\"><code><span class=\\\"code-snippet_outer\\\">$ kubectl get endpoints ${SERVICE_NAME}<\/span><\/code><\/pre>\n<p>\u786e\u4fddendpoints\u4e0e\u670d\u52a1\u5185\u5bb9\u5668\u4e2a\u6570\u4e00\u81f4\u3002\u4f8b\u5982\uff0c\u5982\u679c\u4f60\u521b\u5efa\u4e86\u4e00\u4e2anginx\u670d\u52a1\uff0c\u5b83\u67093\u4e2a\u526f\u672c\uff0c\u90a3\u4e48\u4f60\u5c31\u4f1a\u5728\u8fd9\u4e2a\u670d\u52a1\u7684endpoints\u4e2d\u770b\u52303\u4e2a\u4e0d\u540c\u7684IP\u5730\u5740\u3002<\/p>\n<h4><strong>\u670d\u52a1\u7f3a\u5c11endpoints<\/strong><\/h4>\n<h4><\/h4>\n<h4>\u5982\u679c\u7f3a\u5c11endpoints\uff0c\u8bf7\u5c1d\u8bd5\u4f7f\u7528\u670d\u52a1\u7684labels\u5217\u51fa\u6240\u6709\u7684pod\u3002\u00a0\u5047\u5982\u6709\u4e00\u4e2a\u670d\u52a1\uff0c\u6709\u5982\u4e0b\u7684label\uff1a<\/h4>\n<pre class=\\\"code-snippet__js code-snippet code-snippet_nowrap\\\" data-lang=\\\"properties\\\"><code><span class=\\\"code-snippet_outer\\\">...<\/span><\/code><code><span class=\\\"code-snippet_outer\\\">spec:\n<\/span><\/code><code><span class=\\\"code-snippet_outer\\\">  - selector:\n<\/span><\/code><code><span class=\\\"code-snippet_outer\\\">     name: nginx\n<\/span><\/code><code><span class=\\\"code-snippet_outer\\\">     type: frontend<\/span><\/code><\/pre>\n<pre>\u53ef\u4ee5\u4f7f\u7528\u5982\u4e0b\u547d\u4ee4\u5217\u51fa\u4e0eselector\u76f8\u5339\u914d\u7684pod\uff0c\u5e76\u9a8c\u8bc1\u8fd9\u4e9bpod\u662f\u5426\u5f52\u5c5e\u4e8e\u521b\u5efa\u7684\u670d\u52a1\uff1a<\/pre>\n<pre class=\\\"code-snippet__js code-snippet code-snippet_nowrap\\\" data-lang=\\\"shell\\\"><code><span class=\\\"code-snippet_outer\\\">$\u00a0kubectl\u00a0get\u00a0pods\u00a0--selector=name=nginx,type=frontend<\/span><\/code><\/pre>\n<p>\u5982\u679cpod\u5217\u8868\u7b26\u5408\u9884\u671f\uff0c\u4f46\u662fendpoints\u4ecd\u7136\u4e3a\u7a7a\uff0c\u90a3\u4e48\u53ef\u80fd\u6ca1\u6709\u66b4\u9732\u51fa\u6b63\u786e\u7684\u7aef\u53e3\u3002\u5982\u679c\u670d\u52a1\u6307\u5b9a\u4e86containerPort\uff0c\u4f46\u662f\u5217\u8868\u4e2d\u7684Pod\u6ca1\u6709\u5217\u51fa\u8be5\u7aef\u53e3\uff0c\u5219\u4e0d\u4f1a\u5c06\u5176\u6dfb\u52a0\u5230\u7aef\u53e3\u5217\u8868\u3002<br \/>\n\u9a8c\u8bc1\u8be5pod\u7684containerPort\u4e0e\u670d\u52a1\u7684containerPort\u662f\u5426\u5339\u914d\u3002<\/p>\n<h4><strong>\u7f51\u7edc\u4e1a\u52a1\u4e0d\u5de5\u4f5c<\/strong><\/h4>\n<h4><\/h4>\n<p>\u5982\u679c\u53ef\u4ee5\u8fde\u63a5\u5230\u670d\u52a1\u4e0a\uff0c\u4f46\u662f\u8fde\u63a5\u7acb\u5373\u88ab\u65ad\u5f00\u4e86\uff0c\u5e76\u4e14\u5728endpoints\u5217\u8868\u4e2d\u6709endpoints\uff0c\u53ef\u80fd\u662f\u4ee3\u7406\u548cpods\u4e4b\u95f4\u4e0d\u901a\u3002<br \/>\n\u786e\u8ba4\u4ee5\u4e0b3\u4ef6\u4e8b\u60c5\uff1a<\/p>\n<ul class=\\\" list-paddingleft-2\\\">\n<li>Pods\u5de5\u4f5c\u662f\u5426\u6b63\u5e38\uff1f\u770b\u4e00\u4e0b\u91cd\u542f\u8ba1\u6570\uff0c\u5e76\u53c2\u9605Debugging Pods\uff1b<\/li>\n<li>\u53ef\u4ee5\u76f4\u63a5\u8fde\u63a5\u5230pod\u4e0a\u5417\uff1f\u83b7\u53d6pod\u7684IP\u5730\u5740\uff0c\u7136\u540e\u5c1d\u8bd5\u76f4\u63a5\u8fde\u63a5\u5230\u8be5IP\u4e0a\uff1b<\/li>\n<li>\u5e94\u7528\u662f\u5426\u5728\u914d\u7f6e\u7684\u7aef\u53e3\u4e0a\u8fdb\u884c\u670d\u52a1\uff1fKubernetes\u4e0d\u8fdb\u884c\u7aef\u53e3\u91cd\u6620\u5c04\uff0c\u6240\u4ee5\u5982\u679c\u5e94\u7528\u57288080\u7aef\u53e3\u4e0a\u670d\u52a1\uff0c\u90a3\u4e48containerPort\u5b57\u6bb5\u5c31\u9700\u8981\u8bbe\u5b9a\u4e3a8080\u3002<\/li>\n<\/ul>\n<h4><\/h4>\n<h4><strong>\u66f4\u591a\u4fe1\u606f<\/strong><\/h4>\n<h4><\/h4>\n<p>\u5982\u679c\u4e0a\u8ff0\u90fd\u4e0d\u80fd\u89e3\u51b3\u4f60\u7684\u95ee\u9898\uff0c\u8bf7\u6309\u7167Debugging Service document\u4e2d\u7684\u4ecb\u7ecd\u6765\u786e\u4fdd\u4f60\u7684Service\u5904\u4e8erunning\u6001\uff0c\u6709Endpoints\uff0cPods\u771f\u6b63\u7684\u5728\u670d\u52a1\uff1b\u6709DNS\u5728\u5de5\u4f5c\uff0c\u5b89\u88c5\u4e86iptables\u89c4\u5219\uff0ckube-proxy\u4e5f\u6ca1\u6709\u5f02\u5e38\u884c\u4e3a\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Debugging Pods \u8c03\u8bd5pod\u7684\u7b2c\u4e00\u6b65\u662f\u770b\u4e00\u4e0b\u8fd9\u4e2apod\u7684\u4fe1\u606f\uff0c\u7528\u5982\u4e0b\u547d\u4ee4\u67e5\u770b\u4e00\u4e0bpod\u7684\u5f53\u524d\u72b6\u6001\u548c &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"http:\/\/www.weijing.co\/?p=1915\"> <span class=\"screen-reader-text\">Kubernetes \u5e94\u7528\u6545\u969c\u6392\u67e5<\/span> \u67e5\u770b\u5168\u6587 &raquo;<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":""},"categories":[104,123],"tags":[],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"mailpoet_newsletter_max":false,"woocommerce_thumbnail":false,"woocommerce_single":false,"woocommerce_gallery_thumbnail":false,"shop_catalog":false,"shop_single":false,"shop_thumbnail":false},"uagb_author_info":{"display_name":"weijing","author_link":"http:\/\/www.weijing.co\/?author=4"},"uagb_comment_info":4,"uagb_excerpt":"Debugging Pods \u8c03\u8bd5pod\u7684\u7b2c\u4e00\u6b65\u662f\u770b\u4e00\u4e0b\u8fd9\u4e2apod\u7684\u4fe1\u606f\uff0c\u7528\u5982\u4e0b\u547d\u4ee4\u67e5\u770b\u4e00\u4e0bpod\u7684\u5f53\u524d\u72b6\u6001\u548c&hellip;","_links":{"self":[{"href":"http:\/\/www.weijing.co\/index.php?rest_route=\/wp\/v2\/posts\/1915"}],"collection":[{"href":"http:\/\/www.weijing.co\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.weijing.co\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.weijing.co\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"http:\/\/www.weijing.co\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1915"}],"version-history":[{"count":0,"href":"http:\/\/www.weijing.co\/index.php?rest_route=\/wp\/v2\/posts\/1915\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.weijing.co\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1915"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.weijing.co\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1915"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.weijing.co\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1915"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}