{"id":247818,"date":"2022-07-27T08:34:24","date_gmt":"2022-07-27T00:34:24","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=247818"},"modified":"2022-07-22T10:38:58","modified_gmt":"2022-07-22T02:38:58","slug":"kubernetes-traffic","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/kubernetes-traffic.html","title":{"rendered":"\u5e26\u4f60\u641e\u61c2 Kubernetes \u96c6\u7fa4\u4e2d\u51e0\u79cd\u5e38\u89c1\u7684\u6d41\u91cf\u66b4\u9732\u65b9\u6848"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u5728\u4e1a\u52a1\u4f7f\u7528 Kubernetes \u8fdb\u884c\u7f16\u6392\u7ba1\u7406\u65f6\uff0c\u9488\u5bf9\u4e1a\u52a1\u7684\u5357\u5317\u6d41\u91cf\u7684\u63a5\u5165\uff0c\u5728 Kuberentes \u4e2d\u901a\u5e38\u6709\u51e0\u79cd\u65b9\u6848\uff0c\u672c\u6587\u5c31\u63a5\u5165\u7684\u65b9\u6848\u8fdb\u884c\u7b80\u5355\u4ecb\u7ecd\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n
\u6d41\u91cf\u63a5\u5165\u65b9\u6848<\/strong><\/div>\n

Kuberentes \u793e\u533a\u901a\u8fc7\u4e3a\u96c6\u7fa4\u589e\u8bbe\u5165\u53e3\u70b9\u7684\u65b9\u6848\uff0c\u89e3\u51b3\u5bf9\u5916\u6d41\u91cf\u7684\u7ba1\u7406\u3002<\/p>\n

\u901a\u8fc7 kube-proxy \u8fdb\u884c\u4ee3\u7406<\/strong><\/span><\/div>\n

\u901a\u5e38\u5728\u6700\u7b80\u5355\u7684\u6d4b\u8bd5\u6216\u4e2a\u4eba\u5f00\u53d1\u73af\u5883\uff0c\u53ef\u4ee5\u901a\u8fc7 kubectl port-forward \u6765\u542f\u52a8\u4e00\u4e2a kube-proxy \u8fdb\u7a0b\u4ee3\u7406\u5185\u90e8\u7684\u670d\u52a1\u81f3\u8be5\u547d\u4ee4\u6267\u884c\u7684\u5bbf\u4e3b\u673a\u8282\u70b9\uff0c\u5982\u679c\u8be5\u5bbf\u4e3b\u673a\u5177\u5907\u516c\u7f51 IP\uff0c\u4e14\u8f6c\u53d1\u76d1\u542c\u7aef\u53e3\u4e3a0.0.0.0\u5c31\u53ef\u4ee5\u5b9e\u73b0\u516c\u7f51\u8bbf\u95ee\u8be5\u670d\u52a1\uff0c\u8be5\u65b9\u5f0f\u53ef\u4ee5\u4ee3\u7406\u5355\u4e2a Pod\uff0c\u6216\u8005 Deployment\uff0c\u6216\u8005 Servcie\u3002<\/p>\n

\r\n$ kubectl port-forward -h\r\nForward one or more local ports to a pod. This command requires the node to have 'socat' installed.\r\nUse resource type\/name such as deployment\/mydeployment to select a pod. Resource type defaults to 'pod' if omitted.\r\nIf there are multiple pods matching the criteria, a pod will be selected automatically. The forwarding session ends\r\nwhen the selected pod terminates, and rerun of the command is needed to resume forwarding.\r\nExamples:\r\n # Listen on ports 5000 and 6000 locally, forwarding data to\/from ports 5000 and 6000 in the pod\r\n kubectl port-forward pod\/mypod 5000 6000\r\n # Listen on ports 5000 and 6000 locally, forwarding data to\/from ports 5000 and 6000 in a pod selected by the\r\ndeployment\r\n kubectl port-forward deployment\/mydeployment 5000 6000\r\n # Listen on port 8443 locally, forwarding to the targetPort of the service's port named \"https\" in a pod selected by\r\nthe service\r\n kubectl port-forward service\/myservice 8443:https\r\n # Listen on port 8888 locally, forwarding to 5000 in the pod\r\n kubectl port-forward pod\/mypod 8888:5000\r\n # Listen on port 8888 on all addresses, forwarding to 5000 in the pod\r\n kubectl port-forward --address 0.0.0.0 pod\/mypod 8888:5000\r\n # Listen on port 8888 on localhost and selected IP, forwarding to 5000 in the pod\r\n kubectl port-forward --address localhost,10.19.21.23 pod\/mypod 8888:5000\r\n # Listen on a random port locally, forwarding to 5000 in the pod\r\n kubectl port-forward pod\/mypod :5000\r\n<\/pre>\n
NodePort \u65b9\u5f0f<\/strong><\/span><\/div>\n

\u5176\u6b21\u8f83\u5e38\u7528\u7684\u4e3a NodePort \u65b9\u5f0f\uff0c\u5c06 K8s \u4e2d service \u7684\u7c7b\u578b\u4fee\u6539\u4e3a NodePort \u65b9\u5f0f\uff0c\u4f1a\u5f97\u5230\u4e00\u4e2a\u7aef\u53e3\u8303\u56f4\u5728 30000-32767 \u7aef\u53e3\u8303\u56f4\u5185\u7684\u5bbf\u4e3b\u673a\u7aef\u53e3\uff0c\u540c\u6837\u5bbf\u4e3b\u673a\u5177\u6709\u516c\u7f51 IP \u5c31\u53ef\u4ee5\u5b9e\u73b0\u5bf9\u670d\u52a1\u7684\u66b4\u9732\uff0c\u4f46\u662f NodePort \u4f1a\u5360\u7528\u5bbf\u4e3b\u673a\u7aef\u53e3\uff0c\u4e00\u4e2a Service \u5bf9\u5e94\u4e00\u4e2a NodePort\uff0c\u8be5\u65b9\u5f0f\u4ec5\u4e3a\u56db\u5c42\uff0c\u65e0\u6cd5\u5b9e\u73b0 SSL \u8bc1\u4e66\u7684\u5378\u8f7d\uff0c\u5982\u679c\u5c06\u670d\u52a1\u8f6c\u53d1\u5230\u5355\u4e2a Node \u8282\u70b9\u7684 NodePort \u4e5f\u65e0\u6cd5\u5b9e\u73b0\u9ad8\u53ef\u7528\uff0c\u4e00\u822c\u9700\u8981\u5728 NodePort \u524d\u642d\u914d\u8d1f\u8f7d\u5747\u8861\u6765\u6dfb\u52a0\u591a\u4e2a\u540e\u7aef NodePort \u5df2\u5b9e\u73b0\u9ad8\u53ef\u7528\u3002<\/p>\n

\"\"<\/p>\n

LoadBalancer \u56db\u5c42<\/strong><\/span><\/div>\n

\u56db\u5c42\u6d41\u91cf\u8f6c\u53d1\u4e00\u4e2a LB \u7684\u7aef\u53e3\u53ea\u80fd\u5bf9\u5e94\u4e00\u4e2a Service\uff0cServcie \u7684 Type \u4e3a NodePort\uff0c\u4f8b\u5982\u5982\u4e0b\u56fe\uff0cLoadBalancer \u4e0a\u7684 88 \u7aef\u53e3\u5bf9\u5e94\u8f6c\u53d1\u5230\u540e\u7aef NodePort \u7684 32111 \u7aef\u53e3\uff0c\u5bf9\u5e94\u5230 servcieA\uff1bLB \u4e0a\u7684 8080 \u7aef\u53e3\u5bf9\u5e94\u8f6c\u53d1\u5230\u540e\u7aef NodePort32001 \u7aef\u53e3\uff1b\u8be5\u65b9\u6848\u53ef\u4ee5\u901a\u8fc7\u6dfb\u52a0\u591a\u4e2a NodePort \u65b9\u5f0f\u5b9e\u73b0\u9ad8\u53ef\u7528\uff0c\u4f46\u662f\u7531\u4e8e\u4e3a\u56db\u5c42\u65e0\u6cd5\u5b9e\u73b0\u5bf9 SSL \u7684\u5378\u8f7d\uff0c\u5bf9\u5e94 NodePort \u9700\u8981\u5728 LB \u5360\u7528\u4e00\u4e2a\u7aef\u53e3\u3002<\/p>\n

\"\"<\/p>\n

LoadBalancer \u4e03\u5c42<\/strong><\/span><\/div>\n

\u4e03\u5c42\u53ef\u4ee5\u501f\u52a9 LB \u7684\u57df\u540d\u8f6c\u53d1\uff0c\u5b9e\u73b0\u4e00\u4e2a\u57df\u540d\u7aef\u53e3\u5bf9\u5e94\u591a\u4e2a Service\uff0c\u5982\u56fe\u53ef\u4ee5\u6839\u636e path \u8def\u5f84\uff0c\/cmp \u5bf9\u5e94 NodePort \u7684 32111\uff0c\/gateway \u5bf9\u5e94 NodePort \u7684 32000 \u7aef\u53e3\uff0c\u4e0d\u4ec5\u53ef\u4ee5\u5b9e\u73b0\u9ad8\u53ef\u7528\uff0c\u800c\u4e14\u4e03\u5c42\u53ef\u4ee5\u5b9e\u73b0 SSL \u5378\u8f7d\u3002<\/p>\n

\"\"<\/p>\n

\u76ee\u524d\u4e00\u822c\u516c\u6709\u4e91\u7684 LB \u7ea7\u522b\u90fd\u5177\u5907\u56db\u5c42\u548c\u4e03\u5c42\u7684\u529f\u80fd\uff0c\u914d\u5408\u4f7f\u7528\u53ef\u4ee5\u5b9e\u73b0\u7075\u6d3b\u7684\u4e1a\u52a1\u6d41\u91cf\u66b4\u9732\u3002<\/p>\n

Ingress<\/strong><\/span><\/div>\n

\u5728 K8s \u4e2d\uff0c\u5b58\u5728\u6709 Ingress \u8d44\u6e90\u6765\u5b9e\u73b0\u5355\u4e2a\u57df\u540d\u8f6c\u53d1\u6839\u636e\u4e0d\u540c\u7684\u8def\u5f84\u6216\u5176\u4ed6\u914d\u7f6e\u89c4\u5219\u8f6c\u53d1\u5230 K8 \u96c6\u7fa4\u5185\u90e8\u4e0d\u540c\u7684 Service\uff0c\u4f46\u662f\u7528\u6237\u8bf7\u6c42\u9700\u8981\u8bbf\u95ee Ingress \u5b9e\u73b0\u63a7\u5236\u5668\u7684 NodePort \u4f8b\u5982 Ingress-nginx \u7684 Controller \u7684 Service \u7684 NodePort\uff0c\u9488\u5bf9\u5177\u4f53\u7684\u4e1a\u52a1\u57df\u540d\u4e00\u822c\u4e0d\u4f1a\u5e26\u7aef\u53e3\uff0c\u6240\u4ee5\u4e00\u822c\u524d\u9762\u8fd8\u9700\u8981\u4e00\u5c42 80\/443 \u7684\u7aef\u53e3\u8f6c\u53d1\u3002<\/p>\n

\u4e00\u822c Ingress \u7684 Controller \u5b9e\u73b0\u4e1a\u754c\u4e5f\u6709\u4e0d\u5c11\u89e3\u51b3\u65b9\u6848\uff0c\u4f8b\u5982\u6bd4\u8f83\u77e5\u540d\u7684 Ingress\u2014nginx\/Ingress-traefik \u7b49\u3002<\/p>\n

\"\"<\/p>\n

LoadBalancer + Ingress<\/strong><\/span><\/div>\n

\u5982\u4e0b\u56fe\u6240\u793a\u5728\u6700\u524d\u9762\u6709\u4e00\u4e2a\u56db\u5c42 LB \u5b9e\u73b0\u7aef\u53e3 80\/443 \u8f6c\u53d1\u81f3 ingress-provider \u7684 Service \u7684 NodePort\uff0cK8s \u96c6\u7fa4\u5185\u90e8\u914d\u7f6e\u6709\u591a\u4e2a service\u3002<\/p>\n

\"\"<\/p>\n

Ingress-nginx \u8be6\u89e3<\/strong><\/span><\/div>\n

\u5728\u4e0a\u9762\u7684\u51e0\u79cd\u65b9\u6848\u4e2d\uff0c\u5747\u6709\u7528\u5230 Ingress\uff0cNginx-ingress \u4e3a Nginx \u5b98\u65b9\u63d0\u4f9b\u7684\u5b9e\u73b0 K8s ingress \u8d44\u6e90\u7684\u65b9\u6848\uff0c\u540c\u65f6 Kubernetes \u5b98\u65b9\u4e5f\u63d0\u4f9b\u4e86\u57fa\u4e8e Nginx \u5b9e\u73b0\u7684 Ingress \u65b9\u6848\u3002<\/p>\n

Nginx Ingress \u7531\u8d44\u6e90\u5bf9\u8c61 Ingress\u3001Ingress \u63a7\u5236\u5668\u3001Nginx \u4e09\u90e8\u5206\u7ec4\u6210\uff0cIngress \u63a7\u5236\u5668\u7684\u76ee\u6807\u662f\u6784\u5efa\u5b8c\u6210\u4e00\u4e2a\u914d\u7f6e\u6587\u4ef6(nginx.conf)\uff0c\u4e3b\u8981\u901a\u8fc7\u68c0\u6d4b\u914d\u7f6e\u6587\u4ef6\u53d1\u751f\u6539\u53d8\u540e\u91cd\u8f7d Nginx \u5b9e\u73b0\uff0c\u4f46\u5e76\u4e0d\u662f\u4ec5\u5728 Upstream \u66f4\u6539\u65f6\u91cd\u8f7d Nginx\uff08\u90e8\u7f72\u5e94\u7528\u7a0b\u5e8f\u65f6\u4fee\u6539 Endpoints\uff09\uff0c\u4f7f\u7528 lua-nginx-module \u5b9e\u73b0\u3002<\/p>\n

\u6839\u636e\u4e0b\u56fe\u53ef\u4ee5\u66f4\u597d\u7406\u89e3 Ingress-nginx \u7684\u4f7f\u7528\u573a\u666f\u3002<\/p>\n

\"\"<\/p>\n

\u56fe\u4e2d\u5c55\u793a\u5982\u4e0b\u4fe1\u606f\uff1a<\/p>\n

    \n1\uff0c\u4e00\u4e2a K8s \u96c6\u7fa4
    \n2\uff0c\u96c6\u7fa4\u7528\u6237\u7ba1\u7406\u3001\u7528\u6237 A \u548c\u7528\u6237 B\uff0c\u5b83\u4eec\u901a\u8fc7 Kubernetes API \u4f7f\u7528\u96c6\u7fa4\u3002
    \n3\uff0c\u5ba2\u6237\u7aef A \u548c\u5ba2\u6237\u7aef B\uff0c\u5b83\u4eec\u8fde\u63a5\u5230\u76f8\u5e94\u7528\u6237\u90e8\u7f72\u7684\u5e94\u7528\u7a0b\u5e8f A \u548c B\u3002
    \n4\uff0cIC\uff0c\u7531 Admin \u90e8\u7f72\u5728\u540d\u79f0\u7a7a\u95f4 nginx-ingress \u4e2d\u7684 pod \u4e2d\uff0c\u5e76\u901a\u8fc7 ConfigMap nginx-ingress \u8fdb\u884c\u914d\u7f6e\u3002Admin \u901a\u5e38\u90e8\u7f72\u81f3\u5c11\u4e24\u4e2a pod \u4ee5\u5b9e\u73b0\u5197\u4f59\u3002IC \u4f7f\u7528 Kubernetes API \u83b7\u53d6\u96c6\u7fa4\u4e2d\u521b\u5efa\u7684\u6700\u65b0\u5165\u53e3\u8d44\u6e90\uff0c\u7136\u540e\u6839\u636e\u8fd9\u4e9b\u8d44\u6e90\u914d\u7f6e NGINX\u3002
    \n5\uff0c\u5e94\u7528\u7a0b\u5e8f A \u7531\u7528\u6237 A \u5728\u547d\u540d\u7a7a\u95f4 A \u4e2d\u90e8\u7f72\u4e86\u4e24\u4e2a\u540a\u8231\u3002\u4e3a\u4e86\u901a\u8fc7\u4e3b\u673a A.example.com \u5411\u5176\u5ba2\u6237\u673a\uff08\u5ba2\u6237\u673a A\uff09\u516c\u5f00\u5e94\u7528\u7a0b\u5e8f\uff0c\u7528\u6237 A \u521b\u5efa\u5165\u53e3 A\u3002
    \n6\uff0c\u7528\u6237 B \u5728\u547d\u540d\u7a7a\u95f4 B \u4e2d\u90e8\u7f72\u4e86\u4e00\u4e2a pod \u7684\u5e94\u7528\u7a0b\u5e8f B\u3002\u4e3a\u4e86\u901a\u8fc7\u4e3b\u673a B.example.com \u5411\u5176\u5ba2\u6237\u673a\uff08\u5ba2\u6237\u673a B\uff09\u516c\u5f00\u5e94\u7528\u7a0b\u5e8f\uff0c\u7528\u6237 B \u521b\u5efa VirtualServer B\u3002
    \n7\uff0c\u516c\u5171\u7aef\u70b9\uff0c\u5b83\u4f4d\u4e8e IC \u540a\u8231\u524d\u9762\u3002\u8fd9\u901a\u5e38\u662f\u4e00\u4e2a TCP \u8d1f\u8f7d\u5747\u8861\u5668\uff08\u4e91\u3001\u8f6f\u4ef6\u6216\u786c\u4ef6\uff09\uff0c\u6216\u8005\u8fd9\u79cd\u8d1f\u8f7d\u5747\u8861\u5668\u4e0e NodePort \u670d\u52a1\u7684\u7ec4\u5408\u3002\u5ba2\u6237\u7aef A \u548c B \u901a\u8fc7\u516c\u5171\u7aef\u70b9\u8fde\u63a5\u5230\u4ed6\u4eec\u7684\u5e94\u7528\u7a0b\u5e8f\u3002\n<\/ol>\n

    \u9ec4\u8272\u548c\u7d2b\u8272\u7bad\u5934\u8868\u793a\u4e0e\u5ba2\u6237\u7aef\u901a\u4fe1\u91cf\u76f8\u5173\u7684\u8fde\u63a5\uff0c\u9ed1\u8272\u7bad\u5934\u8868\u793a\u5bf9 Kubernetes API \u7684\u8bbf\u95ee\u3002<\/p>\n

    \u4e3a\u4e86\u7b80\u5355\uff0c\u6ca1\u6709\u663e\u793a\u8bb8\u591a\u5fc5\u8981\u7684 Kubernetes \u8d44\u6e90\uff0c\u5982\u90e8\u7f72\u548c\u670d\u52a1\uff0c\u7ba1\u7406\u5458\u548c\u7528\u6237\u4e5f\u9700\u8981\u521b\u5efa\u8fd9\u4e9b\u8d44\u6e90\u3002<\/p>\n

    \u5176\u4ed6<\/strong><\/div>\n

    \u5728 K8s \u4e2d\uff0c\u901a\u5e38\u4e91\u5382\u5546\u7684 LB \u4e00\u822c\u4e91\u5382\u5546\u63d0\u4f9b\u9002\u914d CNI\uff0c\u4f1a\u5728\u521b\u5efa K8s \u96c6\u7fa4\u65f6\u4f1a\u81ea\u52a8\u521b\u5efa LB \u7c7b\u578b\u7684 servcie\uff0c\u4f8b\u5982\u963f\u91cc\u7684 ACK\uff0c\u817e\u8baf\u7684 TKE\uff0c\u534e\u4e3a\u7684 CCE \u7b49\uff0c\u4f46\u662f\u5728\u6211\u4eec\u81ea\u5efa\u6216\u4e2a\u4eba\u6d4b\u8bd5\u573a\u666f\uff0c\u5f00\u6e90\u7684 Metallb[1]\u662f\u4e00\u4e2a\u4e0d\u9519\u7684\u9009\u62e9\uff0c\u5176\u4f5c\u7528\u901a\u8fc7 K8s \u539f\u751f\u7684\u65b9\u5f0f\u63d0\u4f9b LB \u7c7b\u578b\u7684 Service \u652f\u6301\uff0c\u5f00\u7bb1\u5373\u7528\uff0c\u5f53\u7136\u8fd8\u6709\u9752\u4e91\u79d1\u6280 KubeSphere \u56e2\u961f\u5f00\u6e90\u7684\u8d1f\u8f7d\u5747\u8861\u5668\u63d2\u4ef6 OpenELB[2],\u662f\u4e3a\u7269\u7406\u673a\uff08Bare-metal\uff09\u3001\u8fb9\u7f18\uff08Edge\uff09\u548c\u79c1\u6709\u5316\u73af\u5883\u8bbe\u8ba1\u7684\u8d1f\u8f7d\u5747\u8861\u5668\u63d2\u4ef6\uff0c\u53ef\u4f5c\u4e3a Kubernetes\u3001K3s\u3001KubeSphere \u7684 LB \u63d2\u4ef6\u5bf9\u96c6\u7fa4\u5916\u66b4\u9732 \u201cLoadBalancer\u201d \u7c7b\u578b\u7684\u670d\u52a1\u3002\u5728 2021 \u5e74 11 \u6708\u5df2\u8fdb\u5165 CNCF \u6c99\u7bb1\uff08Sandbox\uff09\u6258\u7ba1\uff0c\u4e5f\u662f\u89e3\u51b3\u7528\u6237\u5c06 Kubernetes \u96c6\u7fa4\u90e8\u7f72\u5728\u88f8\u673a\u4e0a\uff0c\u6216\u662f\u79c1\u6709\u5316\u73af\u5883\u7279\u522b\u662f\u7269\u7406\u673a\u6216\u8fb9\u7f18\u96c6\u7fa4\uff0cKubernetes \u5e76\u4e0d\u63d0\u4f9b LoadBalancer \u7684\u75db\u70b9\uff0c\u63d0\u4f9b\u4e0e\u57fa\u4e8e\u4e91\u7684\u8d1f\u8f7d\u5747\u8861\u5668\u76f8\u540c\u7684\u7528\u6237\u4f53\u9a8c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

    Kuberentes \u793e\u533a\u901a\u8fc7\u4e3a\u96c6\u7fa4\u589e\u8bbe\u5165\u53e3\u70b9\u7684\u65b9\u6848\uff0c\u89e3\u51b3\u5bf9\u5916\u6d41\u91cf\u7684\u7ba1\u7406\u3002 \u901a\u5e38\u5728\u6700\u7b80\u5355\u7684\u6d4b\u8bd5\u6216\u4e2a\u4eba\u5f00\u53d1\u73af\u5883\uff0c […]<\/p>\n","protected":false},"author":370,"featured_media":171155,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-247818","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/247818","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/370"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=247818"}],"version-history":[{"count":3,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/247818\/revisions"}],"predecessor-version":[{"id":247830,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/247818\/revisions\/247830"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/171155"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=247818"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=247818"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=247818"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}