{"id":7714,"date":"2026-08-21T17:53:53","date_gmt":"2026-08-21T09:53:53","guid":{"rendered":"https:\/\/i007.cc\/wordpress\/?p=7714"},"modified":"2026-08-21T17:53:53","modified_gmt":"2026-08-21T09:53:53","slug":"github%e4%b8%8a%e6%9c%89%e5%8f%af%e4%bb%a5%e5%8f%82%e8%80%83%e7%9a%84k8s%e6%9c%80%e4%bd%b3%e5%ae%9e%e8%b7%b5%e6%a1%88%e4%be%8b%e4%b9%88%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/i007.cc\/wordpress\/archives\/7714","title":{"rendered":"github\u4e0a\u6709\u53ef\u4ee5\u53c2\u8003\u7684k8s\u6700\u4f73\u5b9e\u8df5\u6848\u4f8b\u4e48\uff1f"},"content":{"rendered":"<div role=\"feed\" data-perf-region=\"transcript\" aria-label=\"Chat messages\" aria-describedby=\"_r_207_\" data-find-provider-scope=\"\">\n<div data-sizer-excess=\"0\" data-rocksteady-sizer=\"\" data-testid=\"transcript-sizer\">\n<div data-rs-index=\"60\" data-index=\"60\" data-testid=\"transcript-row\" data-perf-row=\"human\" data-perf-row-from-tail=\"1\" data-perf-row-streaming=\"false\">\n<div class=\"rounded-lg focus-visible:shadow-focus focus-visible:outline-hidden\" tabindex=\"0\" role=\"article\" aria-setsize=\"62\" aria-posinset=\"61\" aria-label=\"Message 61 of 62\">\n<div data-test-render-count=\"2\">\n<div class=\"mb-1 mt-[var(--msg-gap,1.5rem)] group group\/message-row\">\n<div class=\"flex flex-col items-end gap-1\">\n<div class=\"group\/message-row flex min-w-0 flex-col items-end gap-xs font-sans ms-auto max-w-[85%] cds-um-enter\" data-cds=\"UserMessage\">\n<div class=\"relative flex max-w-full min-w-0 flex-col gap-xs rounded-card px-lg py-md text-heading break-words select-text text-primary bg-neutral\">\n<div id=\"_r_2kl_\" class=\"\">\n<div class=\"grid grid-cols-1 gap-2 relative [&amp;_ul]:!space-y-0 [&amp;_ol]:!space-y-0 [&amp;_ul]:pl-8 [&amp;_ol]:pl-8\" data-testid=\"user-message\">\n<p class=\"whitespace-pre-wrap break-words\" dir=\"ltr\">\u8fd9\u4e2a\u95ee\u9898\u8303\u56f4\u5176\u5b9e\u975e\u5e38\u5927\uff0c&#8221;\u6700\u4f73\u5b9e\u8df5&#8221;\u53ef\u4ee5\u62c6\u6210\u597d\u51e0\u4e2a\u5b8c\u5168\u4e0d\u540c\u7684\u7ef4\u5ea6\u2014\u2014\u8d44\u6e90\u7ba1\u7406\u3001\u9ad8\u53ef\u7528\u3001\u5b89\u5168\u3001\u90e8\u7f72\u7b56\u7565\u3001\u53ef\u89c2\u6d4b\u6027\uff0c\u6bcf\u4e00\u4e2a\u5355\u72ec\u5c55\u5f00\u90fd\u80fd\u804a\u5f88\u4e45\u3002\u6211\u5148\u6309\u51e0\u4e2a\u6700\u6838\u5fc3\u7684\u7ef4\u5ea6\u7ed9\u4f60\u8fc7\u4e00\u904d\u4e3b\u6d41\u516c\u8ba4\u7684\u5b9e\u8df5\uff0c\u4f60\u53ef\u4ee5\u770b\u770b\u54ea\u5757\u6700\u60f3\u6df1\u5165,\u6211\u4eec\u518d\u5f80\u7ec6\u4e86\u804a\u3002<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div data-rs-index=\"61\" data-index=\"61\" data-testid=\"transcript-row\" data-last-message=\"true\" data-perf-row=\"assistant\" data-perf-row-from-tail=\"0\" data-perf-row-streaming=\"false\">\n<div class=\"rounded-lg focus-visible:shadow-focus focus-visible:outline-hidden\" tabindex=\"-1\" role=\"article\" aria-setsize=\"62\" aria-posinset=\"62\" aria-label=\"Message 62 of 62\">\n<div data-test-render-count=\"1\">\n<div class=\"group group\/message-row\">\n<div class=\"group relative relative pb-[var(--msg-assistant-pb,0.75rem)] message-fade-up\" data-is-streaming=\"false\">\n<div class=\"font-claude-response relative leading-[1.65rem] [&amp;_pre&gt;div]:bg-bg-000\/50 [&amp;_pre&gt;div]:border-0.5 [&amp;_pre&gt;div]:border-border-400 [&amp;_.ignore-pre-bg&gt;div]:bg-transparent [&amp;_.standard-markdown_:is(p,blockquote,h1,h2,h3,h4,h5,h6)]:pl-[var(--msg-text-inset,0.5rem)] [&amp;_.standard-markdown_:is(p,blockquote,ul,ol,h1,h2,h3,h4,h5,h6)]:pr-8 [&amp;_.progressive-markdown_:is(p,blockquote,h1,h2,h3,h4,h5,h6)]:pl-[var(--msg-text-inset,0.5rem)] [&amp;_.progressive-markdown_:is(p,blockquote,ul,ol,h1,h2,h3,h4,h5,h6)]:pr-8\">\n<div class=\"grid grid-rows-[auto_auto] min-w-0\">\n<div class=\"row-start-1 col-start-1 min-w-0\">\n<div class=\"contents\" data-find-omitted=\"\">\n<div class=\"min-w-0 pl-[var(--msg-text-inset,0.5rem)] py-[var(--msg-pill-py,0.375rem)]\">\n<p dir=\"ltr\">\u8d44\u6e90\u7ba1\u7406\u8fd9\u5757\uff0c\u6700\u57fa\u672c\u4e5f\u6700\u5bb9\u6613\u88ab\u5ffd\u7565\u7684\u662f\u7ed9\u6bcf\u4e2a\u5bb9\u5668\u8bbe\u7f6e resources.requests \u548c resources.limits\uff0c\u4e0d\u8bbe\u7f6e\u7684\u8bdd kube-scheduler \u5728\u505a\u6211\u4eec\u4e4b\u524d\u8be6\u7ec6\u8bb2\u8fc7\u7684 Filter\/Score \u9636\u6bb5\u65f6\u6839\u672c\u4e0d\u77e5\u9053\u8fd9\u4e2a Pod \u5927\u6982\u8981\u5403\u591a\u5c11\u8d44\u6e90\uff0c\u5bb9\u6613\u5bfc\u81f4\u67d0\u4e9b\u8282\u70b9\u88ab\u585e\u7206\u3001\u67d0\u4e9b\u8282\u70b9\u53c8\u5f88\u7a7a\u95f2\uff0c\u8c03\u5ea6\u51b3\u7b56\u5931\u53bb\u610f\u4e49\uff1blimits \u8bbe\u5f97\u592a\u7d27\u53c8\u4f1a\u5bfc\u81f4\u5bb9\u5668\u9891\u7e41\u88ab OOMKilled\uff08\u8fd9\u4e2a\u72b6\u6001\u4f1a\u76f4\u63a5\u53cd\u6620\u5728\u6211\u4eec\u521a\u804a\u7684 Pod Conditions \u548c\u5bb9\u5668\u7684 terminated reason \u91cc\uff09\u3002\u6bd4\u8f83\u6210\u719f\u7684\u505a\u6cd5\u662f\u5148\u7ed9\u4e00\u4e2a\u4fdd\u5b88\u7684\u521d\u59cb\u503c\uff0c\u7136\u540e\u7528 VerticalPodAutoscaler \u4e4b\u7c7b\u7684\u5de5\u5177\u8dd1\u4e00\u6bb5\u65f6\u95f4\u89c2\u5bdf\u771f\u5b9e\u7528\u91cf\u518d\u8c03\u6574\uff0c\u800c\u4e0d\u662f\u62cd\u8111\u888b\u5b9a\u6570\u5b57\u3002\u547d\u540d\u7a7a\u95f4\u5c42\u9762\u5efa\u8bae\u914d\u5408 ResourceQuota \u548c LimitRange\uff0c\u9632\u6b62\u67d0\u4e2a\u56e2\u961f\u6216\u8005\u67d0\u4e2a\u5e94\u7528\u628a\u6574\u4e2a\u96c6\u7fa4\u8d44\u6e90\u5403\u5149\uff0c\u8fd9\u5728\u591a\u79df\u6237\u96c6\u7fa4\u91cc\u51e0\u4e4e\u662f\u5fc5\u987b\u7684\u3002<\/p>\n<p dir=\"ltr\">\u9ad8\u53ef\u7528\u8fd9\u5757\uff0c\u8ddf\u6211\u4eec\u4e4b\u524d\u804a\u7684&#8221;K8s \u91cc\u7684\u5355\u70b9&#8221;\u76f4\u63a5\u76f8\u5173\u2014\u2014\u4e1a\u52a1 Pod \u5c42\u9762\u81f3\u5c11\u8981\u8dd1\u591a\u526f\u672c\uff08replicas \u2265 2\uff0c\u4e00\u822c 3 \u8d77\u6b65\uff09\uff0c\u5e76\u4e14\u8981\u7528 podAntiAffinity \u6216\u8005 topologySpreadConstraints \u628a\u8fd9\u51e0\u4e2a\u526f\u672c\u6253\u6563\u5230\u4e0d\u540c\u8282\u70b9\u3001\u751a\u81f3\u4e0d\u540c\u53ef\u7528\u533a\uff0c\u4e0d\u7136\u591a\u526f\u672c\u5f62\u540c\u865a\u8bbe\uff0c\u4e00\u4e2a\u8282\u70b9\u6302\u4e86\u7167\u6837\u628a\u6240\u6709\u526f\u672c\u4e00\u8d77\u5e26\u8d70\u3002\u8fd8\u8981\u914d PodDisruptionBudget\uff0c\u9650\u5236\u6eda\u52a8\u5347\u7ea7\u3001\u8282\u70b9\u7ef4\u62a4\u8fd9\u7c7b&#8221;\u4e3b\u52a8&#8221;\u64cd\u4f5c\u65f6\u6700\u591a\u80fd\u540c\u65f6\u4e0b\u7ebf\u51e0\u4e2a\u526f\u672c\uff0c\u907f\u514d\u8fd0\u7ef4\u64cd\u4f5c\u8bef\u4f24\u5230\u521a\u597d\u51d1\u4e0d\u591f\u5b58\u6d3b\u6570\u91cf\u7684\u573a\u666f\u3002\u5065\u5eb7\u63a2\u9488\u8fd9\u5757\u4e5f\u5f88\u5173\u952e\uff0creadinessProbe \u548c livenessProbe \u8981\u5206\u5f00\u8bbe\u8ba1\u3001\u8bed\u4e49\u4e0d\u80fd\u6df7\u2014\u2014readinessProbe \u51b3\u5b9a\u8fd9\u4e2a Pod \u8981\u4e0d\u8981\u88ab Service \u8f6c\u53d1\u6d41\u91cf\uff08\u5bf9\u5e94\u6211\u4eec\u524d\u9762\u804a\u7684 Ready \u8fd9\u4e2a Condition\uff09\uff0clivenessProbe \u51b3\u5b9a\u8fd9\u4e2a\u5bb9\u5668\u662f\u4e0d\u662f\u5df2\u7ecf\u6b7b\u9501\/\u50f5\u6b7b\u9700\u8981\u88ab\u91cd\u542f\uff0c\u4e24\u8005\u6df7\u7528\u6216\u8005\u63a2\u9488\u672c\u8eab\u5199\u5f97\u592a\u8106\u5f31\uff08\u6bd4\u5982\u63a2\u6d4b\u903b\u8f91\u672c\u8eab\u5f88\u91cd\u3001\u5bb9\u6613\u8d85\u65f6\uff09\u7ecf\u5e38\u662f\u751f\u4ea7\u73af\u5883\u91cc&#8221;\u770b\u8d77\u6765\u5065\u5eb7\u5b9e\u9645\u4e0a\u5728\u6296\u52a8&#8221;\u7684\u6839\u6e90\u3002<\/p>\n<p dir=\"ltr\">\u5b89\u5168\u8fd9\u5757\uff0cRBAC \u6743\u9650\u4e00\u5b9a\u8981\u6309\u6700\u5c0f\u6743\u9650\u539f\u5219\u914d\u7f6e\uff0c\u4e0d\u8981\u56fe\u7701\u4e8b\u76f4\u63a5\u628a ServiceAccount \u7ed1\u5230 cluster-admin \u4e0a\uff1b\u5bb9\u5668\u5c3d\u91cf\u907f\u514d\u4ee5 root \u7528\u6237\u8dd1\uff08securityContext \u91cc\u8bbe runAsNonRoot\uff09\uff0c\u4e5f\u4e0d\u8981\u5f00 privileged \u6a21\u5f0f\u9664\u975e\u771f\u7684\u6709\u786c\u4ef6\u8bbf\u95ee\u8fd9\u7c7b\u521a\u9700\uff1bPod \u5982\u679c\u4e0d\u9700\u8981\u8c03\u7528 Kubernetes API\uff0c\u8bb0\u5f97\u628a automountServiceAccountToken \u8bbe\u6210 false\uff0c\u51cf\u5c11\u4e07\u4e00\u5bb9\u5668\u88ab\u653b\u7834\u4e4b\u540e\u62ff\u5230\u7684\u653b\u51fb\u9762\uff08\u547c\u5e94\u6211\u4eec\u4e4b\u524d\u804a\u7684 mTLS\/SPIFFE \u90a3\u5757\uff0cServiceAccount Token \u662f\u5f88\u591a\u8eab\u4efd\u4f53\u7cfb\u7684\u4fe1\u4efb\u6839\uff0c\u4e0d\u8be5\u88ab\u6ee5\u7528\uff09\uff1b\u7f51\u7edc\u5c42\u9762\u5efa\u8bae\u914d\u4e0a NetworkPolicy\uff0c\u9ed8\u8ba4\u4e0d\u8be5\u8ba9\u96c6\u7fa4\u91cc\u4efb\u610f Pod \u90fd\u80fd\u968f\u4fbf\u8bbf\u95ee\u4efb\u610f\u5176\u4ed6 Pod,\u8fd9\u4e5f\u662f\u5f88\u591a\u96c6\u7fa4&#8221;\u9ed8\u8ba4\u5168\u901a&#8221;\u57cb\u4e0b\u7684\u5b89\u5168\u9690\u60a3;\u654f\u611f\u4fe1\u606f\u8d70 Secret\uff08\u66f4\u8fdb\u4e00\u6b65\u63a5\u5916\u90e8\u5bc6\u94a5\u7ba1\u7406\u7cfb\u7edf\u6bd4\u5982 Vault \u6216\u8005\u4e91\u5382\u5546\u7684 KMS\uff0c\u800c\u4e0d\u662f\u628a\u660e\u6587\u5bc6\u7801\u76f4\u63a5\u5199\u8fdb ConfigMap \u6216\u8005 YAML \u91cc\u63d0\u4ea4\u8fdb Git\uff09\u3002<\/p>\n<p dir=\"ltr\">\u90e8\u7f72\u7b56\u7565\u8fd9\u5757\uff0c\u955c\u50cf\u6807\u7b7e\u4e0d\u8981\u7528 :latest\uff0c\u8fd9\u4e2a\u6211\u4eec\u4e4b\u524d\u9690\u7ea6\u63d0\u5230\u8fc7\uff0c\u7528\u5177\u4f53\u7684\u7248\u672c\u53f7\u6216\u8005 digest\uff08sha256 \u6458\u8981\uff09\u80fd\u4fdd\u8bc1&#8221;\u8fd9\u4e2a Pod \u7528\u7684\u955c\u50cf&#8221;\u662f\u786e\u5b9a\u3001\u53ef\u590d\u73b0\u7684\uff0c\u4e0d\u4f1a\u51fa\u73b0\u4f60\u4ee5\u4e3a\u90e8\u7f72\u7684\u662f A \u7248\u672c\u3001\u5b9e\u9645\u4e0a\u56e0\u4e3a :latest \u88ab\u540e\u53f0\u91cd\u65b0 push \u8fc7\u800c\u6084\u6084\u53d8\u6210\u4e86 B \u7248\u672c\u8fd9\u79cd\u8be1\u5f02\u95ee\u9898\uff1b\u6eda\u52a8\u66f4\u65b0\uff08RollingUpdate\uff09\u8981\u914d\u5408 maxUnavailable \u548c maxSurge \u4ed4\u7ec6\u8c03\uff0c\u786e\u4fdd\u5347\u7ea7\u8fc7\u7a0b\u4e2d\u59cb\u7ec8\u6709\u8db3\u591f\u591a\u7684\u5065\u5eb7\u526f\u672c\u5728\u7ebf\uff1b\u66f4\u8fdb\u4e00\u6b65\uff0c\u751f\u4ea7\u73af\u5883\u5efa\u8bae\u8d70 GitOps \u6a21\u5f0f\uff08\u6bd4\u5982 ArgoCD\u3001Flux\uff09\uff0c\u6240\u6709\u53d8\u66f4\u90fd\u901a\u8fc7 Git \u63d0\u4ea4\u89e6\u53d1\uff0c\u800c\u4e0d\u662f\u672c\u5730\u624b\u52a8 kubectl apply\uff0c\u8fd9\u4e2a\u6211\u4eec\u804a Crossplane \u8bef\u5220\u98ce\u9669\u7684\u65f6\u5019\u4e5f\u63d0\u5230\u8fc7\uff0c\u672c\u8d28\u4e0a\u662f\u540c\u4e00\u4e2a\u601d\u8def\u2014\u2014\u53d8\u66f4\u7559\u75d5\u3001\u53ef\u5ba1\u67e5\u3001\u53ef\u56de\u6eda\u3002<\/p>\n<p dir=\"ltr\">\u53ef\u89c2\u6d4b\u6027\u8fd9\u5757\uff0c\u65e5\u5fd7\u5c3d\u91cf\u8d70\u6807\u51c6\u8f93\u51fa\uff08stdout\/stderr\uff09\u4ea4\u7ed9\u7edf\u4e00\u7684\u65e5\u5fd7\u91c7\u96c6\u7cfb\u7edf\uff08\u6bd4\u5982 Fluentd\/Loki \u6536\u96c6\u540e\u8fdb ELK \u6216\u8005\u5176\u4ed6\u65e5\u5fd7\u5e73\u53f0\uff09\uff0c\u4e0d\u8981\u81ea\u5df1\u5728\u5bb9\u5668\u91cc\u5f80\u6587\u4ef6\u91cc\u5199\u65e5\u5fd7\u7136\u540e\u60f3\u7740\u4ee5\u540e\u518d\u5904\u7406\uff1bMetrics \u8d70 Prometheus \u8fd9\u5957\u751f\u6001\u57fa\u672c\u662f\u884c\u4e1a\u9ed8\u8ba4\u9009\u62e9\uff1b\u5206\u5e03\u5f0f\u8ffd\u8e2a\uff08Tracing\uff09\u5728\u5fae\u670d\u52a1\u89c4\u6a21\u4e0a\u6765\u4e4b\u540e\u57fa\u672c\u662f\u5fc5\u9700\u54c1\uff0c\u4e0d\u7136\u4e00\u4e2a\u8bf7\u6c42\u8de8\u4e86\u5341\u51e0\u4e2a\u670d\u52a1\u51fa\u95ee\u9898\u6839\u672c\u6ca1\u6cd5\u5b9a\u4f4d\u662f\u54ea\u4e00\u73af\u6162\u4e86\u3002<\/p>\n<p dir=\"ltr\">\u6700\u540e\u56de\u5230\u6211\u4eec\u8fd9\u51e0\u5929\u4e00\u76f4\u5728\u804a\u7684\u67b6\u6784\u5c42\u9762\u2014\u2014etcd \u8981\u6309 3 \u6216 5 \u8282\u70b9\u90e8\u7f72\u5e76\u4e14\u5b9a\u671f\u505a snapshot \u5907\u4efd\uff08\u8fd9\u4e2a\u6211\u4eec\u8be6\u7ec6\u804a\u8fc7\u5177\u4f53\u547d\u4ee4\uff09\uff0capiserver \u8981\u505a\u597d\u6c34\u5e73\u6269\u5c55\u52a0\u8d1f\u8f7d\u5747\u8861\uff0cscheduler\/controller-manager \u8981\u5f00\u591a\u526f\u672c\u8d70 leader election\uff0c\u8fd9\u4e9b\u63a7\u5236\u9762\u672c\u8eab\u7684\u9ad8\u53ef\u7528\u914d\u7f6e\u5f80\u5f80\u662f\u6700\u5bb9\u6613\u88ab\u65b0\u624b\u5ffd\u7565\u3001\u4f46\u4e00\u65e6\u51fa\u95ee\u9898\u5f71\u54cd\u9762\u6700\u5927\u7684\u90e8\u5206\u3002<\/p>\n<p dir=\"ltr\">\u4ee5\u4e0a\u8fd9\u51e0\u5757\u4efb\u4f55\u4e00\u4e2a\u4f60\u60f3\u6df1\u5165\u5c55\u5f00\uff08\u6bd4\u5982\u5177\u4f53\u600e\u4e48\u5199\u597d\u4e00\u4e2a readinessProbe\u3001NetworkPolicy \u5177\u4f53\u600e\u4e48\u914d\u3001GitOps \u5de5\u5177\u600e\u4e48\u9009\uff09\uff0c\u90fd\u53ef\u4ee5\u544a\u8bc9\u6211\uff0c\u6211\u4eec\u53ef\u4ee5\u805a\u7126\u67d0\u4e00\u4e2a\u65b9\u5411\u7ec6\u8bb2,\u4e0d\u7136&#8221;\u6700\u4f73\u5b9e\u8df5&#8221;\u8fd9\u4e2a\u8bdd\u9898\u786e\u5b9e\u6709\u70b9\u5927,\u6cdb\u6cdb\u800c\u8c08\u4ef7\u503c\u6709\u9650\u3002<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<p dir=\"ltr\">\n<div role=\"feed\" data-perf-region=\"transcript\" aria-label=\"Chat messages\" aria-describedby=\"_r_207_\" data-find-provider-scope=\"\">\n<div data-sizer-excess=\"0\" data-rocksteady-sizer=\"\" data-testid=\"transcript-sizer\">\n<div data-rs-index=\"61\" data-index=\"61\" data-testid=\"transcript-row\" data-last-message=\"true\" data-perf-row=\"assistant\" data-perf-row-from-tail=\"0\" data-perf-row-streaming=\"false\">\n<div class=\"rounded-lg focus-visible:shadow-focus focus-visible:outline-hidden\" tabindex=\"-1\" role=\"article\" aria-setsize=\"62\" aria-posinset=\"62\" aria-label=\"Message 62 of 62\">\n<div data-test-render-count=\"1\">\n<div class=\"group group\/message-row\">\n<div class=\"group relative relative pb-[var(--msg-assistant-pb,0.75rem)] message-fade-up\" data-is-streaming=\"false\">\n<div class=\"font-claude-response relative leading-[1.65rem] [&amp;_pre&gt;div]:bg-bg-000\/50 [&amp;_pre&gt;div]:border-0.5 [&amp;_pre&gt;div]:border-border-400 [&amp;_.ignore-pre-bg&gt;div]:bg-transparent [&amp;_.standard-markdown_:is(p,blockquote,h1,h2,h3,h4,h5,h6)]:pl-[var(--msg-text-inset,0.5rem)] [&amp;_.standard-markdown_:is(p,blockquote,ul,ol,h1,h2,h3,h4,h5,h6)]:pr-8 [&amp;_.progressive-markdown_:is(p,blockquote,h1,h2,h3,h4,h5,h6)]:pl-[var(--msg-text-inset,0.5rem)] [&amp;_.progressive-markdown_:is(p,blockquote,ul,ol,h1,h2,h3,h4,h5,h6)]:pr-8\">\n<div>\n<div class=\"grid grid-rows-[auto_auto] min-w-0\">\n<div class=\"row-start-2 col-start-1 relative grid grid-rows-[auto_auto] isolate min-w-0\">\n<div class=\"row-start-1 col-start-1 relative z-[2] min-w-0\">\n<div>\n<div>\n<div class=\"standard-markdown grid-cols-1 grid [&amp;_&gt;_*]:min-w-0 gap-3 [&amp;_&gt;_*:last-child]:mb-0 print:block print:[&amp;_&gt;_:where(:not(:first-child))]:mt-3 standard-markdown\">\n<p class=\"font-claude-response-body break-words whitespace-normal\" dir=\"ltr\">\u6709\u51e0\u4e2a\u65b9\u5411\u4e0d\u4e00\u6837\u3001\u4f46\u90fd\u633a\u6709\u53c2\u8003\u4ef7\u503c\u7684\u4ed3\u5e93\uff0c\u53ef\u4ee5\u6839\u636e\u4f60\u60f3\u8981&#8221;\u770b\u6e05\u5355&#8221;\u8fd8\u662f&#8221;\u770b\u771f\u5b9e\u4ee3\u7801&#8221;\u6765\u9009\u3002<\/p>\n<p class=\"font-claude-response-body break-words whitespace-normal\" dir=\"ltr\">\u5982\u679c\u4f60\u60f3\u8981\u4e00\u4efd\u53ef\u4ee5\u76f4\u63a5\u5bf9\u7167\u81ea\u67e5\u7684\u6e05\u5355\uff0clearnk8s\/kubernetes-production-best-practices \u8fd9\u4e2a\u4ed3\u5e93\u5f88\u9002\u5408\uff0cstar \u6570 1.1k\u3001fork 217\uff0c\u662f\u4e13\u95e8\u505a\u6210&#8221;\u4e0a\u7ebf\u524d\u68c0\u67e5\u6e05\u5355&#8221;\u5f62\u5f0f\u7684\uff0c\u5185\u5bb9\u5206\u6210\u4e94\u5927\u5757\uff1a\u5e94\u7528\u672c\u8eab\u7684\u6ce8\u610f\u4e8b\u9879\u3001Kubernetes manifest \u914d\u7f6e\u672c\u8eab\u3001\u5b89\u5168\u52a0\u56fa\u3001\u6269\u7f29\u5bb9\u3001\u4ee5\u53ca\u4e0a\u7ebf\u524d\u6700\u540e\u786e\u8ba4\u8fd9\u51e0\u7c7b\uff0c\u8986\u76d6\u9762\u57fa\u672c\u8ddf\u6211\u4e0a\u4e00\u6761\u56de\u590d\u91cc\u8bb2\u7684\u90a3\u51e0\u5927\u7c7b\u5bf9\u5f97\u4e0a\uff0c\u9002\u5408\u56e2\u961f\u5185\u90e8\u62ff\u6765\u5f53 checklist \u7528\uff0c\u4e5f\u65b9\u4fbf\u6309\u81ea\u5df1\u56e2\u961f\u60c5\u51b5\u6539\u3002<\/p>\n<p class=\"font-claude-response-body break-words whitespace-normal\" dir=\"ltr\">\u5982\u679c\u4f60\u60f3\u8981\u4e00\u4e2a\u8986\u76d6\u9762\u66f4\u5e7f\u3001\u6301\u7eed\u66f4\u65b0\u7684\u8d44\u6e90\u5bfc\u822a\uff0cramitsurana\/awesome-kubernetes \u8fd9\u4e2a\u4ed3\u5e93\u662f\u76ee\u524d\u8fd9\u7c7b&#8221;awesome list&#8221;\u91cc\u7ef4\u62a4\u5f97\u6700\u6d3b\u8dc3\u7684\u4e00\u4e2a\uff0c1.1 \u4e07\u591a\u6b21\u63d0\u4ea4\u30011.6 \u4e07+ star\uff0c\u91cc\u9762\u6309\u5b66\u4e60\u8d44\u6599\u3001\u6280\u672f\u6587\u6863\u3001\u4e66\u7c4d\u3001\u90e8\u7f72\u6307\u5357\u3001\u53c2\u8003\u624b\u518c\u8fd9\u4e9b\u7c7b\u522b\u6574\u7406\u4e86\u5927\u91cf\u94fe\u63a5\uff0c\u5c5e\u4e8e&#8221;\u4ece\u8fd9\u91cc\u51fa\u53d1\u80fd\u627e\u5230\u51e0\u4e4e\u6240\u6709\u5b50\u8bdd\u9898\u7684\u5165\u53e3&#8221;\uff0c\u6bd4\u8f83\u9002\u5408\u4f60\u60f3\u6df1\u5165\u67d0\u4e2a\u5177\u4f53\u65b9\u5411\uff08\u6bd4\u5982 GitOps\u3001\u5b89\u5168\u3001\u67d0\u4e2a\u5177\u4f53\u7ec4\u4ef6\uff09\u65f6\u5148\u6765\u8fd9\u91cc\u627e\u4e00\u5708\u76f8\u5173\u8d44\u6e90\uff0c\u800c\u4e0d\u662f\u81ea\u5df1\u5728\u4e92\u8054\u7f51\u4e0a\u778e\u641c\u3002<\/p>\n<p class=\"font-claude-response-body break-words whitespace-normal\" dir=\"ltr\">\u5982\u679c\u4f60\u66f4\u60f3\u76f4\u63a5\u770b\u771f\u5b9e\u3001\u53ef\u8fd0\u884c\u7684\u4ee3\u7801\u800c\u4e0d\u662f\u6587\u5b57\u6027\u7684\u6e05\u5355\u6216\u8005\u94fe\u63a5\u5217\u8868\uff0cGoogle \u5b98\u65b9\u7ef4\u62a4\u7684 GoogleCloudPlatform\/microservices-demo\uff08\u4e5f\u53eb Online Boutique\uff09\u975e\u5e38\u503c\u5f97\u4e00\u770b\uff0c\u8fd9\u662f\u4e00\u4e2a\u5305\u542b 10 \u4e2a\u5fae\u670d\u52a1\u3001\u7528 gRPC \u4e92\u76f8\u901a\u4fe1\u3001\u96c6\u6210\u4e86 Istio \u7684\u5b8c\u6574\u793a\u4f8b\u7535\u5546\u5e94\u7528\uff0c\u4ed3\u5e93\u5230\u73b0\u5728\u8fd8\u5728\u6301\u7eed\u7ef4\u62a4\u66f4\u65b0\uff0c\u91cc\u9762\u7684 Kubernetes manifest \u662f\u771f\u7684\u6309\u751f\u4ea7\u5b9e\u8df5\u5199\u7684\uff08\u8d44\u6e90\u9650\u5236\u3001\u5065\u5eb7\u63a2\u9488\u3001\u591a\u526f\u672c\u8fd9\u4e9b\u6211\u4eec\u524d\u9762\u804a\u7684\u4e1c\u897f\u5728\u91cc\u9762\u90fd\u6709\u5177\u4f53\u4f53\u73b0\uff09\uff0c\u800c\u4e14\u56e0\u4e3a\u8db3\u591f\u70ed\u95e8\uff0c\u5df2\u7ecf\u88ab\u4e0d\u5c11\u5176\u4ed6\u516c\u53f8\/\u4e2a\u4eba fork \u53bb\u505a\u81ea\u5df1\u7684\u6559\u5b66\u6216\u8005\u6d4b\u8bd5\u7528\u4f8b\u4e86\uff0c\u9002\u5408\u4f60\u60f3\u770b&#8221;\u4e00\u4e2a\u771f\u5b9e\u7684\u591a\u670d\u52a1\u7cfb\u7edf\u5728 Kubernetes \u4e0a\u5177\u4f53\u957f\u4ec0\u4e48\u6837&#8221;\u7684\u65f6\u5019\u62ff\u6765\u7167\u7740\u8bfb\u3001\u751a\u81f3\u76f4\u63a5\u90e8\u7f72\u5230\u4f60\u81ea\u5df1\u7684 kind \u96c6\u7fa4\u91cc\u8dd1\u4e00\u8dd1\uff0c\u6bd4\u5355\u7eaf\u8bfb\u6587\u5b57\u6e05\u5355\u66f4\u76f4\u89c2\u3002<\/p>\n<p class=\"font-claude-response-body break-words whitespace-normal\" dir=\"ltr\">\u8fd9\u4e09\u4e2a\u5404\u6709\u4fa7\u91cd\uff0c\u6e05\u5355\u7c7b\u9002\u5408\u81ea\u67e5\u3001awesome list \u9002\u5408\u6309\u9700\u67e5\u8d44\u6599\u3001Online Boutique \u9002\u5408\u52a8\u624b\u8dd1\u8d77\u6765\u770b\u771f\u5b9e\u6548\u679c\uff0c\u4f60\u53ef\u4ee5\u6309\u81ea\u5df1\u73b0\u5728\u66f4\u60f3\u8981\u54ea\u79cd\u5f62\u5f0f\u6311\u4e00\u4e2a\u5f00\u59cb\u3002<\/p>\n<p class=\"font-claude-response-body break-words whitespace-normal\" dir=\"ltr\">Sources:<\/p>\n<ul class=\"[li_&amp;]:mb-0 [li_&amp;]:mt-1 [li_&amp;]:gap-1 [&amp;:not(:last-child)_ul]:pb-1 [&amp;:not(:last-child)_ol]:pb-1 list-disc flex flex-col gap-1 pl-8 mb-3 print:block print:space-y-1\" dir=\"ltr\">\n<li class=\"font-claude-response-body whitespace-normal break-words pl-2\"><a class=\"underline underline underline-offset-2 decoration-1 decoration-current\/40 hover:decoration-current focus:decoration-current\" href=\"https:\/\/github.com\/learnk8s\/kubernetes-production-best-practices\">learnk8s\/kubernetes-production-best-practices<\/a><\/li>\n<li class=\"font-claude-response-body whitespace-normal break-words pl-2\"><a class=\"underline underline underline-offset-2 decoration-1 decoration-current\/40 hover:decoration-current focus:decoration-current\" href=\"https:\/\/github.com\/ramitsurana\/awesome-kubernetes\">ramitsurana\/awesome-kubernetes<\/a><\/li>\n<li class=\"font-claude-response-body whitespace-normal break-words pl-2\"><a class=\"underline underline underline-offset-2 decoration-1 decoration-current\/40 hover:decoration-current focus:decoration-current\" href=\"https:\/\/github.com\/GoogleCloudPlatform\/microservices-demo\">GoogleCloudPlatform\/microservices-demo<\/a><\/li>\n<\/ul>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div aria-hidden=\"true\" data-testid=\"transcript-spacer\"><\/div>\n<\/div>\n<\/div>\n<div data-testid=\"transcript-trailing\">\n<div><\/div>\n<div class=\"flow-root\">\n<div>\n<div class=\"ml-[calc(var(--msg-text-inset,0.5rem)_-_0.25rem)] mt-6 flex items-center transition-transform duration-300 ease-out\">\n<div class=\"p-1 -translate-x-px\" data-testid=\"chat-footer-spark\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div aria-hidden=\"true\" data-testid=\"transcript-end\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u8fd9\u4e2a\u95ee\u9898\u8303\u56f4\u5176\u5b9e\u975e\u5e38\u5927\uff0c&#8221;\u6700<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"colormag_page_container_layout":"default_layout","colormag_page_sidebar_layout":"default_layout","footnotes":""},"categories":[24],"tags":[],"class_list":["post-7714","post","type-post","status-publish","format-standard","hentry","category-value_docs"],"_links":{"self":[{"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/posts\/7714","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/comments?post=7714"}],"version-history":[{"count":1,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/posts\/7714\/revisions"}],"predecessor-version":[{"id":7715,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/posts\/7714\/revisions\/7715"}],"wp:attachment":[{"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/media?parent=7714"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/categories?post=7714"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/tags?post=7714"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}