{"id":142047,"date":"2019-04-17T08:39:30","date_gmt":"2019-04-17T00:39:30","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=142047"},"modified":"2019-04-09T09:41:09","modified_gmt":"2019-04-09T01:41:09","slug":"kubernetes-kube-dns","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/kubernetes-kube-dns.html","title":{"rendered":"Kubernetes\u670d\u52a1\u53d1\u73b0\u548ckube-dns\u63d2\u4ef6"},"content":{"rendered":"
kube-dns\u7684\u4e3b\u8981\u53d8\u5316<\/p>\n
kube-dns\u7684\u5b9e\u73b0\u539f\u7406<\/p>\n
kubedns\u5bb9\u5668\u8be6\u89e3<\/p>\n
dnsmasq\u5bb9\u5668\u7b80\u4ecb<\/p>\n
exechealthz\u5bb9\u5668\u7b80\u4ecb<\/p>\n
\u670d\u52a1\u53d1\u73b0\u673a\u5236\u672a\u53d8\u5316,\u4e5f\u5c31\u662f\u8bf4kube-dns\u5bf9\u5916\u7684\u63a5\u53e3\u662f\u57fa\u672c\u6ca1\u53d8\u7684\u3002\u53d8\u5316\u4e3b\u8981\u5728\u4e8ekube-dns\u63d2\u4ef6\u7684\u5185\u90e8\u7ec4\u6210\uff0c\u7531\u539f\u6765\u7684\u56db\u4e2a\u5bb9\u5668\u53d8\u4e3a\u4e86\u4e09\u4e2a\u3002<\/p>\n
\u73b0\u5728\u56de\u987e\u4e00\u4e0b\u4e0a\u4e00\u671f\u6240\u8bb2\u76841.2\u7248\u672ckube-dns\u7684\u7ec4\u6210\u3002<\/p>\n
Kube2sky\u901a\u8fc7K8S API\u76d1\u89c6K8S Service\u8d44\u6e90\u7684\u53d8\u5316\uff0c\u5e76\u6839\u636eService\u7684\u4fe1\u606f\u751f\u6210DNS\u8bb0\u5f55\u5199\u5165\u5230etcd\u4e2d\u3002Skydns\u4e3a\u96c6\u7fa4\u4e2d\u7684Pod\u63d0\u4f9bDNS\u67e5\u8be2\u670d\u52a1\uff0cDNS\u8bb0\u5f55\u4eceetcd\u4e2d\u8bfb\u53d6\u3002Exechealthz\u63d0\u4f9b\u5065\u5eb7\u68c0\u67e5\u529f\u80fd\u3002
\n<\/p>\n
\u63a5\u4e0b\u6765\u6211\u4eec\u518d\u770b\u4e00\u4e0b1.4\u7248\u672ckube-dns\u7684\u7ec4\u6210\u3002\u5bf9\u6bd4\u4e24\u5f20\u56fe\uff0c\u53ef\u4ee5\u5f88\u76f4\u89c2\u7684\u770b\u5230kube-dns\u5bf9\u5916\u63a5\u53e3\u6ca1\u6709\u53d1\u751f\u53d8\u5316\u3002Exechealthz\u662f\u552f\u4e00\u4fdd\u7559\u7684\u5bb9\u5668\uff0c\u4f9d\u7136\u63d0\u4f9b\u5065\u5eb7\u68c0\u67e5\u3002<\/p>\n
\r\n1.\u4f1a\u68c0\u67e5\u4e24\u4e2a\u5bb9\u5668\u7684\u5065\u5eb7\u72b6\u6001\u3002\r\n\r\n2.\u4e3a\u96c6\u7fa4\u63d0\u4f9bDNS\u67e5\u8be2\u670d\u52a1\u7684\u5bb9\u5668\u7531skydns\u53d8\u4e3a\u4e86dnsmasq\u3002\r\n\r\n3.Kubedns\u5bb9\u5668\u66ff\u4ee3\u4e86kube2sky\u6765\u76d1\u89c6Service\u8d44\u6e90\u3002\r\n\r\n4.Etcd\u5bb9\u5668\u4e0d\u89c1\u4e86\u3002\r\n<\/pre>\n<\/p>\n
\u76f8\u4fe1\u6709\u4e9b\u4eba\u4f1a\u597d\u5947DNS\u8bb0\u5f55\u73b0\u5728\u4fdd\u5b58\u5728\u54ea\u4e86\u5462\uff1f\u90a3\u4e3a\u4e86\u56de\u7b54\u8fd9\u4e2a\u95ee\u9898\u4ee5\u53ca\u4e86\u89e3\u65b0\u7248kube-dns\u7684\u5de5\u4f5c\u539f\u7406\uff0c\u6211\u4eec\u5c31\u8fdb\u5165\u4e0b\u4e00\u7ae0\u5185\u5bb9\u6765\u4e86\u89e3\u5176\u5b9e\u73b0\u539f\u7406\u3002<\/p>\n
\u5b9e\u73b0\u539f\u7406<\/strong><\/span><\/div>\nkubedns\u5bb9\u5668\u7684\u5b9e\u73b0<\/p>\n
\u672c\u7740\u201cTalk is cheap, show me the code\u201d\u539f\u5219\uff0c\u6211\u4eec\u5c06\u4f1a\u4ee5\u6e90\u7801\u5206\u6790\u7684\u65b9\u5f0f\u4ecb\u7ecd\u5176\u539f\u7406\u3002\u5bf9\u53e6\u5916\u4e24\u4e2a\u5bb9\u5668\u4f1a\u8fdb\u884c\u7b80\u8981\u4ecb\u7ecd\u3002<\/p>\n
\u5148\u6765\u770b\u4e00\u4e0b\u6e90\u7801\u4f4d\u7f6e\uff0c\u8fd9\u91cc\u5217\u51fa\u7684\u662fkube-dns\u63d2\u4ef6\u76f8\u5173\u7684\u6e90\u7801\uff0c\u4e0d\u4ec5\u4ec5\u662fkubedns\u5bb9\u5668\u7684\u3002\u4e4b\u524d\u7684\u6e90\u7801\u662f\u96c6\u4e2d\u5728cluster\/addons\/dns\u4e0b\u9762\u7684\uff0c\u90a3\u4e481.4\u7248\u672c\u4e2d\u5206\u6210\u4e86\u4e09\u4e2a\u76ee\u5f55\uff1a<\/p>\n
\u7b2c\u4e00\u4e2a\u76ee\u5f55\u4f1a\u6709K8S DNS\u76f8\u5173\u7684README\u4ee5\u53cakubedns\u5bb9\u5668\u7684Dockerfile\u3002<\/p>\n
\u7b2c\u4e8c\u4e2a\u76ee\u5f55\u5b58\u653ekube-dns\u63d2\u4ef6\u7684\u7f16\u6392\u6587\u4ef6\u3002<\/p>\n
\u7b2c\u4e09\u4e2a\u662fkubedns\u6e90\u7801\u76ee\u5f55\uff0ckubedns\u5bb9\u5668\u4f7f\u7528\u7684\u547d\u4ee4\u884c\u5c31\u662f\u4ece\u8fd9\u6784\u5efa\u51fa\u6765\u7684\u3002<\/p>\n
kubedns\u5bb9\u5668\u7684\u529f\u80fd<\/strong><\/span><\/div>\n\r\n\u63a5\u5165SkyDNS\uff0c\u4e3adnsmasq\u63d0\u4f9b\u67e5\u8be2\u670d\u52a1\r\n\u66ff\u6362etcd\u5bb9\u5668\uff0c\u4f7f\u7528\u6811\u5f62\u7ed3\u6784\u5728\u5185\u5b58\u4e2d\u4fdd\u5b58DNS\u8bb0\u5f55\r\n\u901a\u8fc7K8S API\u76d1\u89c6Service\u8d44\u6e90\u53d8\u5316\u5e76\u66f4\u65b0DNS\u8bb0\u5f55\r\n\u670d\u52a110053\u7aef\u53e3\r\n<\/pre>\n\u5bf9\u529f\u80fd\u6709\u4e86\u5927\u6982\u4e86\u89e3\u4e4b\u540e\uff0c\u6211\u4eec\u4e0b\u9762\u5c31\u7ed3\u5408\u6e90\u7801\u6765\u770b\u770b\u5404\u4e2a\u529f\u80fd\u662f\u5982\u4f55\u5b9e\u73b0\u7684\u3002<\/p>\n
kubedns\u5b9e\u73b0\u2014\u2014SkyDNS\u63a5\u5165<\/strong><\/span><\/div>\n\u4e0b\u9762\u662fkubedns\u542f\u52a8\u7684\u90e8\u5206\u4ee3\u7801\uff0c\u8fd9\u90e8\u5206\u663e\u793a\u7684\u662fkubedns\u5728\u542f\u52a8\u7684\u65f6\u5019\u4f1a\u521d\u59cb\u5316\u4e00\u4e2aSkyDNS Server\uff0c\u521d\u59cb\u5316\u7684\u65f6\u5019\u4f20\u5165\u4e86\u4e00\u4e2aKubeDNSServer.kd\u3002<\/p>\n
<\/p>\n
SkyDNS Server\u5728\u521d\u59cb\u5316\u7684\u65f6\u5019\u9700\u8981\u4f20\u5165\u4e00\u4e2aBackend\u63a5\u53e3\uff0c\u5176\u5b9a\u4e49\u5982\u4e0b\u3002SkyDNS\u57fa\u4e8eEtcd\u5b9e\u73b0\u4e86\u8be5\u63a5\u53e3\uff0c\u4e5f\u4f1a\u4f7f\u7528\u5b83\u521d\u59cb\u5316Server\u3002\u5f97\u76ca\u4e8eSkyDNS\u7684\u826f\u597d\u8bbe\u8ba1\uff0cK8S\u53ea\u8981\u5b9e\u73b0\u8be5\u63a5\u53e3\u4fbf\u53ef\u4ee5\u63a5\u5165SkyDNS\u6765\u63d0\u4f9bDNS\u67e5\u8be2\u670d\u52a1\uff0c\u5e76\u5b9a\u5236\u5b58\u50a8\u529f\u80fd\u3002<\/p>\n
<\/p>\n
kubedns\u5b9e\u73b0\u2014\u2014etcd\u66ff\u6362<\/strong><\/span><\/div>\n\u5728\u670d\u52a1\u53d1\u73b0\u7684\u6d41\u7a0b\u4e2d\uff0c\u4e3b\u8981\u7528\u5230\u4e86Records\u8fd9\u4e2a\u65b9\u6cd5\uff0c\u4e0b\u9762\u6211\u4eec\u5c31\u6765\u770b\u770bK8S\u662f\u5982\u4f55\u5b9e\u73b0\u8fd9\u4e2a\u65b9\u6cd5\u3002<\/p>\n
\u4e3b\u8981\u6b65\u9aa4\u662f\u5148\u5c06\u57df\u540d\u6309\u201c.\u201d\u62c6\u5206\uff0c\u5e76\u5c06\u5404\u90e8\u5206\u98a0\u5012\u987a\u5e8f\u751f\u6210\u4e00\u4e2apath\u6570\u7ec4\u3002\u8c03\u7528getRecordsForPath\u65b9\u6cd5\u83b7\u53d6DNS\u8bb0\u5f55\u5e76\u8fd4\u56de\u3002
\n<\/p>\ngetRecordsForPath\u4f1a\u8c03\u7528cache\u7684\u76f8\u5173\u65b9\u6cd5\u3002\u8fd9\u4e2acache\u4f1a\u88ab\u521d\u59cb\u5316\u4e3a\u4e00\u4e2aTreeCache\u7ed3\u6784\uff0c\u5b9a\u4e49\u5982\u4e0b\uff1a
\n<\/p>\n\u5982\u4e0b\u56fe\u6240\u793a\uff0cTreeCache\u7684\u7ed3\u6784\u7c7b\u4f3c\u4e8e\u76ee\u5f55\u6811\u3002\u4ece\u6839\u8282\u70b9\u5230\u53f6\u5b50\u8282\u70b9\u7684\u6bcf\u4e2a\u8def\u5f84\u4e0e\u4e00\u4e2a\u57df\u540d\u662f\u76f8\u5bf9\u5e94\u7684\uff0c\u987a\u5e8f\u662f\u98a0\u5012\u7684\u3002\u5b83\u7684\u53f6\u5b50\u8282\u70b9\u53ea\u5305\u542bEntries\uff0c\u975e\u53f6\u5b50\u8282\u70b9\u53ea\u5305\u542bChildNodes\u3002\u53f6\u5b50\u8282\u70b9\u4e2d\u4fdd\u5b58\u7684\u5c31\u662fSkyDNS\u5b9a\u4e49\u7684msg.Service\u7ed3\u6784\uff0c\u53ef\u4ee5\u7406\u89e3\u4e3aDNS\u8bb0\u5f55\u3002<\/p>\n
\u5728Records\u63a5\u53e3\u65b9\u6cd5\u5b9e\u73b0\u4e2d\uff0c\u53ea\u9700\u6839\u636e\u57df\u540d\u67e5\u627e\u5230\u5bf9\u5e94\u7684\u53f6\u5b50\u8282\u70b9\uff0c\u5e76\u8fd4\u56de\u53f6\u5b50\u8282\u70b9\u4e2d\u4fdd\u5b58\u7684\u6240\u6709msg.Service\u6570\u636e\u3002K8S\u5c31\u662f\u901a\u8fc7\u8fd9\u6837\u7684\u4e00\u4e2a\u6570\u636e\u7ed3\u6784\u6765\u4fdd\u5b58DNS\u8bb0\u5f55\u7684\uff0c\u5e76\u66ff\u6362\u4e86Etcd\u3002
\n<\/p>\nkubedns\u5b9e\u73b0\u2014\u2014\u76d1\u89c6Service<\/strong><\/span><\/div>\n\u6700\u540e\u6211\u4eec\u6765\u770b\u4e00\u4e0b\u76d1\u89c6Service\u8d44\u6e90\u7684\u76f8\u5173\u4ee3\u7801\u3002\u5982\u4e0b\u56fe\u6240\u793a\uff0c\u8fd9\u91cc\u4f7f\u7528\u4e86k8s.io\/kubernetes\/pkg\/client\/cache\u5305\u7684NewInformer\u65b9\u6cd5\uff0c\u8fd9\u4e2a\u65b9\u6cd5\u5728K8S\u6e90\u7801\u91cc\u4f1a\u7ecf\u5e38\u770b\u5230\u3002\u5176\u53c2\u6570\u4e3a\uff1a<\/p>\n
\u7b2c\u4e00\u4e2a\u53c2\u6570\u9700\u8981\u4f20\u5165ListWatch\u7ed3\u6784\uff0c\u5b83\u5b9a\u4e49\u4e86List\u548cWatch\u64cd\u4f5c\u6b65\u9aa4\u3002kd.kubeClient\u7ed3\u6784\u53ef\u4ee5\u7528\u6765\u8bbf\u95eeK8S API\uff0c\u4ece\u4ee3\u7801\u4e2d\u53ef\u4ee5\u770b\u51fa\u5206\u522b\u8bbf\u95ee\u4e86List\u548cWatch API<\/p>\n
\u7b2c\u4e8c\u4e2a\u53c2\u6570\u4e3a\u76d1\u89c6\u7684\u8d44\u6e90\u7c7b\u578b\uff0c\u4ee3\u7801\u4e2d\u6307\u5b9a\u4e86Service\u8d44\u6e90<\/p>\n
\u7b2c\u4e09\u4e2a\u53c2\u6570\u4e3aList\u64cd\u4f5c\u7684\u6267\u884c\u95f4\u9694\u3002Watch\u64cd\u4f5c\u662f\u901a\u77e5\u673a\u5236\uff0c\u53ea\u8981\u76d1\u89c6\u7684\u8d44\u6e90\u53d1\u9001\u53d8\u5316<\/p>\n
\u5c31\u4f1a\u8c03\u7528\u5bf9\u5e94\u7684\u56de\u8c03\u51fd\u6570\u3002List\u64cd\u4f5c\u4f1a\u83b7\u53d6\u6700\u65b0\u7684\u5168\u91cf\u8d44\u6e90\u4e0e\u672c\u5730\u72b6\u6001\u8fdb\u884c\u6bd4\u8f83\u6765\u4ea7\u751f\u901a\u77e5\uff0c\u53ef\u4ee5\u907f\u514d\u7f51\u7edc\u539f\u56e0\u5bfc\u81f4\u7684Watch\u4e22\u5931\u901a\u77e5\u7684\u60c5\u51b5\u3002List\u64cd\u4f5c\u4ee3\u4ef7\u8f83\u9ad8\uff0c\u56e0\u6b64\u9700\u8981\u901a\u8fc7\u7b2c\u4e09\u4e2a\u53c2\u6570\u6765\u8bbe\u7f6e\u5176\u6267\u884c\u95f4\u9694\u3002<\/p>\n
\u6700\u540e\u4e00\u4e2a\u53c2\u6570\u7528\u6765\u8bbe\u7f6e\u5904\u7406\u4e8b\u4ef6\u7684\u56de\u8c03\u3002
\n<\/p>\n\u4e0b\u9762\u6211\u4eec\u4ee5\u65b0\u589eService\u4e8b\u4ef6\u7684\u5904\u7406\u6d41\u7a0b\u4e3a\u4f8b\u6765\u7b80\u5355\u4e86\u89e3\u4e00\u4e0b\u4e8b\u4ef6\u5904\u7406\u7684\u4ee3\u7801\u3002<\/p>\n
\u5728\u521b\u5efa\u4e00\u4e2aK8S Service\u8d44\u6e90\u540e\uff0cnewService\u65b9\u6cd5\u6700\u7ec8\u4f1a\u8c03\u7528newPortalService\u65b9\u6cd5\uff0c\u5176\u4ee3\u7801\u5982\u4e0b\u3002getSkyMsg\u51fd\u6570\u4f1a\u5c06Service\u7684ClusterIP\u4fdd\u5b58\u5230msg.Service\u7ed3\u6784\u4e2d\u5e76\u8fd4\u56de\uff0c\u5bf9\u5e94recordValue\u3002recordLabel\u53ef\u4ee5\u7406\u89e3\u4e3a\u4e00\u4e2a\u6458\u8981\u503c\uff0c\u4e0eClusterIP\u662f\u4e00\u4e00\u5bf9\u5e94\u7684\uff0c\u5b83\u5c06\u4f5c\u4e3aTreeCache\u53f6\u5b50\u8282\u70b9\u7684key\u3002<\/p>\n
\u6700\u540e\u6839\u636eService\u4fe1\u606f\u627e\u5230\u5bf9\u5e94\u7684\u6811\u679d\uff08\u5982\u4e0d\u5b58\u5728\u4f1a\u6784\u5efa\uff09\uff0c\u5e76\u8bbe\u7f6e\u53f6\u5b50\u8282\u70b9\u3002\u8fd9\u6837\u4e00\u4e2a\u65b0\u5efa\u7684Service\u5bf9\u5e94\u7684DNS\u8bb0\u5f55\u5c31\u4fdd\u5b58\u5230kubedns\u4e2d\u4e86\u3002<\/p>\n
<\/p>\n
Kubedns\u5bb9\u5668\u7684\u4e3b\u8981\u539f\u7406\u5df2\u7ecf\u8bb2\u89e3\u5b8c\u4e86\uff0c\u4e0b\u9762\u6211\u4eec\u7b80\u8981\u4ecb\u7ecd\u4e00\u4e0b\u5176\u4ed6\u4e24\u4e2a\u5bb9\u5668\u3002<\/p>\n
dnsmasq\u7b80\u4ecb<\/strong><\/span><\/div>\n\r\nDnsmasq\u662f\u4e00\u6b3e\u5c0f\u5de7\u7684DNS\u914d\u7f6e\u5de5\u5177\r\n\u5728kube-dns\u63d2\u4ef6\u4e2d\u7684\u4f5c\u7528\uff1a\r\n\u901a\u8fc7kubedns\u5bb9\u5668\u83b7\u53d6DNS\u89c4\u5219\uff0c\u5728\u96c6\u7fa4\u4e2d\u63d0\u4f9bDNS\u67e5\u8be2\u670d\u52a1\r\n\u63d0\u4f9bDNS\u7f13\u5b58\uff0c\u63d0\u9ad8\u67e5\u8be2\u6027\u80fd\r\n\u964d\u4f4ekubedns\u5bb9\u5668\u7684\u538b\u529b\u3001\u63d0\u9ad8\u7a33\u5b9a\u6027\r\nDockerfile\u5728GitHub\u4e0aKubernetes\u7ec4\u7ec7\u7684contrib\u4ed3\u5e93\u4e2d\uff0c\u4f4d\u4e8ednsmasq\u76ee\u5f55\u4e0b\u3002\r\n\u5728kube-dns\u63d2\u4ef6\u7684\u7f16\u6392\u6587\u4ef6\u4e2d\u53ef\u4ee5\u770b\u5230\uff0cdnsmasq\u901a\u8fc7\u53c2\u6570\u2013server=127.0.0.1#10053\u6307\u5b9aupstream\u4e3akubedns\u3002\r\n<\/pre>\nexechealthz\u7b80\u4ecb<\/strong><\/span><\/div>\n\r\n\u5728kube-dns\u63d2\u4ef6\u4e2d\u63d0\u4f9b\u5065\u5eb7\u68c0\u67e5\u529f\u80fd\r\n\u6e90\u7801\u540c\u6837\u5728contrib\u4ed3\u5e93\u4e2d\uff0c\u4f4d\u4e8eexec-healthz\u76ee\u5f55\u4e0b\u3002\r\n\u65b0\u7248\u4e2d\u4f1a\u5bf9\u4e24\u4e2a\u5bb9\u5668\u90fd\u8fdb\u884c\u5065\u5eb7\u68c0\u67e5\uff0c\u66f4\u52a0\u5b8c\u5584\u3002\r\n<\/pre>\n\u603b\u7ed3<\/strong><\/span><\/div>\n1.4\u7248\u672ckube-dns\u63d2\u4ef6\u7684\u4e09\u4e2a\u5bb9\u5668\u7684\u529f\u80fd\u5982\u4e0b\uff1a<\/p>\n
\r\nkubedns\u5bb9\u5668\r\n\u76d1\u89c6k8s Service\u8d44\u6e90\u5e76\u66f4\u65b0DNS\u8bb0\u5f55\r\n\u66ff\u6362etcd\uff0c\u4f7f\u7528TreeCache\u6570\u636e\u7ed3\u6784\u4fdd\u5b58DNS\u8bb0\u5f55\u5e76\u5b9e\u73b0SkyDNS\u7684Backend\u63a5\u53e3\r\n\u63a5\u5165SkyDNS\uff0c\u5bf9dnsmasq\u63d0\u4f9bDNS\u67e5\u8be2\u670d\u52a1\r\n\r\ndnsmasq\u5bb9\u5668\r\n\u5bf9\u96c6\u7fa4\u63d0\u4f9bDNS\u67e5\u8be2\u670d\u52a1\r\n\u8bbe\u7f6ekubedns\u4e3aupstream\r\n\u63d0\u4f9bDNS\u7f13\u5b58\uff0c\u964d\u4f4ekubedns\u8d1f\u8f7d\uff0c\u63d0\u9ad8\u6027\u80fd\r\n\r\nexechealthz\u5bb9\u5668\r\n\u5b9a\u671f\u68c0\u67e5kubedns\u548cdnsmasq\u7684\u5065\u5eb7\u72b6\u6001\r\n\u4e3ak8s\u6d3b\u6027\u68c0\u6d4b\u63d0\u4f9bHTTP API\r\n<\/pre>\n\u76f8\u6bd4\u4e8e1.2\u7248\u672c\uff0c\u4e2a\u4eba\u8ba4\u4e3a\u6709\u4e86\u5982\u4e0b\u6539\u8fdb\uff1a<\/p>\n
\u65e0\u72b6\u6001\u670d\u52a1\u30021.2\u7248\u672c\u4e2d\uff0c\u9700\u8981\u5c06Etcd\u7684\u6570\u636eVolume\u51fa\u6765\u624d\u80fd\u4fdd\u8bc1Etcd\u5bb9\u5668\u91cd\u542f\u4e4b\u540e\u6570\u636e\u4e0d\u4f1a\u4e22\u5931\uff0c\u670d\u52a1\u53ef\u4ee5\u5feb\u901f\u6062\u590d\u3002\u65b0\u7248\u672c\u4e2d\u4f5c\u4e3a\u65e0\u72b6\u6001\u670d\u52a1\u51fa\u73b0\uff0c\u901a\u8fc7\u589e\u52a0\u5197\u4f59\u6765\u63d0\u9ad8\u53ef\u9760\u6027\u3002\u5373\u4f7fkubedns\u5bb9\u5668\u91cd\u542f\uff0cdnsmasq\u7f13\u5b58\u673a\u5236\u4e5f\u53ef\u4ee5\u4fdd\u8bc1\u670d\u52a1\u7684\u53ef\u7528\u6027\u3002<\/p>\n
\u4f18\u5316\u67e5\u8be2\u6548\u7387\u3002SkyDNS\u76f4\u63a5\u4ece\u5185\u5b58\u4e2d\u83b7\u53d6DNS\u8bb0\u5f55\u3002<\/p>\n
\u5b8c\u5584\u5065\u5eb7\u68c0\u67e5\u30021.2\u7248\u672c\u4e2d\u53ea\u5bf9kube2sky\u8bbe\u7f6e\u4e86\u5065\u5eb7\u68c0\u67e5\u3002<\/p>\n
\u9664\u4e86\u6539\u8fdb\u4e4b\u5916\uff0c\u8fd8\u6709\u4e00\u70b9\u4e0d\u8db3\uff0c\u4e5f\u662f\u5927\u5bb6\u6bd4\u8f83\u62c5\u5fc3\u7684 \u300c \u5185\u5b58\u5360\u7528 \u300d\u3002\u76ee\u524d\u5728kube-dns\u7f16\u6392\u6587\u4ef6\u4e2d\u9ed8\u8ba4\u8bbe\u7f6e\u4e86\u5185\u5b58\u9650\u5236\u4e3a170M\uff0c\u5728\u6ce8\u91ca\u4e2d\u53ef\u4ee5\u770b\u51fa\u8fd9\u4e00\u6570\u5b57\u5e76\u672a\u5728\u5927\u89c4\u6a21\u96c6\u7fa4\u4e2d\u9a8c\u8bc1\u3002\u4e0d\u8fc7\u76f8\u4fe1\u4e0d\u4e45\u7684\u5c06\u6765\u6211\u4eec\u5c31\u80fd\u770b\u5230\u8fd9\u4e00\u9a8c\u8bc1\u7ed3\u679c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"
kube-dns\u7684\u4e3b\u8981\u53d8\u5316 kube-dns\u7684\u5b9e\u73b0\u539f\u7406 kubedns\u5bb9\u5668\u8be6\u89e3 dnsmasq\u5bb9\u5668\u7b80\u4ecb exe […]<\/p>\n","protected":false},"author":1479,"featured_media":142082,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-142047","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\/142047","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\/1479"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=142047"}],"version-history":[{"count":4,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/142047\/revisions"}],"predecessor-version":[{"id":142121,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/142047\/revisions\/142121"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/142082"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=142047"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=142047"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=142047"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}