{"id":729,"date":"2021-05-08T15:37:52","date_gmt":"2021-05-08T07:37:52","guid":{"rendered":"https:\/\/www.yinyubo.cn\/?p=729"},"modified":"2022-05-17T09:28:53","modified_gmt":"2022-05-17T01:28:53","slug":"k3s","status":"publish","type":"post","link":"https:\/\/www.yinyubo.com\/?p=729","title":{"rendered":"K3S\u73af\u5883\u4e0b\u63a5\u5165Prometheus,grafana,\u7b49\u76d1\u63a7\u5957\u4ef6"},"content":{"rendered":"\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:100%\">\n<h1>\u80cc\u666f<\/h1>\n<p>\u56e0\u4e3a\u5e38\u89c4\u7684\u76d1\u63a7\u90fd\u662f\u7528K8S\u505a\u7684\uff0c\u800cK3S\u4e0a\u7684\u76d1\u63a7\u65b9\u6848\u5c11\u4e4b\u53c8\u5c11\uff0c\u5982\u679c\u76f4\u63a5\u7528rancher\u4e0a\u7684prometheus\u76d1\u63a7\uff0c\u4f1a\u6d88\u8017\u81f3\u5c112G\u7684\u5185\u5b58\uff0c\u4e8e\u662f\u6211\u4eec\u5c31\u81ea\u5df1\u505a\u4e86K3S\u548cpg\u6570\u636e\u5e93\u7684\u76d1\u63a7,\u5e76\u4e14\u901a\u8fc7\u6211\u4eec\u81ea\u5df1\u505a\u7684\u76d1\u63a7\uff0c\u53ef\u4ee5\u51cf\u5c11\u4e00\u4e9b\u4e0d\u5fc5\u8981\u7684\u6027\u80fd\u5f00\u9500\u3002\u4e3b\u8981\u76d1\u63a7\u5bb9\u5668\u8d44\u6e90\u6d88\u8017\uff0c\u5bbf\u4e3b\u673a\u8d44\u6e90\u6d88\u8017\uff0cpg\u6570\u636e\u5e93\u8d44\u6e90\u6d88\u8017<br \/><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-751 size-full\" src=\"https:\/\/yinyubo-1257235934.cos.ap-nanjing.myqcloud.com\/content\/Image-10-3.png\" alt=\"\" width=\"1532\" height=\"805\" \/><br \/>\u8fd9\u4e2a\u662f\u8d44\u6e90\u4f7f\u7528\u60c5\u51b5\uff0c\u5927\u7ea6\u4f1a\u7528\u6389600M\u5185\u5b58\u548c100MCPU<\/p>\n<div class=\"code panel pdl conf-macro output-block\" data-hasbody=\"true\" data-macro-name=\"code\">\n<div class=\"codeContent panelContent pdl\">\n<div id=\"highlighter_964076\" class=\"syntaxhighlighter sh-confluence nogutter java\">\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"bootstrap4\"><code class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">user@user:\/$ kubectl top pod -n kube-ops<\/code><br \/><code class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">\nNAME                                            CPU(cores)   MEMORY(bytes)<\/code><br \/><code class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">\ngrafana-0                                       1m           47Mi<\/code><br \/><code class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">\nkube-state-metrics-594fb7bc84-5mg6g             3m           10Mi<\/code><br \/><code class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">\nnode-exportor-prometheus-node-exporter-sznls    31m          8Mi<\/code><br \/><code class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">\nnode-exportor-prometheus-node-exporter-tx7rm    13m          7Mi<\/code><br \/><code class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">\nprometheus-0                                    46m          565Mi<\/code><br \/><code class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">\nprometheus-postgres-exporter-6c858f47d4-dj9hj   13m          6Mi<\/code><\/pre>\n<blockquote>\n<p class=\"title\">prometheus\u76d1\u63a7\u7ec4\u4ef6\u53c2\u8003helm chart<\/p>\n<p><a href=\"https:\/\/github.com\/prometheus-community\/helm-charts\/tree\/main\/charts\">https:\/\/github.com\/prometheus-community\/helm-charts\/tree\/main\/charts<\/a><br \/>\u6211\u9b54\u6539\u7684github\u8fde\u63a5<br \/><a href=\"https:\/\/github.com\/lizhenwei\/k3s-prometheus\">https:\/\/github.com\/lizhenwei\/k3s-prometheus<\/a><\/p>\n<\/blockquote>\n<hr \/>\n<h1 id=\"Prometheus\u4e0eK3S\uff0cpg\u6570\u636e\u5e93\u76d1\u63a7-Prometheus\u7684\u5b89\u88c5\" class=\"auto-cursor-target\">Prometheus\u7684\u5b89\u88c5<\/h1>\n<p>1.\u521b\u5efa\u4e00\u4e2a\u547d\u540d\u7a7a\u95f4kube-ops\uff0c\u628a\u76d1\u63a7\u7528\u7684\u4e1c\u897f\u90fd\u653e\u5728\u8fd9\u4e2a\u547d\u540d\u91cc\u9762\u3002<br \/>2.\u4f7f\u7528\u6211\u9b54\u6539\u7684chart\u8fdb\u884c\u5b89\u88c5\uff0c\u9ed8\u8ba4\u7248\u672c\u662fv2.26.0\uff0c\u9ed8\u8ba4\u542f\u7528\u4e0a\u56fe\u63d0\u5230\u7684<\/p>\n<p>cadvisor,kube_state_metrics,node_exportor,postgres_exporter<\/p>\n<p>\u00a0<\/p>\n<pre class=\"lang:python decode:true\">kubectl create ns kube-ops<br \/>\nhelm install -n kube-ops prometheus lizhenwei-prometheus<br \/><br \/><\/pre>\n<p>\u5982\u679c\u8981\u5173\u95ed\u5176\u4e2d\u7684\u67d0\u4e2a\u76d1\u63a7\u9879\uff0c\u5b89\u88c5\u65f6\u53c2\u8003\u6dfb\u52a0\u53d8\u91cf &#8211;set node_exportor.enable=false\uff0c<br \/>prometheus\u7684\u6570\u636e\u4f1a\u7528\u9ed8\u8ba4\u7684storageClass\u751f\u6210PVC\uff0c\u5982\u679c\u6ca1\u6709\u9ed8\u8ba4\u7684\uff0c\u53c2\u8003\u624b\u52a8\u8bbe\u7f6enfs\u5b58\u50a8 &#8211;set persistence.storageClass=nfs-client<br \/>\u5b89\u88c5\u6210\u529f\u540e\uff0c\u56e0\u4e3a\u6211\u662fnodeport\u66b4\u9732\u51fa\u6765\u7684\uff0c\u6240\u4ee5\u53ef\u4ee5\u901a\u8fc7\u6d4f\u89c8\u5668\u53bb\u68c0\u67e5\u4e00\u4e0b\u914d\u7f6e,\u4f8b\u5982\u8fd9\u91cc\u6211\u4eec\u66b4\u9732\u51fa\u6765\u662f32331\u7aef\u53e3\u53ef\u4ee5\u8bbf\u95ee,\u4f8b\u5982\uff1a<\/p>\n<div class=\"code panel pdl conf-macro output-block\" data-hasbody=\"true\" data-macro-name=\"code\">\n<div class=\"codeContent panelContent pdl\">\n<div id=\"highlighter_31970\" class=\"syntaxhighlighter sh-confluence nogutter java\">\n<pre class=\"lang:python decode:true  EnlighterJSRAW\" data-enlighter-language=\"cython\"><code class=\"EnlighterJSRAW\" data-enlighter-language=\"cython\">$ kubectl get svc -n kube-ops<\/code><br \/><code class=\"EnlighterJSRAW\" data-enlighter-language=\"cython\">\nNAME                           TYPE        CLUSTER-IP      EXTERNAL-IP   PORT(S)             AGE<\/code><br \/><code class=\"EnlighterJSRAW\" data-enlighter-language=\"cython\">\nprometheus                     NodePort    10.43.178.128   &lt;none&gt;        9090:32331\/TCP      2d4h<\/code><br \/><br \/><\/pre>\n<p>\u8bbf\u95ee<span class=\"nolink\">http:\/\/master\u673a\u5668IP:32331\/targets\uff0c\u53ef\u4ee5\u770b\u5230prometheus\u81ea\u5df1\u5df2\u7ecf\u662f\u6210\u529f\u8d77\u6765\u4e86\uff0c\u6211\u4eec\u4e5f\u53ef\u4ee5\u53bbhttp:\/\/master\u673a\u5668IP:32331\/config\u9875\u9762\u770b\u770b\u914d\u7f6e\u9879\u662f\u5426\u90fd\u6b63\u786e<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-744 size-full\" src=\"https:\/\/yinyubo-1257235934.cos.ap-nanjing.myqcloud.com\/content\/Image-7-2.png\" alt=\"\" width=\"1052\" height=\"542\" \/><\/span><br \/>\u8981\u542f\u7528\u6216\u505c\u7528\u67d0\u4e9b\u76d1\u63a7\u529f\u80fd\uff0c\u53ef\u4ee5\u4fee\u6539lizhenwei-prometheus\/valuse.yaml\u91cc\u7684\u914d\u7f6e\uff0c\u4fee\u6539\u6210true\u6216false<\/p>\n<hr \/>\n<h1 id=\"Prometheus\u4e0eK3S\uff0cpg\u6570\u636e\u5e93\u76d1\u63a7-kube-state-metrics\u7684\u5b89\u88c5\" class=\"auto-cursor-target\">kube-state-metrics\u7684\u5b89\u88c5<\/h1>\n<p>kube-state-metrics\u662f\u7528\u6765\u6536\u96c6k8s\u96c6\u7fa4\u7684CPU\uff0c\u5185\u5b58\u7b49\u4fe1\u606f\u7684\u6536\u96c6\u5668\uff0c\u8fd9\u91cc\u6211\u7528\u7684\u662fv1.9.7\u7248\u672c\u3002<br \/>\u4f7f\u7528\u6211github\u4e0a\u7684helm\u8fdb\u884c\u5b89\u88c5\uff1a<\/p>\n<pre class=\"lang:python decode:true\">helm install -n kube-ops prometheus lizhenwei-kube-state-metrics<br \/>\n<\/pre>\n<p>\u8981\u60f3\u9a8c\u8bc1\u90e8\u7f72kube-state-metrics\u4e4b\u540e\uff0c\u662f\u5426\u80fd\u6210\u529f\u4f7f\u7528\uff0c\u6211\u4eec\u53ef\u4ee5\u770bprometheus\u7684target\u9875\u9762\u662f\u4e0d\u662f\u663e\u793akube-state-metrics(X\/X up) x\u4e3a\u673a\u5668\u8282\u70b9\u6570\u91cf\u3002<br \/>\u7136\u540e\u6211\u4eec\u53bbgraph\u9875\u9762\u770b\u770b\uff0c<span class=\"nolink\">http:\/\/master\u673a\u5668IP:32331\/graph\u3002\u53ef\u4ee5\u53c2\u8003\u5b98\u7f51\u7ed9\u7684promql\u6587\u6863\uff0c\u8f93\u5165\u51e0\u4e2a\u8bed\u53e5\u8bd5\u8bd5<\/span><\/p>\n<div class=\"confluence-information-macro confluence-information-macro-information conf-macro output-block\" data-hasbody=\"true\" data-macro-name=\"info\">\n<blockquote>\n<p class=\"title\">PromQL\u53c2\u8003\u94fe\u63a5<\/p>\n<p class=\"title\"><a class=\"external-link\" style=\"background-color: #ffffff; font-size: 1rem;\" href=\"https:\/\/github.com\/kubernetes\/kube-state-metrics\/tree\/master\/docs\" rel=\"nofollow\">https:\/\/github.com\/kubernetes\/kube-state-metrics\/tree\/master\/docs<\/a><\/p>\n<\/blockquote>\n<p>\u4f8b\u5982\u8f93\u5165kube_configmap_info\uff0c\u70b9\u51fbexecute\u4f1a\u8fd4\u56de\u4e00\u4e9b\u7ed3\u679c\uff0c\u5982\u4e0b\u56fe<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-745 size-full\" src=\"https:\/\/yinyubo-1257235934.cos.ap-nanjing.myqcloud.com\/content\/Image-8-1.png\" alt=\"\" width=\"874\" height=\"442\" \/><\/p>\n<hr \/>\n<h1 id=\"Prometheus\u4e0eK3S\uff0cpg\u6570\u636e\u5e93\u76d1\u63a7-K3S\u81ea\u5e26\u7684CADVISOR\">K3S\u81ea\u5e26\u7684CADVISOR<\/h1>\n<p>K3S\u81ea\u5e26kubelet \uff0c\u800ccadvisor\u5df2\u7ecf\u96c6\u6210\u5728kubelet\u91cc\u4e86\uff0cprometheus\u53ef\u4ee5\u901a\u8fc7\u914d\u7f6e\u627e\u5230\u672c\u5730\u5b89\u88c5\u7684cadvisor\uff0c\u4f8b\u5982\u4e0b\u5217\u4ee3\u7801\uff1a<\/p>\n<pre class=\"lang:python decode:true EnlighterJSRAW\" data-enlighter-language=\"java\"><code class=\"EnlighterJSRAW\" data-enlighter-language=\"golang\">- job_name: 'cadvisor'<\/code><code class=\"EnlighterJSRAW\" data-enlighter-language=\"golang\">\n  scheme: https<\/code><code class=\"EnlighterJSRAW\" data-enlighter-language=\"golang\">\n  tls_config:<\/code><code class=\"EnlighterJSRAW\" data-enlighter-language=\"golang\">\n    ca_file: \/var\/run\/secrets\/kubernetes.io\/serviceaccount\/ca.crt<\/code><code class=\"EnlighterJSRAW\" data-enlighter-language=\"golang\">\n  bearer_token_file: \/var\/run\/secrets\/kubernetes.io\/serviceaccount\/token<\/code><code class=\"EnlighterJSRAW\" data-enlighter-language=\"golang\">\n  kubernetes_sd_configs:<\/code><code class=\"EnlighterJSRAW\" data-enlighter-language=\"golang\">\n  - role: node<\/code><code class=\"EnlighterJSRAW\" data-enlighter-language=\"golang\">\n  relabel_configs:<\/code><code class=\"EnlighterJSRAW\" data-enlighter-language=\"golang\">\n  - action: labelmap<\/code><code class=\"EnlighterJSRAW\" data-enlighter-language=\"golang\">\n    regex: __meta_kubernetes_node_label_(.+)<\/code><code class=\"EnlighterJSRAW\" data-enlighter-language=\"golang\">\n  - target_label: __address__<\/code><code class=\"EnlighterJSRAW\" data-enlighter-language=\"golang\">\n    replacement: kubernetes.default.svc:443<\/code><code class=\"EnlighterJSRAW\" data-enlighter-language=\"golang\">\n  - source_labels: [__meta_kubernetes_node_name]<\/code><code class=\"EnlighterJSRAW\" data-enlighter-language=\"golang\">\n    regex: (.+)<\/code><code class=\"EnlighterJSRAW\" data-enlighter-language=\"golang\">\n    target_label: __metrics_path__<\/code><code class=\"EnlighterJSRAW\" data-enlighter-language=\"golang\">\n    replacement: \/api\/v1\/nodes\/${1}\/proxy\/metrics\/cadvisor<\/code><br \/><br \/><\/pre>\n<p>\u63a5\u5165prometheus\u7684\u65f6\u5019\uff0c\u53ef\u4ee5\u6839\u636e\u4ee5\u4e0b\u94fe\u63a5\uff0c\u67e5\u770bPromQL\u8bed\u53e5<\/p>\n<div class=\"confluence-information-macro confluence-information-macro-information conf-macro output-block\" data-hasbody=\"true\" data-macro-name=\"info\">\n<blockquote>\n<p class=\"title\">PromQL\u53c2\u8003\u94fe\u63a5<\/p>\n<p class=\"title\"><a class=\"external-link\" style=\"background-color: #ffffff; font-size: 1rem;\" href=\"https:\/\/github.com\/google\/cadvisor\/blob\/master\/docs\/storage\/prometheus.md\" rel=\"nofollow\">https:\/\/github.com\/google\/cadvisor\/blob\/master\/docs\/storage\/prometheus.md<\/a><\/p>\n<\/blockquote>\n<hr \/>\n<h1 id=\"Prometheus\u4e0eK3S\uff0cpg\u6570\u636e\u5e93\u76d1\u63a7-node-exportor\u7684\u5b89\u88c5\">node-exportor\u7684\u5b89\u88c5<\/h1>\n<p>\u8fd9\u4e2a\u4f7f\u7528\u5b98\u65b9\u7f51\u7ad9\u7ed9\u7684\u4e00\u4e2a\u516c\u5171\u5e93\u5c31\u53ef\u4ee5\u4e86<\/p>\n<div class=\"code panel pdl conf-macro output-block\" data-hasbody=\"true\" data-macro-name=\"code\">\n<div class=\"codeContent panelContent pdl\">\n<div id=\"highlighter_245027\" class=\"syntaxhighlighter sh-confluence nogutter java\">\n<pre class=\"lang:python decode:true \"><code class=\"EnlighterJSRAW\" data-enlighter-language=\"golang\">helm repo add prometheus-community https:\/\/prometheus-community.github.io\/helm-charts<\/code><code class=\"EnlighterJSRAW\" data-enlighter-language=\"golang\">\nhelm repo update<\/code><code class=\"EnlighterJSRAW\" data-enlighter-language=\"golang\">\nhelm install node-exportor prometheus-community\/prometheus-node-exporter<\/code><\/pre>\n<blockquote>\n<p>grafana\u53c2\u8003\u94fe\u63a5<a class=\"external-link\" href=\"https:\/\/grafana.com\/grafana\/dashboards\/1860\" rel=\"nofollow\">https:\/\/grafana.com\/grafana\/dashboards\/1860<\/a><\/p>\n<\/blockquote>\n<hr \/>\n<h1 id=\"Prometheus\u4e0eK3S\uff0cpg\u6570\u636e\u5e93\u76d1\u63a7-postgres-exportor\">postgres-exportor<\/h1>\n<p>\u4e0b\u8f7d\u4ee3\u7801<a class=\"external-link\" href=\"https:\/\/github.com\/prometheus-community\/helm-charts\/tree\/main\/charts\/prometheus-postgres-exporter\" rel=\"nofollow\">https:\/\/github.com\/prometheus-community\/helm-charts\/tree\/main\/charts\/prometheus-postgres-exporter<\/a>\u00a0\u5230\u673a\u5668\u4e0a<br \/>\u4fee\u6539valuse.yaml\u91cc\u7684queries\u91cc\u7684\u53c2\u6570\uff0c\u5728\u6700\u540e\u9762\u52a0\u4e0a<\/p>\n<div class=\"code panel pdl conf-macro output-block\" data-hasbody=\"true\" data-macro-name=\"code\">\n<div class=\"codeContent panelContent pdl\">\n<div id=\"highlighter_202384\" class=\"syntaxhighlighter sh-confluence nogutter java\">\n<pre class=\"lang:python decode:true  EnlighterJSRAW\" data-enlighter-language=\"golang\"><code class=\"EnlighterJSRAW\" data-enlighter-language=\"golang\">pg_stat_activity:<\/code><code class=\"EnlighterJSRAW\" data-enlighter-language=\"golang\">\n      query: |<\/code><code class=\"EnlighterJSRAW\" data-enlighter-language=\"golang\">\n        SELECT\n          datname,\n          SUM(EXTRACT(EPOCH FROM (CURRENT_TIMESTAMP - state_change))::bigint)::float AS process_idle_seconds_sum,\n          COUNT(*) AS process_idle_seconds_count\n        FROM pg_stat_activity\n        WHERE state = 'idle'\n        GROUP BY datname\n      metrics:\n        - datname:\n            usage: \"LABEL\"\n            description: \"datname\"\n        - process_idle_seconds:\n            usage: \"COUNTER\"\n            description: \"Idle time of server processes\"\n        - process_idle_seconds_sum:\n            usage: \"GUAGE\"\n            description: \"sum of Idle time of server processes\"<\/code><\/pre>\n<p class=\"auto-cursor-target\">\u5728valuse.yaml\u6587\u4ef6\u7684config.datasource\u90e8\u5206\u6dfb\u52a0\u6211\u4eec\u7684postgres\u8d85\u7ba1\u7528\u6237\u4fe1\u606f\u3002<\/p>\n<p class=\"auto-cursor-target\">helm\u5b89\u88c5\u8bed\u53e5<\/p>\n<div class=\"code panel pdl conf-macro output-block\" data-hasbody=\"true\" data-macro-name=\"code\">\n<div class=\"codeContent panelContent pdl\">\n<div id=\"highlighter_304016\" class=\"syntaxhighlighter sh-confluence nogutter java\">\n<pre class=\"lang:python decode:true \">helm install -n kube-ops prometheus-postgres-exporter prometheus-postgres-exporter\n<\/pre>\n<hr \/>\n<h1 id=\"Prometheus\u4e0eK3S\uff0cpg\u6570\u636e\u5e93\u76d1\u63a7-Grafana\u5bfc\u5165dashboard\">Grafana\u5bfc\u5165dashboard<\/h1>\n<p>\u53ef\u4ee5\u53c2\u8003\u8fd9\u4f4d\u5927\u795e\u7684github\u94fe\u63a5<a href=\"https:\/\/github.com\/starsliao\/Prometheus\">https:\/\/github.com\/starsliao\/Prometheus<\/a><\/p>\n<hr \/>\n<h1 id=\"Prometheus\u4e0eK3S\uff0cpg\u6570\u636e\u5e93\u76d1\u63a7-\u9875\u9762\u622a\u56fe\">\u9875\u9762\u622a\u56fe<\/h1>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-746 size-full\" src=\"https:\/\/yinyubo-1257235934.cos.ap-nanjing.myqcloud.com\/content\/image2021-4-16_11-11-8.png\" alt=\"\" width=\"1850\" height=\"679\" \/><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-747 size-full\" src=\"https:\/\/yinyubo-1257235934.cos.ap-nanjing.myqcloud.com\/content\/image2021-4-16_11-11-29.png\" alt=\"\" width=\"1846\" height=\"921\" \/> <img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-748 size-full\" src=\"https:\/\/yinyubo-1257235934.cos.ap-nanjing.myqcloud.com\/content\/image2021-4-16_11-12-5.png\" alt=\"\" width=\"1833\" height=\"706\" \/><\/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<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n\n\n\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u80cc\u666f \u56e0\u4e3a\u5e38\u89c4\u7684\u76d1\u63a7\u90fd\u662f\u7528K8S\u505a\u7684\uff0c\u800cK3S\u4e0a\u7684\u76d1\u63a7\u65b9\u6848\u5c11\u4e4b\u53c8\u5c11\uff0c\u5982\u679c\u76f4\u63a5\u7528rancher\u4e0a\u7684prometh [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-729","post","type-post","status-publish","format-standard","hentry","category-k8s"],"_links":{"self":[{"href":"https:\/\/www.yinyubo.com\/index.php?rest_route=\/wp\/v2\/posts\/729","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yinyubo.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yinyubo.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yinyubo.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yinyubo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=729"}],"version-history":[{"count":22,"href":"https:\/\/www.yinyubo.com\/index.php?rest_route=\/wp\/v2\/posts\/729\/revisions"}],"predecessor-version":[{"id":848,"href":"https:\/\/www.yinyubo.com\/index.php?rest_route=\/wp\/v2\/posts\/729\/revisions\/848"}],"wp:attachment":[{"href":"https:\/\/www.yinyubo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=729"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yinyubo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=729"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yinyubo.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=729"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}