{"id":37156,"date":"2025-05-14T10:36:03","date_gmt":"2025-05-14T02:36:03","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/37156.html"},"modified":"2025-05-14T10:36:03","modified_gmt":"2025-05-14T02:36:03","slug":"k8s%e4%bd%bf%e7%94%a8%e5%a4%96%e9%83%a8-dns-%e6%9c%8d%e5%8a%a1%e5%99%a8","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/37156.html","title":{"rendered":"k8s\u4f7f\u7528\u5916\u90e8 DNS \u670d\u52a1\u5668"},"content":{"rendered":"<p>\u5728 Kubernetes \u4e2d&#xff0c;\u82e5\u8981\u8ba9\u90e8\u7f72\u7684 Docker \u5bb9\u5668\u4f7f\u7528\u5916\u90e8 DNS \u670d\u52a1\u5668&#xff0c;\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u6b65\u9aa4\u914d\u7f6e\u3002\u5177\u4f53\u65b9\u6cd5\u53d6\u51b3\u4e8e\u662f\u60f3\u9488\u5bf9\u5355\u4e2a Pod \u8fd8\u662f\u6574\u4e2a\u96c6\u7fa4\u751f\u6548&#xff1a;<\/p>\n<hr \/>\n<h4>\u65b9\u6cd5 1&#xff1a;\u9488\u5bf9\u5355\u4e2a Pod \u914d\u7f6e\u5916\u90e8 DNS<\/h4>\n<p>\u4fee\u6539 Pod \u7684 YAML \u914d\u7f6e&#xff0c;\u76f4\u63a5\u6307\u5b9a DNS \u670d\u52a1\u5668\u5730\u5740\u3002<\/p>\n<h5>\u793a\u4f8b YAML&#xff1a;<\/h5>\n<p><span class=\"token key atrule\">apiVersion<\/span><span class=\"token punctuation\">:<\/span> v1<br \/>\n<span class=\"token key atrule\">kind<\/span><span class=\"token punctuation\">:<\/span> Pod<br \/>\n<span class=\"token key atrule\">metadata<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token key atrule\">name<\/span><span class=\"token punctuation\">:<\/span> mypod<br \/>\n<span class=\"token key atrule\">spec<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token key atrule\">containers<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token punctuation\">&#8211;<\/span> <span class=\"token key atrule\">name<\/span><span class=\"token punctuation\">:<\/span> mycontainer<br \/>\n      <span class=\"token key atrule\">image<\/span><span class=\"token punctuation\">:<\/span> nginx<br \/>\n  <span class=\"token key atrule\">dnsPolicy<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#034;None&#034;<\/span>  <span class=\"token comment\"># \u7981\u7528\u9ed8\u8ba4\u7684 DNS \u7b56\u7565<\/span><br \/>\n  <span class=\"token key atrule\">dnsConfig<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token key atrule\">nameservers<\/span><span class=\"token punctuation\">:<\/span><br \/>\n      <span class=\"token punctuation\">&#8211;<\/span> 8.8.8.8       <span class=\"token comment\"># \u5916\u90e8 DNS \u670d\u52a1\u5668 IP<\/span><br \/>\n      <span class=\"token punctuation\">&#8211;<\/span> 1.1.1.1       <span class=\"token comment\"># \u53ef\u9009\u5907\u7528 DNS<\/span><br \/>\n    <span class=\"token key atrule\">searches<\/span><span class=\"token punctuation\">:<\/span><br \/>\n      <span class=\"token punctuation\">&#8211;<\/span> default.svc.cluster.local  <span class=\"token comment\"># \u4fdd\u7559\u96c6\u7fa4\u9ed8\u8ba4\u641c\u7d22\u57df&#xff08;\u53ef\u9009&#xff09;<\/span><br \/>\n      <span class=\"token punctuation\">&#8211;<\/span> svc.cluster.local<br \/>\n      <span class=\"token punctuation\">&#8211;<\/span> cluster.local<br \/>\n    <span class=\"token key atrule\">options<\/span><span class=\"token punctuation\">:<\/span><br \/>\n      <span class=\"token punctuation\">&#8211;<\/span> <span class=\"token key atrule\">name<\/span><span class=\"token punctuation\">:<\/span> ndots<br \/>\n        <span class=\"token key atrule\">value<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#034;2&#034;<\/span><\/p>\n<h5>\u5173\u952e\u53c2\u6570\u8bf4\u660e&#xff1a;<\/h5>\n<ul>\n<li>dnsPolicy: None: \u7981\u7528\u9ed8\u8ba4\u7684\u96c6\u7fa4 DNS&#xff08;\u5982 CoreDNS&#xff09;\u3002<\/li>\n<li>dnsConfig.nameservers: \u6307\u5b9a\u5916\u90e8 DNS \u670d\u52a1\u5668\u5730\u5740\u5217\u8868\u3002<\/li>\n<li>searches: \u5b9a\u4e49\u57df\u540d\u641c\u7d22\u987a\u5e8f&#xff0c;\u5efa\u8bae\u4fdd\u7559\u96c6\u7fa4\u9ed8\u8ba4\u641c\u7d22\u57df\u4ee5\u89e3\u6790\u5185\u90e8\u670d\u52a1\u3002<\/li>\n<li>options: \u8c03\u6574 DNS \u89e3\u6790\u53c2\u6570&#xff08;\u5982 ndots \u63a7\u5236\u57df\u540d\u5339\u914d\u89c4\u5219&#xff09;\u3002<\/li>\n<\/ul>\n<hr \/>\n<h4>\u65b9\u6cd5 2&#xff1a;\u4fee\u6539\u96c6\u7fa4 DNS \u8bbe\u7f6e&#xff08;CoreDNS&#xff09;<\/h4>\n<p>\u901a\u8fc7\u4fee\u6539 CoreDNS \u914d\u7f6e&#xff0c;\u5c06\u6240\u6709\u975e\u96c6\u7fa4\u57df\u540d\u7684\u89e3\u6790\u8bf7\u6c42\u8f6c\u53d1\u5230\u5916\u90e8 DNS \u670d\u52a1\u5668\u3002<\/p>\n<h5>\u6b65\u9aa4&#xff1a;<\/h5>\n<li>\n<p>\u7f16\u8f91 CoreDNS \u7684 ConfigMap&#xff1a;<\/p>\n<p> kubectl edit configmap coredns <span class=\"token parameter variable\">-n<\/span> kube-system\n <\/li>\n<li>\n<p>\u5728 Corefile \u4e2d\u6dfb\u52a0\u8f6c\u53d1\u89c4\u5219&#xff1a;<\/p>\n<p> <span class=\"token key atrule\">apiVersion<\/span><span class=\"token punctuation\">:<\/span> v1<br \/>\n<span class=\"token key atrule\">kind<\/span><span class=\"token punctuation\">:<\/span> ConfigMap<br \/>\n<span class=\"token key atrule\">metadata<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token key atrule\">name<\/span><span class=\"token punctuation\">:<\/span> coredns<br \/>\n  <span class=\"token key atrule\">namespace<\/span><span class=\"token punctuation\">:<\/span> kube<span class=\"token punctuation\">&#8211;<\/span>system<br \/>\n<span class=\"token key atrule\">data<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token key atrule\">Corefile<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token punctuation\">|<\/span><span class=\"token scalar string\"><br \/>\n    .:53 {<br \/>\n        errors<br \/>\n        health {<br \/>\n            lameduck 5s<br \/>\n        }<br \/>\n        ready<br \/>\n        kubernetes cluster.local in-addr.arpa ip6.arpa {<br \/>\n            pods insecure<br \/>\n            fallthrough in-addr.arpa ip6.arpa<br \/>\n        }<br \/>\n        # \u5c06\u975e\u96c6\u7fa4\u57df\u540d\u8bf7\u6c42\u8f6c\u53d1\u5230\u5916\u90e8 DNS<br \/>\n        forward . 8.8.8.8 1.1.1.1 {<br \/>\n            prefer_udp<br \/>\n        }<br \/>\n        cache 30<br \/>\n        loop<br \/>\n        reload<br \/>\n        loadbalance<br \/>\n    }<\/span><\/p>\n<ul>\n<li>forward . 8.8.8.8: \u5c06\u6240\u6709\u975e\u96c6\u7fa4\u57df\u540d\u7684\u89e3\u6790\u8bf7\u6c42\u8f6c\u53d1\u5230 8.8.8.8&#xff08;Google DNS&#xff09;\u3002<\/li>\n<li>\u53ef\u6dfb\u52a0\u591a\u4e2a\u5916\u90e8 DNS \u5730\u5740&#xff0c;\u7528\u7a7a\u683c\u5206\u9694\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u91cd\u542f CoreDNS&#xff08;\u53ef\u9009&#xff09;&#xff1a;<\/p>\n<p> kubectl rollout restart deployment coredns <span class=\"token parameter variable\">-n<\/span> kube-system\n <\/li>\n<hr \/>\n<h4>\u65b9\u6cd5 3&#xff1a;\u4fee\u6539\u8282\u70b9\u7ea7 DNS \u914d\u7f6e<\/h4>\n<p>\u5982\u679c\u5e0c\u671b\u6240\u6709 Pod \u9ed8\u8ba4\u4f7f\u7528\u5916\u90e8 DNS&#xff0c;\u53ef\u4ee5\u4fee\u6539\u8282\u70b9\u7684 \/etc\/resolv.conf&#xff0c;\u4f46\u9700\u6ce8\u610f\u8fd9\u4f1a\u5f71\u54cd\u6240\u6709\u672a\u663e\u5f0f\u914d\u7f6e DNS \u7684 Pod\u3002<\/p>\n<li>\n<p>\u5728\u8282\u70b9\u4e0a\u7f16\u8f91 \/etc\/resolv.conf&#xff1a;<\/p>\n<p> nameserver <span class=\"token number\">8.8<\/span>.8.8<br \/>\nnameserver <span class=\"token number\">1.1<\/span>.1.1\n <\/li>\n<li>\n<p>\u786e\u4fdd Pod \u7684 dnsPolicy \u8bbe\u7f6e\u4e3a Default&#xff1a;<\/p>\n<p> <span class=\"token key atrule\">spec<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token key atrule\">dnsPolicy<\/span><span class=\"token punctuation\">:<\/span> Default  <span class=\"token comment\"># Pod \u7ee7\u627f\u8282\u70b9\u7684 DNS \u914d\u7f6e<\/span>\n <\/li>\n<hr \/>\n<h4>\u9a8c\u8bc1 DNS \u914d\u7f6e<\/h4>\n<p>\u5728 Pod \u5185\u6267\u884c\u547d\u4ee4&#xff0c;\u786e\u8ba4 DNS \u89e3\u6790\u662f\u5426\u751f\u6548&#xff1a;<\/p>\n<p>kubectl <span class=\"token builtin class-name\">exec<\/span> <span class=\"token parameter variable\">-it<\/span> mypod &#8212; <span class=\"token function\">nslookup<\/span> google.com<br \/>\n<span class=\"token comment\"># \u6216<\/span><br \/>\nkubectl <span class=\"token builtin class-name\">exec<\/span> <span class=\"token parameter variable\">-it<\/span> mypod &#8212; <span class=\"token function\">cat<\/span> \/etc\/resolv.conf<\/p>\n<hr \/>\n<h4>\u6ce8\u610f\u4e8b\u9879<\/h4>\n<li>\u7f51\u7edc\u7b56\u7565&#xff1a;\u786e\u4fdd Pod \u6709\u6743\u8bbf\u95ee\u5916\u90e8 DNS \u670d\u52a1\u5668\u7684 53\/UDP \u548c 53\/TCP \u7aef\u53e3\u3002<\/li>\n<li>\u6df7\u5408\u73af\u5883&#xff1a;\u82e5\u9700\u540c\u65f6\u89e3\u6790\u96c6\u7fa4\u5185\u90e8\u548c\u5916\u90e8\u57df\u540d&#xff0c;\u5efa\u8bae\u4f7f\u7528\u65b9\u6cd5 2&#xff08;\u4fee\u6539 CoreDNS \u8f6c\u53d1\u89c4\u5219&#xff09;\u3002<\/li>\n<li>\u6027\u80fd\u4e0e\u5b89\u5168&#xff1a;\u4f7f\u7528\u5916\u90e8 DNS \u53ef\u80fd\u589e\u52a0\u89e3\u6790\u5ef6\u8fdf&#xff0c;\u4e14\u9700\u786e\u4fdd\u5916\u90e8 DNS \u7684\u53ef\u9760\u6027\u3002<\/li>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb618\u6b21\uff0c\u70b9\u8d5e22\u6b21\uff0c\u6536\u85cf20\u6b21\u3002\u5728 Kubernetes \u4e2d\uff0c\u82e5\u8981\u8ba9\u90e8\u7f72\u7684 Docker \u5bb9\u5668\u4f7f\u7528\u5916\u90e8 DNS \u670d\u52a1\u5668\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u6b65\u9aa4\u914d\u7f6e\u3002\u5177\u4f53\u65b9\u6cd5\u53d6\u51b3\u4e8e\u662f\u60f3\u8fd8\u662f\u4fee\u6539 Pod \u7684 YAML \u914d\u7f6e\uff0c\u76f4\u63a5\u6307\u5b9a DNS \u670d\u52a1\u5668\u5730\u5740\u3002_coredns\u6307\u5411\u53e6\u4e00\u4e2adns<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[27,1493,120,121],"topic":[],"class_list":["post-37156","post","type-post","status-publish","format-standard","hentry","category-server","tag-docker","tag-k8s","tag-kubernetes","tag-121"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>k8s\u4f7f\u7528\u5916\u90e8 DNS \u670d\u52a1\u5668 - \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\/37156.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"k8s\u4f7f\u7528\u5916\u90e8 DNS \u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb618\u6b21\uff0c\u70b9\u8d5e22\u6b21\uff0c\u6536\u85cf20\u6b21\u3002\u5728 Kubernetes \u4e2d\uff0c\u82e5\u8981\u8ba9\u90e8\u7f72\u7684 Docker \u5bb9\u5668\u4f7f\u7528\u5916\u90e8 DNS \u670d\u52a1\u5668\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u6b65\u9aa4\u914d\u7f6e\u3002\u5177\u4f53\u65b9\u6cd5\u53d6\u51b3\u4e8e\u662f\u60f3\u8fd8\u662f\u4fee\u6539 Pod \u7684 YAML \u914d\u7f6e\uff0c\u76f4\u63a5\u6307\u5b9a DNS \u670d\u52a1\u5668\u5730\u5740\u3002_coredns\u6307\u5411\u53e6\u4e00\u4e2adns\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/37156.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-05-14T02:36:03+00:00\" \/>\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=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/37156.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/37156.html\",\"name\":\"k8s\u4f7f\u7528\u5916\u90e8 DNS \u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-05-14T02:36:03+00:00\",\"dateModified\":\"2025-05-14T02:36:03+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/37156.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/37156.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/37156.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"k8s\u4f7f\u7528\u5916\u90e8 DNS \u670d\u52a1\u5668\"}]},{\"@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":"k8s\u4f7f\u7528\u5916\u90e8 DNS \u670d\u52a1\u5668 - \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\/37156.html","og_locale":"zh_CN","og_type":"article","og_title":"k8s\u4f7f\u7528\u5916\u90e8 DNS \u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb618\u6b21\uff0c\u70b9\u8d5e22\u6b21\uff0c\u6536\u85cf20\u6b21\u3002\u5728 Kubernetes \u4e2d\uff0c\u82e5\u8981\u8ba9\u90e8\u7f72\u7684 Docker \u5bb9\u5668\u4f7f\u7528\u5916\u90e8 DNS \u670d\u52a1\u5668\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u6b65\u9aa4\u914d\u7f6e\u3002\u5177\u4f53\u65b9\u6cd5\u53d6\u51b3\u4e8e\u662f\u60f3\u8fd8\u662f\u4fee\u6539 Pod \u7684 YAML \u914d\u7f6e\uff0c\u76f4\u63a5\u6307\u5b9a DNS \u670d\u52a1\u5668\u5730\u5740\u3002_coredns\u6307\u5411\u53e6\u4e00\u4e2adns","og_url":"https:\/\/www.wsisp.com\/helps\/37156.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-05-14T02:36:03+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/37156.html","url":"https:\/\/www.wsisp.com\/helps\/37156.html","name":"k8s\u4f7f\u7528\u5916\u90e8 DNS \u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-05-14T02:36:03+00:00","dateModified":"2025-05-14T02:36:03+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/37156.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/37156.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/37156.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"k8s\u4f7f\u7528\u5916\u90e8 DNS \u670d\u52a1\u5668"}]},{"@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\/37156","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=37156"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/37156\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=37156"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=37156"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=37156"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=37156"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}