{"id":251,"date":"2021-06-23T20:19:57","date_gmt":"2021-06-23T11:19:57","guid":{"rendered":"https:\/\/rfsec.ddns.net\/db\/?p=251"},"modified":"2021-06-25T15:56:02","modified_gmt":"2021-06-25T06:56:02","slug":"k8s%e3%81%ae%e3%82%b5%e3%83%bc%e3%83%93%e3%82%b9%e3%81%b8%e5%88%a5%e3%83%9e%e3%82%b7%e3%83%b3%e3%81%8b%e3%82%89%e6%8e%a5%e7%b6%9a","status":"publish","type":"post","link":"https:\/\/rfsec.ddns.net\/db\/?p=251","title":{"rendered":"k8s\u306e\u30b5\u30fc\u30d3\u30b9\u3078\u5225\u30de\u30b7\u30f3\u304b\u3089\u63a5\u7d9a"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">k8s\u306e\u30b5\u30fc\u30d3\u30b9\u3078\u5225\u30de\u30b7\u30f3\u304b\u3089\u63a5\u7d9a\u3059\u308b\u306b\u306f\u3001\u30dd\u30fc\u30c8\u30d5\u30a9\u30ef\u30fc\u30c7\u30a3\u30f3\u30b0\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u4f8b\u3048\u3070k8s\u306edashbord\u3092\u30a2\u30af\u30bb\u30b9\u3059\u308b\u5834\u5408\u306b\u306f\u3001\u8a2d\u5b9a\u306b\u5fc5\u8981\u306a\u60c5\u5831\u3092\u6b21\u306e\u624b\u9806\u3067\u53d6\u5f97<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>$ microk8s kubectl get all --all-namespaces | grep dashboard | grep TCP\nkube-system          service\/kubernetes-dashboard        ClusterIP      10.152.183.19    &lt;none&gt;        443\/TCP<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u5fc5\u8981\u306a\u90e8\u5206\u306f\u592a\u5b57\u306e\u7b87\u6240<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>kube-system<\/strong>    <strong>service\/kubernetes-dashboard<\/strong> ClusterIP 10.152.183.19 <strong>443<\/strong>\/TCP<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5916\u90e8\u304b\u3089\u30a2\u30af\u30bb\u30b9\u3059\u308b\u5834\u5408\u306e\u30dd\u30fc\u30c8\u3092<strong>10443<\/strong>\u3068\u3057\u305f\u5834\u5408\u306eportforward\u8a2d\u5b9a\u306e\u4f8b\uff1b10443\u304c\u65e2\u306b\u4f7f\u308f\u308c\u3066\u3044\u305f\u5834\u5408\u306f\u30a8\u30e9\u30fc\u3068\u306a\u308b\u306e\u3067\u3001\u5225\u306e\u30dd\u30fc\u30c8\u3092\u6307\u5b9a\u3059\u308b\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>microk8s.kubectl port-forward --address 0.0.0.0 -n kube-system service\/kubernetes-dashboard 10443:443 &<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">wordpress\u3092\u30a2\u30af\u30bb\u30b9\u3059\u308b\u5834\u5408\uff1b\u5916\u90e8\u30de\u30b7\u30f3\u304b\u3089http:\/\/xxx.xxx.xxx.xxx:20443\/\u3092\u30a2\u30af\u30bb\u30b9<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\uff08xxx.xxx.xxx.xxx\u306fk8s\u30de\u30b7\u30f3\u306eIP\u30a2\u30c9\u30ec\u30b9\uff09<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>microk8s kubectl get all --all-namespaces | grep wordpress | grep TCP\nhelm-test            service\/test-wordpress              LoadBalancer   10.152.183.226   &lt;pending&gt;     80:30034\/TCP,443:30311\/TC\nmicrok8s.kubectl port-forward --address 0.0.0.0 -n helm-test service\/test-wordpress 20443:443 &\nForwarding from 0.0.0.0:20443 -&gt; 8443<\/code><\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<p>k8s\u306e\u30b5\u30fc\u30d3\u30b9\u3078\u5225\u30de\u30b7\u30f3\u304b\u3089\u63a5\u7d9a\u3059\u308b\u306b\u306f\u3001\u30dd\u30fc\u30c8\u30d5\u30a9\u30ef\u30fc\u30c7\u30a3\u30f3\u30b0\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u4f8b\u3048\u3070k8s\u306edashbord\u3092\u30a2\u30af\u30bb\u30b9\u3059\u308b\u5834\u5408\u306b\u306f\u3001\u8a2d\u5b9a\u306b\u5fc5\u8981\u306a\u60c5\u5831\u3092\u6b21\u306e\u624b\u9806\u3067\u53d6\u5f97 \u5fc5\u8981\u306a\u90e8\u5206\u306f\u592a\u5b57\u306e\u7b87\u6240 kube-system se [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3],"tags":[],"class_list":["post-251","post","type-post","status-publish","format-standard","hentry","category-network"],"featured_image_src":null,"author_info":{"display_name":"mars","author_link":"https:\/\/rfsec.ddns.net\/db\/?author=1"},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/rfsec.ddns.net\/db\/index.php?rest_route=\/wp\/v2\/posts\/251","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rfsec.ddns.net\/db\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rfsec.ddns.net\/db\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rfsec.ddns.net\/db\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rfsec.ddns.net\/db\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=251"}],"version-history":[{"count":3,"href":"https:\/\/rfsec.ddns.net\/db\/index.php?rest_route=\/wp\/v2\/posts\/251\/revisions"}],"predecessor-version":[{"id":255,"href":"https:\/\/rfsec.ddns.net\/db\/index.php?rest_route=\/wp\/v2\/posts\/251\/revisions\/255"}],"wp:attachment":[{"href":"https:\/\/rfsec.ddns.net\/db\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=251"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rfsec.ddns.net\/db\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=251"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rfsec.ddns.net\/db\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=251"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}