{"id":7443,"date":"2023-01-02T11:24:51","date_gmt":"2023-01-02T02:24:51","guid":{"rendered":"https:\/\/lab4ict.com\/system\/?p=7443"},"modified":"2023-01-09T10:28:53","modified_gmt":"2023-01-09T01:28:53","slug":"kind%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%88rocky-linux-9%ef%bc%89","status":"publish","type":"post","link":"https:\/\/lab4ict.com\/system\/archives\/7443","title":{"rendered":"kind\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\uff01\uff08Rocky Linux 9\uff09"},"content":{"rendered":"<p>\u691c\u8a3c\u74b0\u5883\u7528\u306bKubernates\u74b0\u5883\u3092\u7528\u610f\u3059\u308b\u306b\u306f\u3001kind\uff08Kubernates in Docker\uff09\u3092\u5229\u7528\u3059\u308b\u306e\u304c\u4fbf\u5229\u3067\u3059\u3002Locky Linux 9\u306b\u3001kind\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<br \/>\n<!--more--><\/p>\n<h2>Kind\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u524d\u63d0\u3092\u78ba\u8a8d\u3059\u308b\uff01<\/h2>\n<p>Kind\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u524d\u63d0\u3068\u3057\u3066\u3001Docker\u304a\u3088\u3073kubectl\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5b8c\u4e86\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u524d\u63d0\u3068\u3057\u307e\u3059\u3002<\/p>\n<h2>kind\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\uff01<\/h2>\n<p>kind\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\uff01<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ curl -Lo .\/kind https:\/\/kind.sigs.k8s.io\/dl\/v0.17.0\/kind-linux-amd64\r\n% Total % Received % Xferd Average Speed Time Time Time Current\r\nDload Upload Total Spent Left Speed\r\n100 97 100 97 0 0 198 0 --:--:-- --:--:-- --:--:-- 197\r\n0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\r\n100 6766k 100 6766k 0 0 2266k 0 0:00:02 0:00:02 --:--:-- 3709k\r\n<\/pre>\n<h2>kind\u306b\u5b9f\u884c\u6a29\u3092\u4ed8\u4e0e\u3059\u308b\uff01<\/h2>\n<p>kind\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 .\/kind\r\n$ ls -l .\/kind\r\n-rwxr-xr-x 1 usradmin usradmin 6929103 Jan 2 11:11 .\/kind\r\n<\/pre>\n<h2>kind\u3092\u30d1\u30b9\u306e\u901a\u3063\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u79fb\u52d5\u3059\u308b\uff01<\/h2>\n<p>kind\u3092\u30d1\u30b9\u306e\u901a\u3063\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u79fb\u52d5\u3057\u307e\u3059\uff01<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ sudo mv .\/kind \/usr\/local\/bin\/kind\r\n<\/pre>\n<h2>kind\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u78ba\u8a8d\u3059\u308b\uff01<\/h2>\n<p>kind\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$ kind --version\r\nkind version 0.17.0\r\n<\/pre>\n<h2>Kubernates\u306e\u30af\u30e9\u30b9\u30bf\u3092\u4f5c\u6210\u3059\u308b\uff01<\/h2>\n<p>Kubernates\u306e\u30af\u30e9\u30b9\u30bf\u3092\u4f5c\u6210\u3066\u307f\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ kind create cluster --name kind-1\r\nCreating cluster &quot;kind-1&quot; ...\r\n \u2713 Ensuring node image (kindest\/node:v1.25.3) \ud83d\uddbc \r\n \u2713 Preparing nodes \ud83d\udce6  \r\n \u2713 Writing configuration \ud83d\udcdc \r\n \u2713 Starting control-plane \ud83d\udd79\ufe0f \r\n \u2713 Installing CNI \ud83d\udd0c \r\n \u2713 Installing StorageClass \ud83d\udcbe \r\nSet kubectl context to &quot;kind-kind-1&quot;\r\nYou can now use your cluster with:\r\n\r\nkubectl cluster-info --context kind-kind-1\r\n\r\nNot sure what to do next? \ud83d\ude05  Check out https:\/\/kind.sigs.k8s.io\/docs\/user\/quick-start\/\r\n\r\n<\/pre>\n<h2>\u30af\u30e9\u30b9\u30bf\u306e\u4e00\u89a7\u3092\u8868\u793a\u3059\u308b\uff01<\/h2>\n<p>\u4f5c\u6210\u3057\u305f\u30af\u30e9\u30b9\u30bf\u304c\u8868\u793a\u3055\u308c\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ kind get clusters\r\nkind-1\r\n<\/pre>\n<h2>kubectl\u30b3\u30de\u30f3\u30c9\u3067\u30af\u30e9\u30b9\u30bf\u60c5\u5831\u3092\u8868\u793a\u3059\u308b\uff01<\/h2>\n<p>kubectl\u30b3\u30de\u30f3\u30c9\u3067kind\u3067\u4f5c\u6210\u3057\u305f\u30af\u30e9\u30b9\u30bf\u306e\u60c5\u5831\u3092\u8868\u793a\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ kubectl cluster-info --context kind-kind-1\r\nKubernetes control plane is running at https:\/\/127.0.0.1:41625\r\nCoreDNS is running at https:\/\/127.0.0.1:41625\/api\/v1\/namespaces\/kube-system\/services\/kube-dns:dns\/proxy\r\n\r\nTo further debug and diagnose cluster problems, use 'kubectl cluster-info dump'.\r\n<\/pre>\n<h2>Docker\u304b\u3089\u3082\u4f5c\u6210\u3057\u305f\u30af\u30e9\u30b9\u30bf\u3092\u78ba\u8a8d\u3059\u308b\uff01<\/h2>\n<p>\u4f5c\u6210\u3057\u305f\u30af\u30e9\u30b9\u30bf\u306f\u3001Docker\u304b\u3089\u3082\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ docker ps\r\nCONTAINER ID   IMAGE                  COMMAND                  CREATED         STATUS         PORTS                       NAMES\r\nfa22a0e0b80f   kindest\/node:v1.25.3   &quot;\/usr\/local\/bin\/entr\u2026&quot;   8 minutes ago   Up 8 minutes   127.0.0.1:41625-&gt;6443\/tcp   kind-1-control-plane\r\n<\/pre>\n<h2>\u30af\u30e9\u30b9\u30bf\u3092\u524a\u9664\u3059\u308b\uff01<\/h2>\n<p>\u4f5c\u6210\u3057\u305f\u30af\u30e9\u30b9\u30bf\u3092\u524a\u9664\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1,3,5,7]; title: ; notranslate\" title=\"\">\r\n$ kind delete cluster --name kind-1\r\nDeleting cluster &quot;kind-1&quot; ...\r\n$ kind get clusters\r\nNo kind clusters found.\r\n$ kubectl cluster-info --context kind-kind-1\r\nerror: context &quot;kind-kind-1&quot; does not exist\r\n$ docker ps\r\nCONTAINER ID   IMAGE     COMMAND   CREATED   STATUS    PORTS     NAMES\r\n<\/pre>\n<h2>\u304a\u308f\u308a\u306b<\/h2>\n<p>kind\u3092\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u65b9\u6cd5\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u305f\u3002kind\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3059\u308b\u3068\u7c21\u5358\u306b\u30af\u30e9\u30b9\u30bf\u3092\u4f5c\u6210\u3067\u304d\u308b\u306e\u3067\u3001\u30af\u30e9\u30b9\u30bf\u306e\u4f5c\u6210\u304b\u3089\u524a\u9664\u307e\u3067\u306e\u4e00\u9023\u306e\u4f5c\u696d\u3092\u884c\u3063\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<h2>\u53c2\u8003\u60c5\u5831<\/h2>\n<ul>\n<li><a href=\"https:\/\/kind.sigs.k8s.io\/\" target=\"_blank\" rel=\"noopener\">kind<\/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>\u691c\u8a3c\u74b0\u5883\u7528\u306bKubernates\u74b0\u5883\u3092\u7528\u610f\u3059\u308b\u306b\u306f\u3001kind\uff08Kubernates in Docker\uff09\u3092\u5229\u7528\u3059\u308b\u306e\u304c\u4fbf\u5229\u3067\u3059\u3002Locky Linux 9\u306b\u3001kind\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-7443","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\/7443","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=7443"}],"version-history":[{"count":0,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/7443\/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=7443"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/categories?post=7443"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/tags?post=7443"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}