{"id":59062,"date":"2025-08-16T20:50:12","date_gmt":"2025-08-16T12:50:12","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/59062.html"},"modified":"2025-08-16T20:50:12","modified_gmt":"2025-08-16T12:50:12","slug":"k8sday08%e6%b7%b1%e5%85%a5%e6%8e%a7%e5%88%b6%e5%99%a8%ef%bc%883-3%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/59062.html","title":{"rendered":"k8sday08\u6df1\u5165\u63a7\u5236\u5668\uff083\/3\uff09"},"content":{"rendered":"<p id=\"main-toc\">\u76ee\u5f55<\/p>\n<p id=\"DaemonSet%EF%BC%88ds%EF%BC%89-toc\" style=\"margin-left:0px\">DaemonSet&#xff08;ds&#xff09;<\/p>\n<p id=\"%E4%B8%80%E3%80%81%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6-toc\" style=\"margin-left:80px\">\u4e00\u3001\u914d\u7f6e\u6587\u4ef6<\/p>\n<p id=\"1%E3%80%81%E4%B8%BE%E4%BE%8B-toc\" style=\"margin-left:120px\">1\u3001\u4e3e\u4f8b<\/p>\n<p id=\"2%E3%80%81%E5%8F%AF%E8%83%BD%E9%97%AE%E9%A2%98-toc\" style=\"margin-left:120px\">2\u3001\u53ef\u80fd\u95ee\u9898<\/p>\n<p id=\"3%E3%80%81%E9%AA%8C%E8%AF%81%E6%88%90%E5%8A%9F-toc\" style=\"margin-left:120px\">3\u3001\u9a8c\u8bc1\u6210\u529f<\/p>\n<p id=\"%E4%BA%8C%E3%80%81%E8%8A%82%E7%82%B9%E9%80%89%E6%8B%A9%E5%99%A8-toc\" style=\"margin-left:80px\">\u4e8c\u3001\u8282\u70b9\u9009\u62e9\u5668<\/p>\n<p id=\"1%E3%80%81%E6%B7%BB%E5%8A%A0%E6%A0%87%E7%AD%BE-toc\" style=\"margin-left:120px\">1\u3001\u6dfb\u52a0\u6807\u7b7e<\/p>\n<p id=\"2%E3%80%81%E9%AA%8C%E8%AF%81%E6%B7%BB%E5%8A%A0-toc\" style=\"margin-left:120px\">2\u3001\u9a8c\u8bc1\u6dfb\u52a0<\/p>\n<p id=\"3%E3%80%81%E6%B7%BB%E5%8A%A0%E8%8A%82%E7%82%B9%E9%80%89%E6%8B%A9%E5%99%A8-toc\" style=\"margin-left:120px\">3\u3001\u6dfb\u52a0\u8282\u70b9\u9009\u62e9\u5668<\/p>\n<p id=\"4%E3%80%81%E5%BA%94%E7%94%A8%E6%96%87%E4%BB%B6%E5%B9%B6%E9%AA%8C%E8%AF%81-toc\" style=\"margin-left:120px\">4\u3001\u5e94\u7528\u6587\u4ef6\u5e76\u9a8c\u8bc1<\/p>\n<p id=\"%E4%B8%89%E3%80%81%E6%BB%9A%E5%8A%A8%E6%9B%B4%E6%96%B0-toc\" style=\"margin-left:80px\">\u4e09\u3001\u6eda\u52a8\u66f4\u65b0<\/p>\n<p id=\"Horizontal%20Poad%20Autoscaler(HPA)-toc\" style=\"margin-left:40px\">Horizontal Poad Autoscaler(HPA)<\/p>\n<p id=\"1%E3%80%81%E9%83%A8%E7%BD%B2%E8%B5%84%E6%BA%90%E7%9B%91%E6%8E%A7-toc\" style=\"margin-left:80px\">1\u3001\u90e8\u7f72\u8d44\u6e90\u76d1\u63a7<\/p>\n<p id=\"%E2%85%A0%E3%80%81%E4%B8%8B%E8%BD%BD-toc\" style=\"margin-left:120px\">\u2160\u3001\u4e0b\u8f7d<\/p>\n<p id=\"%E2%91%A0%E3%80%81%E5%AE%98%E6%96%B9%E4%B8%80%E9%94%AE%20YAML-toc\" style=\"margin-left:160px\">\u2460\u3001\u5b98\u65b9\u4e00\u952e YAML<\/p>\n<p id=\"%E2%91%A1%E3%80%81git%E5%85%8B%E9%9A%86-toc\" style=\"margin-left:160px\">\u2461\u3001git\u514b\u9686<\/p>\n<p id=\"%E2%91%A2%E3%80%81%E6%89%8B%E5%8A%A8%E4%B8%8B%E8%BD%BD%E4%BA%8C%E8%BF%9B%E5%88%B6-toc\" style=\"margin-left:160px\">\u2462\u3001\u624b\u52a8\u4e0b\u8f7d\u4e8c\u8fdb\u5236<\/p>\n<p id=\"%E2%91%A3%E3%80%81%E6%8B%89%E5%8F%96metrics-server%20%E9%95%9C%E5%83%8F-toc\" style=\"margin-left:160px\">\u2463\u3001\u62c9\u53d6metrics-server \u955c\u50cf<\/p>\n<p id=\"%E2%85%A1%E3%80%81%E9%AA%8C%E8%AF%81-toc\" style=\"margin-left:120px\">\u2161\u3001\u9a8c\u8bc1<\/p>\n<p id=\"%E2%91%A0%E3%80%81%E5%A6%82%E6%9E%9C%E4%B8%8B%E8%BD%BD%E7%9A%84%E6%98%AF%E9%95%9C%E5%83%8F-toc\" style=\"margin-left:160px\">\u2460\u3001\u5982\u679c\u4e0b\u8f7d\u7684\u662f\u955c\u50cf<\/p>\n<p id=\"%E2%91%A1%E3%80%81%E4%B8%8B%E8%BD%BD%E7%9A%84%E6%98%AF%E4%BA%8C%E8%BF%9B%E5%88%B6-toc\" style=\"margin-left:160px\">\u2461\u3001\u4e0b\u8f7d\u7684\u662f\u4e8c\u8fdb\u5236<\/p>\n<p id=\"%E2%85%A2%E3%80%81%E6%88%91%E8%87%AA%E5%B7%B1%E7%9A%84%E5%81%9A%E6%B3%95-toc\" style=\"margin-left:120px\">\u2162\u3001\u6211\u81ea\u5df1\u7684\u505a\u6cd5<\/p>\n<p id=\"%E2%91%A0%E3%80%81%E4%B8%8B%E8%BD%BD%E4%BA%8C%E8%BF%9B%E5%88%B6%E6%96%87%E4%BB%B6-toc\" style=\"margin-left:160px\">\u2460\u3001\u4e0b\u8f7d\u4e8c\u8fdb\u5236\u6587\u4ef6<\/p>\n<p id=\"%E2%91%A1%E3%80%81%E9%85%8D%E7%BD%AEdockerfile-toc\" style=\"margin-left:160px\">\u2461\u3001\u914d\u7f6edockerfile<\/p>\n<p id=\"%E2%91%A2%E3%80%81%E6%89%93%E5%8C%85%E6%88%90%E9%95%9C%E5%83%8F-toc\" style=\"margin-left:160px\">\u2462\u3001\u6253\u5305\u6210\u955c\u50cf<\/p>\n<p id=\"%E2%80%8B%E7%BC%96%E8%BE%91-toc\" style=\"margin-left:160px\">\u200b\u7f16\u8f91<\/p>\n<p id=\"%E2%91%A3%E3%80%81%E5%BA%94%E7%94%A8%E5%9C%A8%E6%88%91%E7%9A%84%E9%9B%86%E7%BE%A4-toc\" style=\"margin-left:160px\">\u2463\u3001\u5e94\u7528\u5728\u6211\u7684\u96c6\u7fa4<\/p>\n<p id=\"%E2%80%8B%E7%BC%96%E8%BE%91-toc\" style=\"margin-left:160px\">\u200b\u7f16\u8f91<\/p>\n<p id=\"%E2%91%A4%E3%80%81%E4%B8%8B%E8%BD%BD%E5%AE%98%E6%96%B9yaml%E6%96%87%E4%BB%B6-toc\" style=\"margin-left:160px\">\u2464\u3001\u4e0b\u8f7d\u5b98\u65b9yaml\u6587\u4ef6<\/p>\n<p id=\"%E2%91%A5%E3%80%81%E7%BC%96%E8%BE%91%E5%AE%98%E6%96%B9yaml%E6%96%87%E4%BB%B6-toc\" style=\"margin-left:160px\">\u2465\u3001\u7f16\u8f91\u5b98\u65b9yaml\u6587\u4ef6<\/p>\n<p id=\"%E2%91%A6%E3%80%81%E9%81%87%E5%88%B0%E7%9A%84%E9%97%AE%E9%A2%98-toc\" style=\"margin-left:160px\">\u2466\u3001\u9047\u5230\u7684\u95ee\u9898<\/p>\n<p id=\"%E2%91%A7%E3%80%81%E9%AA%8C%E8%AF%81-toc\" style=\"margin-left:160px\">\u2467\u3001\u9a8c\u8bc1<\/p>\n<p id=\"2%E3%80%81%E5%87%86%E5%A4%87%E6%9C%8D%E5%8A%A1%E5%BA%94%E7%94%A8%EF%BC%88%E5%A6%82%E6%9E%9C%E4%BD%A0%E5%85%A8%E5%88%A0%E4%BA%86%E7%9A%84%E8%AF%9D%EF%BC%89-toc\" style=\"margin-left:80px\">2\u3001\u51c6\u5907\u670d\u52a1\u5e94\u7528&#xff08;\u5982\u679c\u4f60\u5168\u5220\u4e86\u7684\u8bdd&#xff09;<\/p>\n<p id=\"3%E3%80%81%E9%85%8D%E7%BD%AEHPA-toc\" style=\"margin-left:80px\">3\u3001\u914d\u7f6eHPA<\/p>\n<p id=\"%E2%80%8B%E7%BC%96%E8%BE%91-toc\" style=\"margin-left:80px\">\u200b\u7f16\u8f91<\/p>\n<p id=\"4%E3%80%81%E5%8E%8B%E5%8A%9B%E6%B5%8B%E8%AF%95-toc\" style=\"margin-left:80px\">4\u3001\u538b\u529b\u6d4b\u8bd5<\/p>\n<p id=\"JOB-toc\" style=\"margin-left:40px\">JOB<\/p>\n<hr id=\"hr-toc\" \/>\n<h2 id=\"DaemonSet%EF%BC%88ds%EF%BC%89\">DaemonSet&#xff08;ds&#xff09;<\/h2>\n<p>DaemonSet\u786e\u4fdd \u6240\u6709&#xff08;\u6216\u6307\u5b9a&#xff09;\u8282\u70b9 \u4e0a\u5404\u6709\u4e00\u4e2a Pod \u526f\u672c&#xff1b;\u65b0\u589e\u8282\u70b9\u81ea\u52a8\u8865&#xff0c;\u8282\u70b9\u4e0b\u7ebf\u81ea\u52a8\u5220\u3002\u9002\u7528\u4e8e\u65e5\u5fd7\u6536\u96c6&#xff08;Fluent Bit&#xff09;\u3001\u76d1\u63a7\u4ee3\u7406&#xff08;node-exporter&#xff09;\u3001\u7f51\u7edc\u63d2\u4ef6&#xff08;Calico&#xff09;\u3001\u5b58\u50a8\u63d2\u4ef6\u7b49 \u7cfb\u7edf\u7ea7\u5b88\u62a4\u8fdb\u7a0b\u3002<\/p>\n<h4 id=\"%E4%B8%80%E3%80%81%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6\">\u4e00\u3001\u914d\u7f6e\u6587\u4ef6<\/h4>\n<h5 id=\"1%E3%80%81%E4%B8%BE%E4%BE%8B\">1\u3001\u4e3e\u4f8b<\/h5>\n<p>\u4ee5\u4e0b\u7ed9\u51fa\u4e00\u4efd\u57fa\u7840\u7684DaemonSet\u7684yaml\u521b\u5efa\u6587\u4ef6&#xff0c;\u5e76\u7ed9\u51fa\u6bcf\u4e00\u6b65\u7684\u89e3\u91ca&#xff1a;<\/p>\n<p>\u6ce8\u610f\u53ea\u7ed9\u51fa\u57fa\u672c\u7684\u914d\u7f6e&#xff0c;\u5176\u4ed6\u914d\u7f6e\u5982\u8282\u70b9\u4eb2\u548c\u3001\u5bb9\u5fcd\u5ea6\u7b49\u7b49&#xff0c;\u5982\u6709\u9700\u8981&#xff0c;\u81ea\u884c\u914d\u7f6e~<\/p>\n<p> apiVersion: apps\/v1 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0# DaemonSet \u7684API\u7248\u672c<br \/>\n  kind: DaemonSet \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0# \u58f0\u660e\u8d44\u6e90\u7c7b\u578b\u662f DaemonSet<br \/>\n  metadata: \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0# DaemonSet \u7684\u5143\u4fe1\u606f<br \/>\n    name: fluent \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 # DaemonSet \u7684\u540d\u79f0&#xff08;\u81ea\u5b9a\u4e49&#xff09;<br \/>\n  \u200b<br \/>\n  spec: \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0# DaemonSet \u89c4\u7ea6&#xff08;\u671f\u671b\u72b6\u6001&#xff09;<br \/>\n    selector: \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0# \u9009\u62e9\u5668<br \/>\n   \u00a0  matchLabels: \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 # \u914d\u5907\u6807\u7b7e&#xff0c;\u8868\u793a\u4e0b\u65b9\u7684 Pod \u6a21\u677f\u8981\u6709app: fluent-bit<br \/>\n   \u00a0 \u00a0  app: fluent-bit<br \/>\n    template: \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0# Pod \u6a21\u677f<br \/>\n   \u00a0  metadata: \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0# Pod \u7684\u5143\u4fe1\u606f<br \/>\n   \u00a0 \u00a0  labels: \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0# Pod \u7684\u6807\u7b7e&#xff0c;\u8981\u548c\u4e0a\u65b9\u7684\u5339\u914d\u6807\u7b7e\u76f8\u540c<br \/>\n   \u00a0 \u00a0 \u00a0  app: fluent-bit<br \/>\n   \u00a0  spec: \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0# Pod \u7684\u89c4\u7ea6&#xff08;\u671f\u671b\u72b6\u6001&#xff09;<br \/>\n   \u00a0 \u00a0  volumes: \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 # \u58f0\u660e\u6570\u636e\u5377<br \/>\n   \u00a0 \u00a0 \u00a0  &#8211; name: varlog \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 # \u6570\u636e\u5377\u540d\u79f0&#xff08;\u81ea\u5b9a\u4e49&#xff09;<br \/>\n   \u00a0 \u00a0 \u00a0 \u00a0  hostPath:<br \/>\n   \u00a0 \u00a0 \u00a0 \u00a0 \u00a0  path: \/var\/log \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 # \u6765\u81ea\u5bbf\u4e3b\u673a\u7684 \/var\/log &#xff0c;\u662f\u5bbf\u4e3b\u673a\u771f\u5b9e\u76ee\u5f55<br \/>\n   \u00a0 \u00a0  containers: \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0# Pod \u7ba1\u7406\u7684\u5bb9\u5668<br \/>\n   \u00a0 \u00a0 \u00a0  &#8211; name: fluent-bit \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 # \u5bb9\u5668\u540d\u79f0&#xff08;\u81ea\u5b9a\u4e49&#xff09;<br \/>\n   \u00a0 \u00a0 \u00a0 \u00a0  image: fluent\/fluent-bit:2.1 # \u5bb9\u5668\u7684\u955c\u50cf&#xff0c;\u540e\u9762\u6307\u5b9a\u4e86\u7248\u672c<br \/>\n   \u00a0 \u00a0 \u00a0 \u00a0  volumeMounts: \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0# \u4f7f\u7528\u6570\u636e\u5377<br \/>\n   \u00a0 \u00a0 \u00a0 \u00a0 \u00a0  &#8211; name: varlog<br \/>\n   \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0  mountPath: \/var\/log \u00a0 \u00a0 \u00a0# \u6302\u8f7d\u5230\u5bb9\u5668\u5185\u7684 \/var\/log &#xff0c;\u662f\u5bb9\u5668\u91cc\u8bbf\u95ee\u7684\u76ee\u5f55<br \/>\n    updateStrategy: \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0# \u66f4\u65b0\u7b56\u7565<br \/>\n   \u00a0  type: RollingUpdate \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0# \u8fd9\u91cc\u7684\u66f4\u65b0\u7b56\u7565\u662f\u6eda\u52a8\u66f4\u65b0&#xff0c;\u4e5f\u53ef\u4ee5\u8bbe\u7f6e\u4e3aOnDelete <\/p>\n<p>\u6ce8\u610f&#xff1a;DaemonSet\u6ca1\u6709replicas \u7684\u6982\u5ff5&#xff0c;\u5b88\u62a4\u8fdb\u7a0b\u7684\u521b\u5efa\u662f\u6839\u636e\u8282\u70b9\u521b\u5efa&#xff0c;\u5339\u914d\u591a\u5c11\u8282\u70b9\u5c31\u662f\u591a\u5c11&#xff0c;\u4e00\u4e2a\u8282\u70b9\u53ea\u6709\u4e00\u4e2a&#xff0c;\u6ca1\u6709\u526f\u672c\u6570\u7684\u6982\u5ff5&#xff0c;\u5373\u65e0\u6cd5\u81ea\u52a8\u6269\u5bb9\u4ec0\u4e48\u7684<\/p>\n<h5 id=\"2%E3%80%81%E5%8F%AF%E8%83%BD%E9%97%AE%E9%A2%98\">2\u3001\u53ef\u80fd\u95ee\u9898<\/h5>\n<p>\u8fd8\u662f\u76f8\u540c\u7684\u95ee\u9898&#xff0c;\u53ef\u80fd\u662f\u6211\u81ea\u5df1\u7684\u7f51\u7edc\u95ee\u9898&#xff0c;\u624b\u52a8\u62c9\u53d6\u955c\u50cf\u662f\u6210\u529f\u7684&#xff0c;\u4f46\u662f\u521b\u5efaDaemonSet\u65f6\u4ecd\u7136\u63d0\u793a\u65e0\u6cd5\u4ecedocker hub\u62c9\u53d6\u955c\u50cf<\/p>\n<p>\u89e3\u51b3\u65b9\u6848&#xff1a;\u5c06\u672c\u5730 Docker \u955c\u50cf\u52a0\u8f7d\u5230 Kind \u96c6\u7fa4&#xff0c;\u7ed5\u8fc7 Docker Hub \u62c9\u53d6&#xff0c;KinD \u7684\u8282\u70b9\u672c\u8d28\u662f Docker \u5bb9\u5668&#xff0c;kind load \u4f1a\u5c06\u672c\u5730\u955c\u50cf\u5bfc\u5165\u5230\u8fd9\u4e9b\u8282\u70b9\u4e2d&#xff0c;\u4f7f Pod \u53ef\u76f4\u63a5\u4f7f\u7528\u3002<\/p>\n<p>  kind load docker-image fluent\/fluent-bit:2.1 &#8211;name &lt;\u4f60\u8981\u62c9\u53d6\u5230\u7684\u96c6\u7fa4\u540d\u79f0&gt; <\/p>\n<p>\u6210\u529f\u540e\u53ef\u5f97\u5230\u7c7b\u4f3c\u4fe1\u606f&#xff1a;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"154\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250816124952-68a07e70e6273.png\" width=\"1599\" \/><\/p>\n<p>\u4e4b\u540e\u901a\u8fc7\u5e94\u7528yaml\u6587\u4ef6\u521b\u5efaStatefulSet\u5373\u53ef&#xff1a;<\/p>\n<p>  kubectl apply -f &lt;\u4f60\u81ea\u5df1\u7684statefulset\u7684\u914d\u7f6e\u6587\u4ef6\u540d\u79f0&gt; <\/p>\n<h5 id=\"3%E3%80%81%E9%AA%8C%E8%AF%81%E6%88%90%E5%8A%9F\">3\u3001\u9a8c\u8bc1\u6210\u529f<\/h5>\n<p>\u9a8c\u8bc1\u4f7f\u7528\u5982\u4e0b\u65b9\u6cd5&#xff1a;<\/p>\n<p>  # \u67e5\u770b\u5df2\u521b\u5efa\u7684 daemonset<br \/>\n  kubectl get daemonset<br \/>\n  \u200b<br \/>\n  # \u67e5\u770b\u5df2\u6709\u7684 Pod &#xff0c;\u5982\u679c\u521b\u5efa\u6210\u529f\u4f1a\u591a\u51fa2\u4e2a<br \/>\n  # \u56e0\u4e3a\u672a\u9009\u62e9\u90e8\u7f72\u5230\u54ea\u4e2a\u8282\u70b9&#xff0c;\u6240\u4ee5\u9664\u4e86\u4e3b\u8282\u70b9\u5916&#xff0c;\u7ed9\u5269\u4e0b\u76842\u4e2a\u5b50\u8282\u70b9\u90fd\u90e8\u7f72\u4e86<br \/>\n  kubectl get po <\/p>\n<p>\u6700\u7ec8\u53ef\u5f97\u5230\u7c7b\u4f3c\u4fe1\u606f\u5373\u521b\u5efa\u6210\u529f&#xff1a;<img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"453\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250816124955-68a07e730248c.png\" width=\"1600\" \/><\/p>\n<h4 id=\"%E4%BA%8C%E3%80%81%E8%8A%82%E7%82%B9%E9%80%89%E6%8B%A9%E5%99%A8\">\u4e8c\u3001\u8282\u70b9\u9009\u62e9\u5668<\/h4>\n<p>\u521b\u5efaDaemonSet\u65f6&#xff0c;\u5982\u679c\u4f60\u4e0d\u6307\u5b9a\u4f60\u8981\u90e8\u7f72\u7684\u8282\u70b9&#xff0c;DaemonSet\u5c06\u4f1a\u9ed8\u8ba4\u90e8\u7f72\u5728\u975e\u4e3b\u8282\u70b9\u4e0a&#xff0c;\u800c\u8282\u70b9\u9009\u62e9\u5668&#xff08;nodeselector&#xff09;\u5c31\u662f\u5e2e\u52a9\u6211\u4eec\u6307\u5b9a\u8981\u90e8\u7f72\u8282\u70b9\u7684\u5de5\u5177<\/p>\n<h5 id=\"1%E3%80%81%E6%B7%BB%E5%8A%A0%E6%A0%87%E7%AD%BE\">1\u3001\u6dfb\u52a0\u6807\u7b7e<\/h5>\n<p>\u4e3a\u4f60\u60f3\u8981\u90e8\u7f72\u7684\u8282\u70b9\u6dfb\u52a0\u5bf9\u5e94\u6807\u7b7e&#xff1a;<\/p>\n<p>   # \u8fd9\u91cc\u7684no\u662fnode\u8282\u70b9\u7684\u7b80\u79f0<br \/>\n   kubectl label no &lt;\u8981\u90e8\u7f72\u7684\u8282\u70b9&gt; &lt;\u8981\u52a0\u7684\u6807\u7b7e&gt; <\/p>\n<h5 id=\"2%E3%80%81%E9%AA%8C%E8%AF%81%E6%B7%BB%E5%8A%A0\">2\u3001\u9a8c\u8bc1\u6dfb\u52a0<\/h5>\n<p>  kubectl get no &#8211;show-labels <\/p>\n<p>\u53ef\u5f97\u5230\u7c7b\u4f3c\u7ed3\u679c&#xff1a;<img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"230\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250816124958-68a07e7609b95.png\" width=\"1600\" \/><\/p>\n<h5 id=\"3%E3%80%81%E6%B7%BB%E5%8A%A0%E8%8A%82%E7%82%B9%E9%80%89%E6%8B%A9%E5%99%A8\">3\u3001\u6dfb\u52a0\u8282\u70b9\u9009\u62e9\u5668<\/h5>\n<p>  # \u4f4d\u4e8e Pod \u6a21\u677f\u7684\u89c4\u7ea6\u5185&#xff0c;\u548c\u5bb9\u5668\u540c\u7ea7<br \/>\n  template:<br \/>\n    spec:<br \/>\n      nodeSelector: \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0# \u8282\u70b9\u9009\u62e9\u5668<br \/>\n   \u00a0  type: slave \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0# \u8981\u5339\u914d\u7684\u8282\u70b9\u6240\u5177\u6709\u7684\u6807\u7b7e <\/p>\n<h5 id=\"4%E3%80%81%E5%BA%94%E7%94%A8%E6%96%87%E4%BB%B6%E5%B9%B6%E9%AA%8C%E8%AF%81\">4\u3001\u5e94\u7528\u6587\u4ef6\u5e76\u9a8c\u8bc1<\/h5>\n<p>  # \u5e94\u7528\u6587\u4ef6<br \/>\n  kubectl apply -f &lt;\u4f60\u81ea\u5df1\u7684daemonset\u6587\u4ef6&gt;<br \/>\n  \u200b<br \/>\n  # \u83b7\u53d6daemonset&#xff0c;ds\u662fdaemonset\u7684\u7b80\u5199<br \/>\n  kubectl get ds<br \/>\n  # \u67e5\u770b Pod &#xff0c;\u770bdaemonset\u521b\u5efa\u4e86\u591a\u5c11\u5bb9\u5668<br \/>\n  kubectl get po <\/p>\n<p>\u5bf9\u6bd4\u5982\u56fe&#xff1a;&#xff08;\u6211\u5c06\u5e94\u7528\u914d\u7f6e\u6587\u4ef6\u524d\u540e\u5747\u622a\u5c4f&#xff0c;\u5927\u5bb6\u53ef\u5bf9\u6bd4\u770b\u4e00\u4e0b&#xff09;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"829\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250816124959-68a07e778d3a7.png\" width=\"1600\" \/><\/p>\n<p>\u7531\u4e8e\u6211\u53ea\u7ed9\u4e00\u4e2a\u5b50\u8282\u70b9\u52a0\u4e86\u6807\u7b7e&#xff0c;\u6240\u4ee5\u90e8\u7f72\u4e86DaemonSet\u7684\u8282\u70b9\u53ea\u6709\u52a0\u4e86type&#061; slave \u7684&#xff0c;\u53e6\u4e00\u4e2a\u6ca1\u6709\u52a0\u7684\u5c31\u6ca1\u6709\u7f72DaemonSet&#xff0c;\u8981\u60f3\u8ba9\u53e6\u4e00\u4e2a\u8282\u70b9\u4e5f\u52a0\u4e0a\u5b88\u62a4\u8fdb\u7a0b&#xff0c;\u53ea\u8981\u4e5f\u52a0\u4e0a\u6807\u7b7etype&#061; slave\u5373\u53ef<\/p>\n<h4 id=\"%E4%B8%89%E3%80%81%E6%BB%9A%E5%8A%A8%E6%9B%B4%E6%96%B0\">\u4e09\u3001\u6eda\u52a8\u66f4\u65b0<\/h4>\n<p>DaemonSet\u7684\u6eda\u52a8\u66f4\u65b0\u9ed8\u8ba4\u662fRollingUpdate&#xff0c;\u4e5f\u6709OnDelete&#xff0c;Pod \u6a21\u677f\u4efb\u4f55\u5b57\u6bb5&#xff08;env\u3001volume\u3001\u8d44\u6e90\u9650\u5236\u3001\u6807\u7b7e\u7b49&#xff09;\u53d1\u751f\u53d8\u5316&#xff0c; DaemonSet\u5c31\u4f1a\u8fdb\u884c\u66f4\u65b0<\/p>\n<p>\u4e0b\u65b9\u662f\u5bf9Deployment\u3001StatefulSet\u3001DaemonSet\u7684\u6eda\u52a8\u66f4\u65b0\u7b56\u7565\u5bf9\u6bd4\u603b\u7ed3<\/p>\n<table>\n<tr>\u63a7\u5236\u5668\u5185\u7f6e\u7b56\u7565\u7c7b\u578b\u662f\u5426\u652f\u6301\u5e76\u53d1\/\u5e76\u884c\u662f\u5426\u652f\u6301\u5206\u533a\/\u91d1\u4e1d\u96c0\u662f\u5426\u652f\u6301\u6682\u505c\/\u7ee7\u7eed\u662f\u5426\u652f\u6301\u56de\u6eda\u66f4\u65b0\u987a\u5e8f\/\u7279\u70b9<\/tr>\n<tbody>\n<tr>\n<td>Deployment<\/td>\n<td>RollingUpdate&#xff08;\u9ed8\u8ba4&#xff09;\u3001Recreate<\/td>\n<td>\u2705&#xff08;maxSurge&#043;maxUnavailable&#xff09;<\/td>\n<td>\u2705&#xff08;partition \u901a\u8fc7 Argo\/Kruise \u7b49\u65c1\u8def\u5b9e\u73b0&#xff09;<\/td>\n<td>\u2705&#xff08;kubectl rollout pause\/resume&#xff09;<\/td>\n<td>\u2705&#xff08;kubectl rollout undo&#xff09;<\/td>\n<td>\u65e0\u5e8f\u5e76\u884c&#xff0c;\u53ef\u6279\u91cf<\/td>\n<\/tr>\n<tr>\n<td>StatefulSet<\/td>\n<td>RollingUpdate&#xff08;\u9ed8\u8ba4&#xff09;\u3001OnDelete<\/td>\n<td>\u274c&#xff08;\u4e00\u6b21\u53ea\u52a8\u4e00\u4e2a Pod&#xff09;<\/td>\n<td>\u2705&#xff08;\u539f\u751f partition \u5b57\u6bb5&#xff09;<\/td>\n<td>\u274c&#xff08;\u65e0\u5b98\u65b9\u6682\u505c&#xff09;<\/td>\n<td>\u2705&#xff08;kubectl rollout undo&#xff09;<\/td>\n<td>\u9006\u5e8f&#xff08;\u4ece\u6700\u9ad8\u5e8f\u53f7\u5f00\u59cb&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>DaemonSet<\/td>\n<td>RollingUpdate&#xff08;\u9ed8\u8ba4&#xff09;\u3001OnDelete<\/td>\n<td>\u2705&#xff08;maxUnavailable \u8282\u70b9\u7ea7\u5e76\u53d1&#xff09;<\/td>\n<td>\u2705&#xff08;OpenKruise partition \u6216\u624b\u5de5\u5206\u6279&#xff09;<\/td>\n<td>\u274c&#xff08;\u65e0\u5b98\u65b9\u6682\u505c&#xff09;<\/td>\n<td>\u2705&#xff08;kubectl rollout undo&#xff09;<\/td>\n<td>\u6309\u8282\u70b9\u6eda\u52a8&#xff0c;\u4e00\u8282\u70b9\u4e00 Pod<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4eb2\u548c\u529b\u3001\u6c61\u70b9\u5bb9\u5fcd\u5728\u540e\u9762\u7684\u5b66\u4e60\u4e2d\u5c55\u5f00<\/p>\n<\/p>\n<h3 id=\"Horizontal%20Poad%20Autoscaler(HPA)\">Horizontal Poad Autoscaler(HPA)<\/h3>\n<p>Horizontal Pod Autoscaler&#xff08;HPA&#xff09;\u662f Kubernetes \u5b98\u65b9\u63d0\u4f9b\u7684 \u6c34\u5e73 Pod \u81ea\u52a8\u6269\u7f29\u5bb9\u63a7\u5236\u5668&#xff0c;\u53ef\u4ee5\u6839\u636e CPU\u3001\u5185\u5b58\u6216\u81ea\u5b9a\u4e49\u6307\u6807\u5b9e\u65f6\u8c03\u6574 Deployment \/ StatefulSet \/ ReplicaSet \u7684 Pod \u526f\u672c\u6570&#xff0c;\u4e1a\u52a1\u9ad8\u5cf0\u81ea\u52a8\u52a0\u526f\u672c&#xff0c;\u4f4e\u8c37\u81ea\u52a8\u51cf\u526f\u672c&#xff0c;\u65e0\u9700\u4eba\u5de5\u5e72\u9884\u3002<\/p>\n<p>\u5176\u5b9eHorizontal Pod Autoscaler&#xff08;HPA&#xff09;\u5c31\u662f\u901a\u8fc7\u8ffd\u8e2a\u5206\u6790Pod\u7684\u8d1f\u8f7d\u53d8\u5316&#xff0c;\u6765\u81ea\u52a8\u8c03\u6574Pod\u7684\u526f\u672c\u6570\u3002\u6211\u4eec\u539f\u6765\u662f\u901a\u8fc7kubectl scale\u6765\u6269\u5bb9\u7f29\u5bb9\u6216\u8005\u662f\u6539\u53d8yaml\u6587\u4ef6&#xff0c;\u8fd9\u6bd4\u8f83\u9ebb\u70e6&#xff0c;\u901a\u8fc7HPA\u5c31\u53ef\u4ee5\u8ba9\u5176\u81ea\u52a8\u6269\u5bb9\u7f29\u5bb9<\/p>\n<h4 id=\"1%E3%80%81%E9%83%A8%E7%BD%B2%E8%B5%84%E6%BA%90%E7%9B%91%E6%8E%A7\">1\u3001\u90e8\u7f72\u8d44\u6e90\u76d1\u63a7<\/h4>\n<p>HPA\u8981\u60f3\u5b9e\u73b0\u81ea\u52a8\u6c34\u5e73 Pod \u81ea\u52a8\u6269\u7f29\u5bb9&#xff0c;\u5176\u524d\u63d0\u662f\u8981\u5bf9\u4f60\u7684Pod\u7684\u8d1f\u8f7d\u8fdb\u884c\u76d1\u63a7\u5206\u6790&#xff0c;\u6240\u4ee5\u6211\u4eec\u9700\u8981\u4e00\u4e2a\u63d2\u4ef6\u5e2e\u52a9\u6211\u4eec\u6b63\u786e\u5206\u6790\u76d1\u63a7&#xff0c;\u8fd9\u91cc\u6211\u91c7\u7528\u5e38\u7528\u7684metrics-server\u3002<\/p>\n<p>metrics-server \u9ed8\u8ba4\u7531 Kubernetes \u5b98\u65b9 \u4ee5 Deployment &#043; Service \u7684\u5f62\u5f0f\u90e8\u7f72\u5728 kube-system \u547d\u540d\u7a7a\u95f4&#xff0c;\u5e76\u4f5c\u4e3a kube-controller-manager \u7684 Metrics API \u63d2\u4ef6 \u8fd0\u884c<\/p>\n<h5 id=\"%E2%85%A0%E3%80%81%E4%B8%8B%E8%BD%BD\">\u2160\u3001\u4e0b\u8f7d<\/h5>\n<p>\u4e0b\u8f7d\u6709\u591a\u79cd\u65b9\u6cd5&#xff0c;\u8fd9\u91cc\u6211\u63d0\u4f9b\u56db\u79cd&#xff1a;<\/p>\n<h6 id=\"%E2%91%A0%E3%80%81%E5%AE%98%E6%96%B9%E4%B8%80%E9%94%AE%20YAML\">\u2460\u3001\u5b98\u65b9\u4e00\u952e YAML<\/h6>\n<p>  # \u4e0b\u8f7d\u5e76\u76f4\u63a5\u5b89\u88c5\u6700\u65b0\u7248<br \/>\n  kubectl apply -f https:\/\/github.com\/kubernetes-sigs\/metrics-server\/releases\/latest\/download\/components.yaml<br \/>\n  \u200b<br \/>\n  # \u7b49 30-60 \u79d2<br \/>\n  kubectl get pods -n kube-system -l k8s-app&#061;metrics-server <\/p>\n<h6 id=\"%E2%91%A1%E3%80%81git%E5%85%8B%E9%9A%86\">\u2461\u3001git\u514b\u9686<\/h6>\n<p>  # \u5b89\u88c5git&#xff08;\u5982\u679c\u4f60\u6ca1\u6709\u5b89\u88c5\u8fc7\u7684\u8bdd&#xff09;<br \/>\n  yum install git -y<br \/>\n  \u200b<br \/>\n  # \u83b7\u53d6metrics-server<br \/>\n  git clone -b &lt;\u4f60\u8981\u4e0b\u8f7d\u7684\u7248\u672c\u53f7&gt; https:\/\/github.com\/kubernetes-sigs\/metrics-server<br \/>\n  \u200b<br \/>\n  # \u4fee\u6539\u914d\u7f6e<br \/>\n  # \u8fdb\u5165metrics-server\u7684deploy\u6587\u4ef6\u5939&#xff0c;\u627e\u5230\u4f60\u7684deployment\u7684yaml\u6587\u4ef6<br \/>\n  # \u6dfb\u52a0\u5982\u4e0b\u5185\u5bb9<br \/>\n  hostNetwork: true<br \/>\n  registry.cn-hangzhou.aliyuncs.com\/google_containers\/metrics-server:&lt;\u4f60\u8981\u4e0b\u8f7d\u7684\u7248\u672c\u53f7&gt;<br \/>\n  &#8211;kubelet-insecure-tls<br \/>\n  &#8211;kubelet-preferred-address-types&#061;InternalIP<br \/>\n  \u200b<br \/>\n  # \u6839\u636e\u96c6\u7fa4\u7248\u672c\u8fdb\u5165\u5bf9\u5e94\u5b50\u76ee\u5f55<br \/>\n  cd deploy\/kubernetes<br \/>\n  kubectl apply -f . <\/p>\n<h6 id=\"%E2%91%A2%E3%80%81%E6%89%8B%E5%8A%A8%E4%B8%8B%E8%BD%BD%E4%BA%8C%E8%BF%9B%E5%88%B6\">\u2462\u3001\u624b\u52a8\u4e0b\u8f7d\u4e8c\u8fdb\u5236<\/h6>\n<p>\u8fdb\u5165github\u7684metrics-server\u4e0b\u8f7d\u7f51\u5740https:\/\/github.com\/kubernetes-sigs\/metrics-server\/releases&#xff0c;\u9009\u62e9\u4f60\u8981\u4e0b\u8f7d\u7684\u7248\u672c&#xff0c;\u6307\u5b9a\u8def\u5f84\u5230\u672c\u5730\u540e\u518dkubectl apply -f &lt;\u4f60\u7684\u6587\u4ef6\u540d&gt;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"866\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250816125003-68a07e7b23405.png\" width=\"1600\" \/><\/p>\n<h6 id=\"%E2%91%A3%E3%80%81%E6%8B%89%E5%8F%96metrics-server%20%E9%95%9C%E5%83%8F\">\u2463\u3001\u62c9\u53d6metrics-server \u955c\u50cf<\/h6>\n<p> # \u6700\u65b0\u7248 v0.8.0<br \/>\n  docker pull registry.k8s.io\/metrics-server\/metrics-server:v0.8.0<br \/>\n  # \u955c\u50cf\u67b6\u6784&#xff1a;linux\/amd64&#xff0c;\u5927\u5c0f \u2248 82 MB [^124^] <\/p>\n<p>\u955c\u50cf\u5df2\u5185\u7f6e \/metrics-server \u53ef\u6267\u884c\u6587\u4ef6&#xff0c;\u65e0\u9700\u518d\u4e0b\u8f7d\u4e8c\u8fdb\u5236<\/p>\n<h5 id=\"%E2%85%A1%E3%80%81%E9%AA%8C%E8%AF%81\">\u2161\u3001\u9a8c\u8bc1<\/h5>\n<h6 id=\"%E2%91%A0%E3%80%81%E5%A6%82%E6%9E%9C%E4%B8%8B%E8%BD%BD%E7%9A%84%E6%98%AF%E9%95%9C%E5%83%8F\">\u2460\u3001\u5982\u679c\u4e0b\u8f7d\u7684\u662f\u955c\u50cf<\/h6>\n<p>  # \u67e5\u770bdocker\u91cc\u7684\u4f7f\u7528\u955c\u50cf\u5373\u53ef<br \/>\n  docker images <\/p>\n<h6 id=\"%E2%91%A1%E3%80%81%E4%B8%8B%E8%BD%BD%E7%9A%84%E6%98%AF%E4%BA%8C%E8%BF%9B%E5%88%B6\">\u2461\u3001\u4e0b\u8f7d\u7684\u662f\u4e8c\u8fdb\u5236<\/h6>\n<p>  ls -lh .\/metrics-server<br \/>\n  file .\/metrics-server<br \/>\n  \u200b<br \/>\n  # \u8f93\u51fa\u7c7b\u4f3c\u7ed3\u679c<br \/>\n  -rwxr-xr-x 1 root root 35M Jun 14 12:34 .\/metrics-server<br \/>\n  .\/metrics-server: ELF 64-bit LSB executable, x86-64, &#8230; <\/p>\n<p>\u6ce8\u610f\u4e0b\u8f7d\u5b8c\u4e8c\u8fdb\u5236\u6587\u4ef6\u540e&#xff0c;\u5efa\u8bae\u628a\u5b83\u6253\u5305\u6210\u955c\u50cf&#xff0c;\u5f53\u7136\u4f60\u4e5f\u53ef\u4ee5\u76f4\u63a5\u8dd1&#xff0c;\u5982\u679c\u53ea\u662f\u5355\u7247\u6d4b\u8bd5\u7684\u8bdd<\/p>\n<h5 id=\"%E2%85%A2%E3%80%81%E6%88%91%E8%87%AA%E5%B7%B1%E7%9A%84%E5%81%9A%E6%B3%95\">\u2162\u3001\u6211\u81ea\u5df1\u7684\u505a\u6cd5<\/h5>\n<h6 id=\"%E2%91%A0%E3%80%81%E4%B8%8B%E8%BD%BD%E4%BA%8C%E8%BF%9B%E5%88%B6%E6%96%87%E4%BB%B6\">\u2460\u3001\u4e0b\u8f7d\u4e8c\u8fdb\u5236\u6587\u4ef6<\/h6>\n<p>\u5c06\u4e0b\u8f7d\u7684\u4e8c\u8fdb\u5236\u6587\u4ef6\u653e\u5728&#034;E:\\\\cloud-native\\\\k8s\\\\metrics-server\\\\metrics-server-linux-amd64&#034;<\/p>\n<h6 id=\"%E2%91%A1%E3%80%81%E9%85%8D%E7%BD%AEdockerfile\">\u2461\u3001\u914d\u7f6edockerfile<\/h6>\n<p>\u5728\u548c\u4e8c\u8fdb\u5236\u6587\u4ef6\u540c\u76ee\u5f55\u4e0b\u7f16\u5199dockerfile&#xff1a;<\/p>\n<p>  FROM scratch<br \/>\n  COPY metrics-server-linux-amd64 \/metrics-server<br \/>\n  USER 65534<br \/>\n  EXPOSE 4443<br \/>\n  ENTRYPOINT [&#034;\/metrics-server&#034;] <\/p>\n<h6 id=\"%E2%91%A2%E3%80%81%E6%89%93%E5%8C%85%E6%88%90%E9%95%9C%E5%83%8F\">\u2462\u3001\u6253\u5305\u6210\u955c\u50cf<\/h6>\n<p>docker build -t metrics-server:v0.8.0<\/p>\n<p># \u9a8c\u8bc1<br \/>\ndocker images <\/p>\n<h6 id=\"%E2%80%8B%E7%BC%96%E8%BE%91\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"538\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250816125006-68a07e7e06a16.png\" width=\"1600\" \/><\/h6>\n<h6 id=\"%E2%91%A3%E3%80%81%E5%BA%94%E7%94%A8%E5%9C%A8%E6%88%91%E7%9A%84%E9%9B%86%E7%BE%A4\">\u2463\u3001\u5e94\u7528\u5728\u6211\u7684\u96c6\u7fa4<\/h6>\n<p>   kind load docker-image metrics-server:v0.8.0 &#8211;name my-multi-node-cluster1 <\/p>\n<h6 id=\"%E2%80%8B%E7%BC%96%E8%BE%91\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"142\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250816125008-68a07e8024ef7.png\" width=\"1600\" \/><\/h6>\n<h6 id=\"%E2%91%A4%E3%80%81%E4%B8%8B%E8%BD%BD%E5%AE%98%E6%96%B9yaml%E6%96%87%E4%BB%B6\">\u2464\u3001\u4e0b\u8f7d\u5b98\u65b9yaml\u6587\u4ef6<\/h6>\n<p>   wget https:\/\/github.com\/kubernetes-sigs\/metrics-server\/releases\/download\/v0.8.0\/components.yaml <\/p>\n<h6 id=\"%E2%91%A5%E3%80%81%E7%BC%96%E8%BE%91%E5%AE%98%E6%96%B9yaml%E6%96%87%E4%BB%B6\">\u2465\u3001\u7f16\u8f91\u5b98\u65b9yaml\u6587\u4ef6<\/h6>\n<p>  # \u5c06\u5b98\u65b9yaml\u6587\u4ef6\u4e2d\u7684\u955c\u50cf\u6539\u4e3a&#xff1a;<br \/>\n  image: metrics-server:v0.8.0<\/p>\n<p>  # \u5728spec.template.spec.containers[0].args\u5185\u6539\u4e3a&#xff1a;<br \/>\n  kubectl -n kube-system patch deployment metrics-server \\\\<br \/>\n   \u00a0&#8211;type&#061;&#039;json&#039; \\\\<br \/>\n   \u00a0-p&#061;&#039;[<br \/>\n   \u00a0 \u00a0 \u00a0  {&#034;op&#034;:&#034;add&#034;,&#034;path&#034;:&#034;\/spec\/template\/spec\/containers\/0\/args\/-&#034;,&#034;value&#034;:&#034;&#8211;kubelet-insecure-tls&#034;},<br \/>\n   \u00a0 \u00a0 \u00a0  {&#034;op&#034;:&#034;add&#034;,&#034;path&#034;:&#034;\/spec\/template\/spec\/containers\/0\/args\/-&#034;,&#034;value&#034;:&#034;&#8211;kubelet-preferred-address-types&#061;InternalIP,Hostname,InternalDNS,ExternalDNS,ExternalIP&#034;}<br \/>\n   \u00a0 \u00a0  ]&#039; <\/p>\n<h6 id=\"%E2%91%A6%E3%80%81%E9%81%87%E5%88%B0%E7%9A%84%E9%97%AE%E9%A2%98\">\u2466\u3001\u9047\u5230\u7684\u95ee\u9898<\/h6>\n<ul>\n<li>\n<p>\u5065\u5eb7\u68c0\u67e5\u5931\u8d25&#xff0c;\u63a2\u9488\u914d\u7f6e\u53ef\u80fd\u672a\u88ab\u6b63\u786e\u5e94\u7528&#xff0c;\u7aef\u53e3\u672a\u5bf9\u9f50<\/p>\n<\/li>\n<\/ul>\n<p>  # \u89e3\u51b3\u65b9\u6cd5<br \/>\n  apiVersion: v1<br \/>\n  kind: Service<br \/>\n  spec:<br \/>\n    ports:<br \/>\n   \u00a0  &#8211; port: 443<br \/>\n   \u00a0 \u00a0  targetPort: 4443 \u00a0# \u6307\u5411\u5bb9\u5668\u5b9e\u9645\u7aef\u53e3<br \/>\n   \u00a0 \u00a0  name: https<br \/>\n   \u00a0 \u00a0 \u00a0<br \/>\n  readinessProbe:<br \/>\n    httpGet:<br \/>\n   \u00a0  path: \/readyz<br \/>\n   \u00a0  port: 4443 \u00a0# \u76f4\u63a5\u5199\u6570\u5b57&#xff0c;\u4e0e &#8211;secure-port \u4e00\u81f4<br \/>\n   \u00a0  scheme: HTTPS<br \/>\n  livenessProbe:<br \/>\n    httpGet:<br \/>\n   \u00a0  path: \/livez<br \/>\n   \u00a0  port: 4443 \u00a0# \u540c\u4e0a<br \/>\n   \u00a0  scheme: HTTPS <\/p>\n<ul>\n<li>\n<p>\u5b83 \u8fde\u4e0d\u4e0a\u4efb\u4f55\u8282\u70b9\u7684 kubelet 10250 \u7aef\u53e3&#xff0c;\u5bfc\u81f4\u91c7\u96c6\u4e0d\u5230\u8282\u70b9\/\u5bb9\u5668\u6307\u6807&#xff0c;readiness \u63a2\u9488\u8fd4\u56de 500<\/p>\n<ul>\n<li>\n<p>metrics-server \u5728 Pod \u7f51\u7edc\u91cc\u62ff\u5230\u7684\u8282\u70b9 IP&#xff08;\u5982 10.244.x.x&#xff09;\u4e0d\u662f\u8282\u70b9\u5bbf\u4e3b\u673a\u7684\u771f\u5b9e IP&#xff1b;<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<ul>\n<li>\n<p>Kind \u8282\u70b9\u91cc\u7684 kubelet \u9ed8\u8ba4\u53ea\u76d1\u542c 127.0.0.1:10250&#xff0c;\u5916\u90e8 Pod \u65e0\u6cd5\u8bbf\u95ee\u3002<\/p>\n<\/li>\n<\/ul>\n<p>  # \u8ba9 metrics-server \u4f7f\u7528\u5bbf\u4e3b\u673a\u7f51\u7edc&#xff08;\u8fd9\u6837\u5b83\u5c31\u80fd\u8fde 127.0.0.1:10250&#xff09;<br \/>\n  kubectl -n kube-system patch deployment metrics-server \\\\<br \/>\n   \u00a0&#8211;type&#061;&#039;json&#039; \\\\<br \/>\n   \u00a0-p&#061;&#039;[{&#034;op&#034;:&#034;add&#034;,&#034;path&#034;:&#034;\/spec\/template\/spec\/hostNetwork&#034;,&#034;value&#034;:true}]&#039; <\/p>\n<h6 id=\"%E2%91%A7%E3%80%81%E9%AA%8C%E8%AF%81\">\u2467\u3001\u9a8c\u8bc1<\/h6>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"390\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250816125008-68a07e80a4798.png\" width=\"1600\" \/><\/p>\n<h4 id=\"2%E3%80%81%E5%87%86%E5%A4%87%E6%9C%8D%E5%8A%A1%E5%BA%94%E7%94%A8%EF%BC%88%E5%A6%82%E6%9E%9C%E4%BD%A0%E5%85%A8%E5%88%A0%E4%BA%86%E7%9A%84%E8%AF%9D%EF%BC%89\">2\u3001\u51c6\u5907\u670d\u52a1\u5e94\u7528&#xff08;\u5982\u679c\u4f60\u5168\u5220\u4e86\u7684\u8bdd&#xff09;<\/h4>\n<p>\u914d\u7f6e\u4e00\u4e2a\u6709\u8d44\u6e90\u9650\u5236\u7684Deployment&#xff0c;\u8fd9\u91cc\u6211\u4e0d\u6f14\u793a\u4e86&#xff0c;\u8be6\u60c5\u914d\u7f6e\u53ef\u4ee5\u770b\u6211\u7684k8sday06\u6df1\u5165\u63a7\u5236\u5668&#xff08;1\/3&#xff09;<\/p>\n<h4 id=\"3%E3%80%81%E9%85%8D%E7%BD%AEHPA\">3\u3001\u914d\u7f6eHPA<\/h4>\n<p>  apiVersion: autoscaling\/v2 \u00a0 \u00a0 \u00a0# \u81ea\u52a8\u7f29\u653e\u5668\u7684 API \u7248\u672c<br \/>\n  kind: HorizontalPodAutoscaler \u00a0 # \u58f0\u660e\u8d44\u6e90\u7c7b\u578b\u662f HPA<br \/>\n  metadata: \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 # \u5143\u6570\u636e<br \/>\n    name: web-hpa \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 # \u81ea\u52a8\u7f29\u653e\u5668\u7684\u540d\u79f0&#xff08;\u81ea\u5b9a\u4e49&#xff09;<br \/>\n  spec: \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 # \u81ea\u52a8\u7f29\u653e\u5668\u7684\u89c4\u7ea6&#xff08;\u671f\u671b\u72b6\u6001&#xff09;<br \/>\n    scaleTargetRef:<br \/>\n   \u00a0  apiVersion: apps\/v1<br \/>\n   \u00a0  kind: Deployment \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0# \u88ab\u81ea\u52a8\u7f29\u653e\u7684\u8d44\u6e90\u7c7b\u578b<br \/>\n   \u00a0  name: nginx-deployment1 \u00a0 \u00a0 # \u88ab\u81ea\u52a8\u7f29\u653e\u7684\u8d44\u6e90\u540d\u79f0&#xff08;\u5df2\u5b58\u5728\u7684&#xff09;<br \/>\n    minReplicas: 1 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0# \u6700\u5c0f\u526f\u672c\u6570<br \/>\n    maxReplicas: 5 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0# \u6700\u5927\u526f\u672c\u6570<br \/>\n   \u00a0# targetCPUUtilizationPercentage\u5df2\u7ecf\u5e9f\u9664&#xff0c;\u9700\u8981\u4f7f\u7528 metrics \u6307\u6807<br \/>\n   \u00a0# \u76ee\u6807 CPU \u5229\u7528\u7387&#xff08;%&#xff09;\u6307\u6807&#xff08;\u8bbe\u7f6e\u7684\u6bd4\u8f83\u5c0f\u65b9\u4fbf\u6d4b\u8bd5&#xff09;<br \/>\n    metrics:<br \/>\n    &#8211; type: Resource<br \/>\n   \u00a0  resource:<br \/>\n   \u00a0 \u00a0  name: cpu \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 # \u8d44\u6e90\u540d\u79f0&#xff08;\u81ea\u5b9a\u4e49&#xff09;<br \/>\n   \u00a0 \u00a0  target:<br \/>\n   \u00a0 \u00a0 \u00a0  type: Utilization<br \/>\n   \u00a0 \u00a0 \u00a0  averageUtilization: 3 \u00a0 # \u76ee\u6807 CPU \u5229\u7528\u7387&#xff08;%&#xff09;\u6307\u6807&#xff08;\u8bbe\u7f6e\u7684\u6bd4\u8f83\u5c0f\u65b9\u4fbf\u6d4b\u8bd5&#xff09; <\/p>\n<p>\u6ce8\u610f\u4f60\u7684deployment\u8981\u6709\u8d44\u6e90\u9650\u5236<\/p>\n<p>\u9a8c\u8bc1\u6210\u529f&#xff1a;<\/p>\n<p>  kubectl get hpa<br \/>\n   # \u521a\u5f00\u59cb\u53ef\u80fd\u5728\u4f60\u7684TARGETS\u90a3\u91cc\u663e\u793a\u662f &lt;unknown&gt;\/3%<br \/>\n   # \u8fc7\u4e00\u4f1a\u5c311%\/3% \u6b63\u5e38\u4e86&#xff08;\u4e0d\u5230 1min&#xff09;&#xff0c;\u5982\u679c\u65f6\u95f4\u4e45\u4e86\u8fd8\u662f&lt;unknown&gt;\/3%<br \/>\n   # \u53ef\u80fd\u662f\u4f60\u7684deployment\u6ca1\u6709\u9650\u5236\u8d44\u6e90\u7b49\u7b49 <\/p>\n<h4 id=\"%E2%80%8B%E7%BC%96%E8%BE%91\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"119\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250816125009-68a07e814ca91.png\" width=\"1536\" \/><\/h4>\n<h4 id=\"4%E3%80%81%E5%8E%8B%E5%8A%9B%E6%B5%8B%E8%AF%95\">4\u3001\u538b\u529b\u6d4b\u8bd5<\/h4>\n<p>\u7531\u4e8e\u4e0d\u77e5\u662f\u4e0d\u662f\u6211\u7684\u7f51\u7edc\u95ee\u9898&#xff0c;\u5728\u914d\u7f6e\u9ad8\u5e76\u53d1Deployment\u6d4b\u538b\u65f6&#xff0c;\u660e\u660e\u672c\u5730\u6709\u955c\u50cf\u5c31\u662f\u6b7b\u6d3b\u4e0d\u7528&#xff0c;\u5373\u4f7f\u6211\u5df2\u7ecf\u4f7f\u7528\u955c\u50cf\u6458\u8981\u6765\u8981\u6c42&#xff0c;\u5c31\u662f\u7528\u4e0d\u4e86&#xff0c;\u6240\u4ee5\u6ca1\u529e\u6cd5\u505a\u538b\u529b\u6d4b\u8bd5\u4e86&#xff0c;\u5927\u5bb6\u53ef\u4ee5\u81ea\u884c\u914d\u7f6e&#xff0c;\u8fd9\u91cc\u6211\u7ed9\u51fa\u6211\u7684\u4f7f\u7528nginx\u955c\u50cf\u7684\u9ad8\u5e76\u53d1Deployment\u914d\u7f6e\u6587\u4ef6&#xff0c;\u5927\u5bb6\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528&#xff0c;\u6309\u7406\u6765\u8bf4\u5e94\u8be5\u662f\u6ca1\u6709\u4ec0\u4e48\u5927\u95ee\u9898\u7684&#xff1a;<\/p>\n<p>  # \u9ad8\u5e76\u53d1Deployment\u6d4b\u538b<br \/>\n  apiVersion: apps\/v1<br \/>\n  kind: Deployment<br \/>\n  metadata:<br \/>\n    name: siege-deploy<br \/>\n  spec:<br \/>\n    replicas: 5 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0# \u5e76\u53d1 Pod \u6570<br \/>\n    selector:<br \/>\n   \u00a0  matchLabels:<br \/>\n   \u00a0 \u00a0  app: siege<br \/>\n    template:<br \/>\n   \u00a0  metadata:<br \/>\n   \u00a0 \u00a0  labels:<br \/>\n   \u00a0 \u00a0 \u00a0  app: siege<br \/>\n   \u00a0  spec:<br \/>\n   \u00a0 \u00a0  containers:<br \/>\n   \u00a0 \u00a0  &#8211; name: siege<br \/>\n   \u00a0 \u00a0 \u00a0# \u6ce8\u610f\u8fd9\u91cc\u7684\u955c\u50cf&#xff0c;\u8981\u586b\u4f60\u81ea\u5df1\u7684\u955c\u50cf\u7248\u672c<br \/>\n   \u00a0 \u00a0 \u00a0  image: nginx&#064;sha256:6c0218f1687660914d2ce279489e9b6d62a5a48d06ab2e27b7710c19d5e904e5<br \/>\n   \u00a0 \u00a0 \u00a0 \u00a0# \u4f7f\u7528\u955c\u50cf\u7684 sha256 \u6458\u8981<br \/>\n   \u00a0 \u00a0 \u00a0  imagePullPolicy: IfNotPresent \u00a0# \u786e\u4fdd\u663e\u5f0f\u8bbe\u7f6e<br \/>\n   \u00a0 \u00a0 \u00a0  command:<br \/>\n   \u00a0 \u00a0 \u00a0  &#8211; \/bin\/sh<br \/>\n   \u00a0 \u00a0 \u00a0  &#8211; -c<br \/>\n   \u00a0 \u00a0 \u00a0  &#8211; |<br \/>\n   \u00a0 \u00a0 \u00a0 \u00a0  while true; do<br \/>\n   \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0# \u6bcf\u4e2a shell \u91cc\u5f00 50 \u6761\u540e\u53f0\u5e76\u53d1 curl<br \/>\n   \u00a0 \u00a0 \u00a0 \u00a0 \u00a0  for i in $(seq 50); do<br \/>\n   \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0  curl -s http:\/\/nginx-deployment.default.svc.cluster.local &amp;<br \/>\n   \u00a0 \u00a0 \u00a0 \u00a0 \u00a0  done<br \/>\n   \u00a0 \u00a0 \u00a0 \u00a0 \u00a0  wait \u00a0 \u00a0# \u7b49\u8fd9\u4e00\u8f6e 50 \u4e2a\u8bf7\u6c42\u5b8c\u6210&#xff0c;\u518d\u4e0b\u4e00\u8f6e<br \/>\n   \u00a0 \u00a0 \u00a0 \u00a0  done<br \/>\n   \u00a0 \u00a0 \u00a0 \u00a0 \u00a0# \u5f53\u7136\u4f60\u7684command\u547d\u4ee4\u4e5f\u53ef\u4ee5\u901a\u8fc7\u5199\u6b7b\u5faa\u73af\u4ec0\u4e48\u7684\u6765\u63d0\u9ad8\u538b\u529b&#xff0c;\u6216\u7528\u4ec0\u4e48\u4e13\u4e1a\u7684\u6d4b\u538b\u8f6f\u4ef6\u90fd\u662f\u53ef\u4ee5\u7684 <\/p>\n<h3 id=\"JOB\">JOB<\/h3>\n<p>\u7528\u4e8e\u8fd0\u884c\u4e00\u6b21\u6027\u4efb\u52a1&#xff0c;\u4f8b\u5982\u6279\u91cf\u5904\u7406\u4efb\u52a1\u6216\u6570\u636e\u8fc1\u79fb\u4efb\u52a1\u3002\u5b83\u4f1a\u521b\u5efa\u4e00\u4e2a\u6216\u591a\u4e2a Pod \u6765\u5b8c\u6210\u4efb\u52a1&#xff0c;\u5e76\u5728\u4efb\u52a1\u5b8c\u6210\u540ePod\u81ea\u52a8\u6e05\u7406\u3002<\/p>\n<p>\u7ed9\u51fa\u4e00\u4e2a\u7528\u4e8e\u8ba1\u7b97\u5706\u5468\u7387\u7684\u4efb\u52a1\u7684yaml\u914d\u7f6e\u6587\u4ef6&#xff1a;<\/p>\n<p>apiVersion: batch\/v1 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 # Job \u5c5e\u4e8e batch \u7ec4<br \/>\n  kind: Job \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0# \u58f0\u660e\u8d44\u6e90\u7c7b\u578b\u662f Job \u7c7b\u578b<br \/>\n  metadata: \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0# \u5143\u6570\u636e<br \/>\n    name: pi-job \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 # Job \u540d\u79f0&#xff0c;\u53ef\u81ea\u5b9a\u4e49<br \/>\n    namespace: default \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 # \u6240\u5728\u547d\u540d\u7a7a\u95f4<br \/>\n  spec: \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0# Job \u7684\u671f\u671b\u72b6\u6001<br \/>\n    suspend: false \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 # 1.21&#043;&#xff1a;true&#061;\u6682\u505c\u8c03\u5ea6&#xff0c;\u9ed8\u8ba4 false<br \/>\n    completions: 4 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 # \u9700\u8981\u6210\u529f\u5b8c\u6210\u7684 Pod \u6570\u4e3a4\u4e2a<br \/>\n    parallelism: 2 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 # \u5e76\u53d1\u8fd0\u884c\u7684 Pod \u6570\u4e3a2\u4e2a&#xff0c;\u5373\u4e00\u6b21\u6027\u8fd0\u884c2\u4e2a Pod<br \/>\n    backoffLimit: 4 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0# \u6700\u5927\u91cd\u8bd5\u6b21\u6570&#xff08;\u5931\u8d25\u540e\u4e0d\u518d\u521b\u5efa&#xff09;<br \/>\n    activeDeadlineSeconds: 100 \u00a0 # Job \u8fd0\u884c\u671f\u9650&#xff1a;100s &#xff0c;\u8d85\u8fc7\u65f6\u95f4\u672a\u7ed3\u675f\u81ea\u52a8\u5931\u8d25<br \/>\n    manualSelector: true \u00a0 \u00a0 \u00a0 \u00a0 # \u662f\u5426\u4f7f\u7528selector\u9009\u62e9\u5668&#xff0c;\u9ed8\u8ba4 false<br \/>\n    selector: \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0# \u9009\u62e9\u5668&#xff0c;\u7528\u4e8e\u624b\u52a8\u9009\u62e9 Pod \u6807\u7b7e<br \/>\n   \u00a0  matchLabels: \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 # \u4e0b\u65b9\u5e94\u6709 app: pi \u6807\u7b7e<br \/>\n   \u00a0 \u00a0  app: pi<br \/>\n    ttlSecondsAfterFinished: 100 # \u5b8c\u6210\u540e 100s \u81ea\u52a8\u6e05\u7406&#xff08;\u9700\u5f00\u542f TTL \u7279\u6027&#xff09;<br \/>\n    template: \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0# Pod \u6a21\u677f&#xff08;\u4e0e Pod spec \u7ed3\u6784\u4e00\u81f4&#xff09;<br \/>\n   \u00a0  metadata: \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0# Pod \u7684\u5143\u4fe1\u606f<br \/>\n   \u00a0 \u00a0  labels: \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0# Pod \u7684\u6807\u7b7e&#xff0c;\u8981\u548c\u4e0a\u65b9\u7684\u5339\u914d\u6807\u7b7e\u76f8\u540c<br \/>\n   \u00a0 \u00a0 \u00a0  app: pi<br \/>\n   \u00a0  spec:<br \/>\n   \u00a0 \u00a0  restartPolicy: Never \u00a0 \u00a0 # Job \u53ea\u80fd Never \u6216 OnFailure<br \/>\n   \u00a0 \u00a0 \u00a0#\u56e0\u4e3a Job \u6267\u884c\u7684\u662f\u4e00\u6b21\u6027\u4efb\u52a1&#xff0c;\u6240\u4ee5\u4e0d\u9700\u8981 Always \u91cd\u542f\u7b56\u7565<br \/>\n   \u00a0 \u00a0  containers:<br \/>\n   \u00a0 \u00a0  &#8211; name: pi-container \u00a0 \u00a0 \u00a0# \u5bb9\u5668\u540d\u79f0&#xff0c;\u53ef\u81ea\u5b9a\u4e49<br \/>\n   \u00a0 \u00a0 \u00a0  image: perl:5.34.0 \u00a0 \u00a0 \u00a0# \u5bb9\u5668\u955c\u50cf<br \/>\n   \u00a0 \u00a0 \u00a0 \u00a0# \u5bb9\u5668\u547d\u4ee4  \u8ba1\u7b97 \u03c0 \u5230 20 \u4f4d<br \/>\n   \u00a0 \u00a0 \u00a0  command: [&#034;perl&#034;, &#034;-Mbignum&#061;bpi&#034;, &#034;-wle&#034;, &#034;print bpi(20)&#034;]<br \/>\n   \u00a0 \u00a0 \u00a0  resources: \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0# \u8d44\u6e90\u8bf7\u6c42\u548c\u9650\u5236<br \/>\n   \u00a0 \u00a0 \u00a0 \u00a0  requests: \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 # \u6700\u5c11\u8d44\u6e90\u8bf7\u6c42<br \/>\n   \u00a0 \u00a0 \u00a0 \u00a0 \u00a0  cpu: 100m \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 # \u5bb9\u5668\u8bf7\u6c42 100\u6beb\u6838 CPU\u8d44\u6e90<br \/>\n   \u00a0 \u00a0 \u00a0 \u00a0 \u00a0  memory: 128Mi \u00a0 \u00a0 \u00a0 # \u5bb9\u5668\u8bf7\u6c42 128Mi \u5185\u5b58 <\/p>\n<p>\u521b\u5efa\u5b8c\u6210\u540e&#xff0c;\u521b\u5efaJob\u5373\u53ef&#xff0c;\u53ef\u4ee5\u4f7f\u7528-w\u5b9e\u65f6\u76d1\u63a7&#xff08;\u5f53\u7136\u6211\u5fd8\u4e86~&#xff09;&#xff0c;\u53ef\u4ee5\u770b\u5230\u7c7b\u4f3c\u753b\u9762&#xff1a;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"677\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250816125009-68a07e81bb744.png\" width=\"1600\" \/><\/p>\n<p>\u53ef\u4ee5\u770b\u5230\u662f\u4e00\u6b21\u6027\u8fd0\u884c2\u4e2aPod&#xff0c;\u8fd0\u884c\u5b8c\u4e4b\u540e\u8fc7\u4e00\u4f1a\u8fd9\u4e9bJob\u90fd\u4f1a\u81ea\u52a8\u6e05\u7406&#xff0c;\u5982\u56fe&#xff1a;<img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"464\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250816125010-68a07e82d7a04.png\" width=\"1600\" \/><\/p>\n<p>CronJob\u7c7b\u4f3c&#xff0c;\u53ea\u4e0d\u8fc7CronJob\u662f\u7ba1\u7406Job\u7684&#xff0c;\u8fd9\u91cc\u5c31\u4e0d\u6f14\u793a\u4e86<\/p>\n<\/p>\n<p><span style=\"color:#fe2c24\"><span style=\"background-color:#fefcd8\">\u7531\u4e8e\u4e0d\u77e5\u662f\u4e0d\u662f\u6211\u7684\u7f51\u7edc\u95ee\u9898&#xff0c;\u5bfc\u81f4\u6211\u7684\u955c\u50cf\u62c9\u53d6\u6bcf\u6b21\u90fd\u53ea\u80fd\u901a\u8fc7\u624b\u52a8\u62c9\u53d6\u7136\u540e\u5bfc\u5165\u96c6\u7fa4&#xff0c;\u6bd4\u8f83\u9ebb\u70e6&#xff0c;\u800c\u4e14\u6709\u7684\u65f6\u5019\u751a\u81f3\u5bfc\u5165\u4e86\u96c6\u7fa4\u4e5f\u65e0\u6cd5\u4f7f\u7528&#xff0c;\u6211\u6709\u70b9\u82e6\u607cTVT<\/span><\/span><\/p>\n<p><span style=\"color:#fe2c24\"><span style=\"background-color:#fefcd8\">\u6240\u4ee5\u6700\u7ec8\u6211\u51b3\u5b9a&#xff0c;\u76f4\u63a5\u4ecekind\u7684\u96c6\u7fa4\u914d\u7f6e\u6587\u4ef6\u51fa\u53d1&#xff0c;\u5c06\u539f\u6765\u7684\u96c6\u7fa4\u5220\u9664&#xff0c;\u91cd\u65b0\u521b\u5efa\u96c6\u7fa4&#xff0c;\u91cd\u65b0\u914d\u7f6e\u4e00\u904d&#xff0c;\u770b\u770b\u80fd\u4e0d\u80fd\u89e3\u51b3\u6211\u7684\u95ee\u9898&#xff0c;\u5f53\u7136&#xff0c;\u6709\u5927\u4f6c\u6559\u6559\u6211\u600e\u4e48\u89e3\u51b3\u5c31\u66f4\u597d\u4e86QAQ<\/span><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb259\u6b21\u3002\u65b0\u589e\u8282\u70b9\u81ea\u52a8\u8865\uff0c\u8282\u70b9\u4e0b\u7ebf\u81ea\u52a8\u5220\u3002\u6ce8\u610f\uff1aDaemonSet\u6ca1\u6709replicas \u7684\u6982\u5ff5\uff0c\u5b88\u62a4\u8fdb\u7a0b\u7684\u521b\u5efa\u662f\u6839\u636e\u8282\u70b9\u521b\u5efa\uff0c\u5339\u914d\u591a\u5c11\u8282\u70b9\u5c31\u662f\u591a\u5c11\uff0c\u4e00\u4e2a\u8282\u70b9\u53ea\u6709\u4e00\u4e2a\uff0c\u6ca1\u6709\u526f\u672c\u6570\u7684\u6982\u5ff5\uff0c\u5373\u65e0\u6cd5\u81ea\u52a8\u6269\u5bb9\u4ec0\u4e48\u7684\u3002\u6240\u4ee5\u6700\u7ec8\u6211\u51b3\u5b9a\uff0c\u76f4\u63a5\u4ecekind\u7684\u96c6\u7fa4\u914d\u7f6e\u6587\u4ef6\u51fa\u53d1\uff0c\u5c06\u539f\u6765\u7684\u96c6\u7fa4\u5220\u9664\uff0c\u91cd\u65b0\u521b\u5efa\u96c6\u7fa4\uff0c\u91cd\u65b0\u914d\u7f6e\u4e00\u904d\uff0c\u770b\u770b\u80fd\u4e0d\u80fd\u89e3\u51b3\u6211\u7684\u95ee\u9898\uff0c\u5f53\u7136\uff0c\u6709\u5927\u4f6c\u6559\u6559\u6211\u600e\u4e48\u89e3\u51b3\u5c31\u66f4\u597d\u4e86QAQ\u3002\u7531\u4e8e\u4e0d\u77e5\u662f\u4e0d\u662f\u6211\u7684\u7f51\u7edc\u95ee\u9898\uff0c\u5bfc\u81f4\u6211\u7684\u955c\u50cf\u62c9\u53d6\u6bcf\u6b21\u90fd\u53ea\u80fd\u901a\u8fc7\u624b\u52a8\u62c9\u53d6\u7136\u540e\u5bfc\u5165\u96c6\u7fa4\uff0c\u6bd4\u8f83\u9ebb\u70e6\uff0c\u800c\u4e14\u6709\u7684\u65f6\u5019\u751a\u81f3\u5bfc\u5165\u4e86\u96c6\u7fa4\u4e5f\u65e0\u6cd5\u4f7f\u7528\uff0c\u6211\u6709\u70b9\u82e6\u607cTVT\u3002<\/p>\n","protected":false},"author":2,"featured_media":59051,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[5318,120,763,121],"topic":[],"class_list":["post-59062","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-k8s","tag-kubernetes","tag-763","tag-121"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>k8sday08\u6df1\u5165\u63a7\u5236\u5668\uff083\/3\uff09 - \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\/59062.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"k8sday08\u6df1\u5165\u63a7\u5236\u5668\uff083\/3\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb259\u6b21\u3002\u65b0\u589e\u8282\u70b9\u81ea\u52a8\u8865\uff0c\u8282\u70b9\u4e0b\u7ebf\u81ea\u52a8\u5220\u3002\u6ce8\u610f\uff1aDaemonSet\u6ca1\u6709replicas \u7684\u6982\u5ff5\uff0c\u5b88\u62a4\u8fdb\u7a0b\u7684\u521b\u5efa\u662f\u6839\u636e\u8282\u70b9\u521b\u5efa\uff0c\u5339\u914d\u591a\u5c11\u8282\u70b9\u5c31\u662f\u591a\u5c11\uff0c\u4e00\u4e2a\u8282\u70b9\u53ea\u6709\u4e00\u4e2a\uff0c\u6ca1\u6709\u526f\u672c\u6570\u7684\u6982\u5ff5\uff0c\u5373\u65e0\u6cd5\u81ea\u52a8\u6269\u5bb9\u4ec0\u4e48\u7684\u3002\u6240\u4ee5\u6700\u7ec8\u6211\u51b3\u5b9a\uff0c\u76f4\u63a5\u4ecekind\u7684\u96c6\u7fa4\u914d\u7f6e\u6587\u4ef6\u51fa\u53d1\uff0c\u5c06\u539f\u6765\u7684\u96c6\u7fa4\u5220\u9664\uff0c\u91cd\u65b0\u521b\u5efa\u96c6\u7fa4\uff0c\u91cd\u65b0\u914d\u7f6e\u4e00\u904d\uff0c\u770b\u770b\u80fd\u4e0d\u80fd\u89e3\u51b3\u6211\u7684\u95ee\u9898\uff0c\u5f53\u7136\uff0c\u6709\u5927\u4f6c\u6559\u6559\u6211\u600e\u4e48\u89e3\u51b3\u5c31\u66f4\u597d\u4e86QAQ\u3002\u7531\u4e8e\u4e0d\u77e5\u662f\u4e0d\u662f\u6211\u7684\u7f51\u7edc\u95ee\u9898\uff0c\u5bfc\u81f4\u6211\u7684\u955c\u50cf\u62c9\u53d6\u6bcf\u6b21\u90fd\u53ea\u80fd\u901a\u8fc7\u624b\u52a8\u62c9\u53d6\u7136\u540e\u5bfc\u5165\u96c6\u7fa4\uff0c\u6bd4\u8f83\u9ebb\u70e6\uff0c\u800c\u4e14\u6709\u7684\u65f6\u5019\u751a\u81f3\u5bfc\u5165\u4e86\u96c6\u7fa4\u4e5f\u65e0\u6cd5\u4f7f\u7528\uff0c\u6211\u6709\u70b9\u82e6\u607cTVT\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/59062.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-08-16T12:50:12+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250816124952-68a07e70e6273.png\" \/>\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=\"6 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/59062.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/59062.html\",\"name\":\"k8sday08\u6df1\u5165\u63a7\u5236\u5668\uff083\/3\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-08-16T12:50:12+00:00\",\"dateModified\":\"2025-08-16T12:50:12+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/59062.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/59062.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/59062.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"k8sday08\u6df1\u5165\u63a7\u5236\u5668\uff083\/3\uff09\"}]},{\"@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":"k8sday08\u6df1\u5165\u63a7\u5236\u5668\uff083\/3\uff09 - \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\/59062.html","og_locale":"zh_CN","og_type":"article","og_title":"k8sday08\u6df1\u5165\u63a7\u5236\u5668\uff083\/3\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb259\u6b21\u3002\u65b0\u589e\u8282\u70b9\u81ea\u52a8\u8865\uff0c\u8282\u70b9\u4e0b\u7ebf\u81ea\u52a8\u5220\u3002\u6ce8\u610f\uff1aDaemonSet\u6ca1\u6709replicas \u7684\u6982\u5ff5\uff0c\u5b88\u62a4\u8fdb\u7a0b\u7684\u521b\u5efa\u662f\u6839\u636e\u8282\u70b9\u521b\u5efa\uff0c\u5339\u914d\u591a\u5c11\u8282\u70b9\u5c31\u662f\u591a\u5c11\uff0c\u4e00\u4e2a\u8282\u70b9\u53ea\u6709\u4e00\u4e2a\uff0c\u6ca1\u6709\u526f\u672c\u6570\u7684\u6982\u5ff5\uff0c\u5373\u65e0\u6cd5\u81ea\u52a8\u6269\u5bb9\u4ec0\u4e48\u7684\u3002\u6240\u4ee5\u6700\u7ec8\u6211\u51b3\u5b9a\uff0c\u76f4\u63a5\u4ecekind\u7684\u96c6\u7fa4\u914d\u7f6e\u6587\u4ef6\u51fa\u53d1\uff0c\u5c06\u539f\u6765\u7684\u96c6\u7fa4\u5220\u9664\uff0c\u91cd\u65b0\u521b\u5efa\u96c6\u7fa4\uff0c\u91cd\u65b0\u914d\u7f6e\u4e00\u904d\uff0c\u770b\u770b\u80fd\u4e0d\u80fd\u89e3\u51b3\u6211\u7684\u95ee\u9898\uff0c\u5f53\u7136\uff0c\u6709\u5927\u4f6c\u6559\u6559\u6211\u600e\u4e48\u89e3\u51b3\u5c31\u66f4\u597d\u4e86QAQ\u3002\u7531\u4e8e\u4e0d\u77e5\u662f\u4e0d\u662f\u6211\u7684\u7f51\u7edc\u95ee\u9898\uff0c\u5bfc\u81f4\u6211\u7684\u955c\u50cf\u62c9\u53d6\u6bcf\u6b21\u90fd\u53ea\u80fd\u901a\u8fc7\u624b\u52a8\u62c9\u53d6\u7136\u540e\u5bfc\u5165\u96c6\u7fa4\uff0c\u6bd4\u8f83\u9ebb\u70e6\uff0c\u800c\u4e14\u6709\u7684\u65f6\u5019\u751a\u81f3\u5bfc\u5165\u4e86\u96c6\u7fa4\u4e5f\u65e0\u6cd5\u4f7f\u7528\uff0c\u6211\u6709\u70b9\u82e6\u607cTVT\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/59062.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-08-16T12:50:12+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250816124952-68a07e70e6273.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"6 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/59062.html","url":"https:\/\/www.wsisp.com\/helps\/59062.html","name":"k8sday08\u6df1\u5165\u63a7\u5236\u5668\uff083\/3\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-08-16T12:50:12+00:00","dateModified":"2025-08-16T12:50:12+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/59062.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/59062.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/59062.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"k8sday08\u6df1\u5165\u63a7\u5236\u5668\uff083\/3\uff09"}]},{"@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\/59062","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=59062"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/59062\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/59051"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=59062"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=59062"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=59062"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=59062"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}