{"id":7431,"date":"2023-01-02T11:03:03","date_gmt":"2023-01-02T02:03:03","guid":{"rendered":"https:\/\/lab4ict.com\/system\/?p=7431"},"modified":"2023-01-09T10:23:24","modified_gmt":"2023-01-09T01:23:24","slug":"kubectl%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8b%ef%bc%81%ef%bc%88locky-linux-9%ef%bc%89","status":"publish","type":"post","link":"https:\/\/lab4ict.com\/system\/archives\/7431","title":{"rendered":"kubectl\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\uff01\uff08Locky Linux 9\uff09"},"content":{"rendered":"<p>Kubernates\u3092\u4f7f\u7528\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u307e\u305a\u300ckubectl\u300d\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002Kubernates\u3092\u4f7f\u7528\u3059\u308b\u305f\u3081\u3001Locky Linux 9\u306bkubectl\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<p><!--more--><\/p>\n<h2>kubectl\u306e\u30d0\u30a4\u30ca\u30ea\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\uff01<\/h2>\n<p>kubectl\u306e\u6700\u65b0\u7248\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3059\uff01<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ curl -LO &quot;https:\/\/storage.googleapis.com\/kubernetes-release\/release\/$(curl -s https:\/\/storage.googleapis.com\/kubernetes-release\/release\/stable.txt)\/bin\/linux\/amd64\/kubectl&quot;\r\n  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\r\n                                 Dload  Upload   Total   Spent    Left  Speed\r\n100 45.7M  100 45.7M    0     0  16.8M      0  0:00:02  0:00:02 --:--:-- 16.8M\r\n<\/pre>\n<h2>kubectl\u306b\u5b9f\u884c\u6a29\u3092\u4ed8\u4e0e\u3059\u308b\uff01<\/h2>\n<p>kubectl\u306b\u5b9f\u884c\u6a29\u3092\u4ed8\u4e0e\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ chmod +x .\/kubectl\r\n$ ls -l .\/kubectl \r\n-rwxr-xr-x 1 usradmin usradmin 48021504 Jan  2 10:52 .\/kubectl\r\n<\/pre>\n<h2>kubectl\u3092\u30d1\u30b9\u304c\u901a\u3063\u3066\u3044\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u79fb\u52d5\u3059\u308b\uff01<\/h2>\n<p>kubectl\u3092\u30d1\u30b9\u304c\u901a\u3063\u3066\u3044\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u79fb\u52d5\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ sudo mv .\/kubectl \/usr\/local\/bin\/kubectl\r\n<\/pre>\n<h2>kubectl\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u78ba\u8a8d\u3059\u308b\uff01<\/h2>\n<p>kubectl\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ kubectl version --client\r\nWARNING: This version information is deprecated and will be replaced with the output from kubectl version --short.  Use --output=yaml|json to get the full version.\r\nClient Version: version.Info{Major:&quot;1&quot;, Minor:&quot;26&quot;, GitVersion:&quot;v1.26.0&quot;, GitCommit:&quot;b46a3f887ca979b1a5d14fd39cb1af43e7e5d12d&quot;, GitTreeState:&quot;clean&quot;, BuildDate:&quot;2022-12-08T19:58:30Z&quot;, GoVersion:&quot;go1.19.4&quot;, Compiler:&quot;gc&quot;, Platform:&quot;linux\/amd64&quot;}\r\nKustomize Version: v4.5.7\r\n<\/pre>\n<p>YAML\u5f62\u5f0f\u3067\u51fa\u529b\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ kubectl version --client --output=yaml\r\nclientVersion:\r\n  buildDate: &quot;2022-12-08T19:58:30Z&quot;\r\n  compiler: gc\r\n  gitCommit: b46a3f887ca979b1a5d14fd39cb1af43e7e5d12d\r\n  gitTreeState: clean\r\n  gitVersion: v1.26.0\r\n  goVersion: go1.19.4\r\n  major: &quot;1&quot;\r\n  minor: &quot;26&quot;\r\n  platform: linux\/amd64\r\nkustomizeVersion: v4.5.7\r\n<\/pre>\n<h2>bash\u306e\u30b3\u30de\u30f3\u30c9\u88dc\u5b8c\u6a5f\u80fd\u3092\u6709\u52b9\u5316\u3059\u308b\uff01<\/h2>\n<p>bash\u306e\u30b3\u30de\u30f3\u30c9\u88dc\u5b8c\u6a5f\u80fd\u3092\u6709\u52b9\u5316\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1,3]; title: ; notranslate\" title=\"\">\r\n$ kubectl completion bash | sudo tee \/etc\/bash_completion.d\/kubectl &gt; \/dev\/null\r\n$ exec bash\r\n<\/pre>\n<h2>\u304a\u308f\u308a\u306b<\/h2>\n<p>kubectl\u3092Kubernates\u306e\u516c\u5f0f\u306e\u65b9\u6cd5\u3067\u3001\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u30c0\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u65b9\u6cd5\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u884c\u3044\u307e\u3057\u305f\u3002<\/p>\n<h2>\u53c2\u8003\u60c5\u5831<\/h2>\n<ul>\n<li><a href=\"https:\/\/kubernetes.io\/\" target=\"_blank\" rel=\"noopener\">Kubernates<\/a><\/li>\n<\/ul>\n<h2>\u95a2\u9023\u8a18\u4e8b<\/h2>\n<div class=\"sc_getpost\"><a class=\"clearfix\" href=\"https:\/\/lab4ict.com\/system\/archives\/7436\" ><div class=\"sc_getpost_thumb post-box-thumbnail__wrap\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODdhAQABAPAAAN3d3QAAACwAAAAAAQABAAACAkQBADs=\" width=\"150\" height=\"150\" alt=\"\u3010\u8a18\u4e8b\u4e00\u89a7\u3011Kubernates\u3092\u4f7f\u3044\u3053\u306a\u3059\uff01\" loading=\"lazy\" data-src=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2023\/01\/eyecatch_kubernates_01-150x150.png\" class=\"lazyload\"><\/div><div class=\"title\">\u3010\u8a18\u4e8b\u4e00\u89a7\u3011Kubernates\u3092\u4f7f\u3044\u3053\u306a\u3059\uff01<\/div><div class=\"substr\">Kubernates\u3092\u4f7f\u3044\u3053\u306a\u3059\u305f\u3081\u306e\u8a18\u4e8b\u4e00\u89a7\u3092\u63b2\u8f09\u3057\u307e\u3059\u3002...<\/div><\/a><\/div>\n<h2>\u95a2\u9023\u66f8\u7c4d\uff08Amazon\uff09<\/h2>\n<p><iframe sandbox=\"allow-popups allow-scripts allow-modals allow-forms allow-same-origin\" style=\"width:120px;height:240px;\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" frameborder=\"0\" src=\"\/\/rcm-fe.amazon-adsystem.com\/e\/cm?lt1=_blank&bc1=000000&IS2=1&bg1=FFFFFF&fc1=000000&lc1=0000FF&t=infotecr-22&language=ja_JP&o=9&p=8&l=as4&m=amazon&f=ifr&ref=as_ss_li_til&asins=B08FZX8PYW&linkId=5af13f3365669758cf1ee39990aa836e\"><\/iframe><\/p>\n<hr \/>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Kubernates\u3092\u4f7f\u7528\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u307e\u305a\u300ckubectl\u300d\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002Kubernates\u3092\u4f7f\u7528\u3059\u308b\u305f\u3081\u3001Locky Linux 9\u306bkubectl\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":7498,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[180],"tags":[],"class_list":["post-7431","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-kubernates"],"_links":{"self":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/7431","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/comments?post=7431"}],"version-history":[{"count":0,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/7431\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/media\/7498"}],"wp:attachment":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/media?parent=7431"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/categories?post=7431"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/tags?post=7431"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}