{"id":405,"date":"2022-07-28T13:58:05","date_gmt":"2022-07-28T04:58:05","guid":{"rendered":"https:\/\/symphonict.nesic.co.jp\/tech-blog\/?p=405"},"modified":"2022-07-28T14:24:51","modified_gmt":"2022-07-28T05:24:51","slug":"eks-connector-%e3%81%a7%e3%81%8a%e3%81%86%e3%81%a1-kubernetes-%e7%92%b0%e5%a2%83%e3%82%92%e6%8e%a5%e7%b6%9a%e3%81%97%e3%81%a6%e3%81%bf%e3%82%8b","status":"publish","type":"post","link":"https:\/\/symphonict.nesic.co.jp\/tech-blog\/405\/","title":{"rendered":"EKS Connector \u3067\u304a\u3046\u3061 Kubernetes \u74b0\u5883\u3092\u63a5\u7d9a\u3057\u3066\u307f\u308b"},"content":{"rendered":"\n<p>\u3053\u3093\u306b\u3061\u306f\u3002<span style=\"border-bottom: solid 3px #4169e1;\">\u904b\u7528\u958b\u767a\u30b0\u30eb\u30fc\u30d7\u306e\u677e\u7530<\/span>\u3067\u3059\u3002<br>\u666e\u6bb5\u306f\u30a4\u30f3\u30d5\u30e9\u30a8\u30f3\u30b8\u30cb\u30a2\u3068\u3057\u3066 Symphonict \u30b5\u30fc\u30d3\u30b9\u306e\u30a4\u30f3\u30d5\u30e9\u8a2d\u8a08\u3084\u904b\u7528\u958b\u767a\u3092\u884c\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4eca\u56de\u306f Amazon EKS \u3067\u63d0\u4f9b\u3055\u308c\u3066\u3044\u308b\u6a5f\u80fd\u3067\u3042\u308b <strong>EKS Connector&nbsp;<\/strong>\u3092\u5229\u7528\u3057\u3066\u3001\u304a\u3046\u3061 Kubernetes \u74b0\u5883\u3092 EKS \u306b\u63a5\u7d9a\u3057\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">EKS Connector \u3068\u306f<\/h2>\n\n\n\n<p>EKS Connector \u306f 2021 \u5e74 11 \u6708\u306b\u4e00\u822c\u516c\u958b\u3068\u306a\u3063\u305f EKS \u306e\u6a5f\u80fd\u3067\u3001EKS \u4ee5\u5916\u306e Kubernetes \u30af\u30e9\u30b9\u30bf\u306e\u60c5\u5831\u3092 AWS \u30b3\u30f3\u30bd\u30fc\u30eb\u304b\u3089\u78ba\u8a8d\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u308c\u306b\u3088\u308a\u3001AWS \u5916\u306e Kubernetes \u30b5\u30fc\u30d3\u30b9 (Google Cloud GKE, Microsoft Azure AKS \u7b49) \u306e\u30b9\u30c6\u30fc\u30bf\u30b9\u3084\u30ef\u30fc\u30af\u30ed\u30fc\u30c9\u3092\u7d71\u5408\u7684\u306b\u7ba1\u7406\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u5b9f\u969b\u306b\u63a5\u7d9a\u3057\u3066\u307f\u308b<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u691c\u8a3c\u74b0\u5883<\/h3>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"681\" height=\"201\" src=\"https:\/\/symphonict.nesic.co.jp\/tech-blog\/wp-content\/uploads\/2022\/07\/eks_connector_arch.drawio.png\" alt=\"\" class=\"wp-image-408\" srcset=\"https:\/\/symphonict.nesic.co.jp\/tech-blog\/wp-content\/uploads\/2022\/07\/eks_connector_arch.drawio.png 681w, https:\/\/symphonict.nesic.co.jp\/tech-blog\/wp-content\/uploads\/2022\/07\/eks_connector_arch.drawio-300x89.png 300w\" sizes=\"(max-width: 681px) 100vw, 681px\" \/><\/figure><\/div>\n\n\n<p>\u4eca\u56de\u306f\u81ea\u5b85\u306e\u958b\u767a PC \u306b minikube \u3067\u30aa\u30fc\u30eb\u30a4\u30f3\u30ef\u30f3\u30af\u30e9\u30b9\u30bf\u3092\u4f5c\u6210\u3057\u3001AWS \u4e0a\u306e EKS \u306b\u63a5\u7d9a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u63a5\u7d9a\u624b\u9806<\/h3>\n\n\n\n<h5 class=\"wp-block-heading\">1. \u4ee5\u4e0b\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u5f93\u3044\u5fc5\u8981\u306a IAM \u30ed\u30fc\u30eb\u3092\u4f5c\u6210 (\u624b\u9806\u306f\u7701\u7565)<\/h5>\n\n\n\n<p><a href=\"https:\/\/docs.aws.amazon.com\/eks\/latest\/userguide\/connector_IAM_role.html\">https:\/\/docs.aws.amazon.com\/eks\/latest\/userguide\/connector_IAM_role.html<\/a><\/p>\n\n\n\n<h5 class=\"wp-block-heading\">2. EKS \u30af\u30e9\u30b9\u30bf\u3092\u4f5c\u6210<\/h5>\n\n\n\n<p>eksctl \u30b3\u30de\u30f3\u30c9\u3092\u5229\u7528\u3057\u3066 EKS \u30af\u30e9\u30b9\u30bf\u3092\u4f5c\u6210\u3057\u307e\u3059<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ eksctl create cluster --name test-cluster --region ap-northeast1<\/code><\/pre>\n\n\n\n<h5 class=\"wp-block-heading\">3. minikube \u30af\u30e9\u30b9\u30bf\u3092 EKS \u306b\u767b\u9332<\/h5>\n\n\n\n<p>eksctl \u30b3\u30de\u30f3\u30c9\u3092\u5229\u7528\u3057\u3066 EKS \u306b\u5bfe\u3057\u3066\u304a\u3046\u3061 Kubernetes \u3092\u767b\u9332\u3057\u307e\u3059<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ eksctl register cluster --name minikube-cluster --provider other\n2022-07-06 06:57:34 &#91;\u2139]  creating IAM role \"eksctl-20220706065734503544\"\n2022-07-06 06:57:51 &#91;\u2139]  registered cluster \"minikube-cluster\" successfully\n2022-07-06 06:57:51 &#91;\u2139]  wrote file eks-connector.yaml to \/root\n2022-07-06 06:57:51 &#91;\u2139]  wrote file eks-connector-clusterrole.yaml to \/root\n2022-07-06 06:57:51 &#91;\u2139]  wrote file eks-connector-console-dashboard-full-access-group.yaml to \/root\n2022-07-06 06:57:51 &#91;!]  note: \"eks-connector-clusterrole.yaml\" and \"eks-connector-console-dashboard-full-access-group.yaml\" give full EKS Console access to IAM identity \"arn:aws:iam::123456789012:user\/XXXXXXXX\", edit if required; read https:\/\/docs.aws.amazon.com\/eks\/latest\/userguide\/connector-grant-access.html for more info\n2022-07-06 06:57:51 &#91;\u2139]  run `kubectl apply -f eks-connector.yaml,eks-connector-clusterrole.yaml,eks-connector-console-dashboard-full-access-group.yaml` before 09 Jul 22 06:57 UTC to connect the cluster<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"184\" src=\"https:\/\/symphonict.nesic.co.jp\/tech-blog\/wp-content\/uploads\/2022\/07\/blog_eks_01-1024x184.png\" alt=\"\" class=\"wp-image-411\" srcset=\"https:\/\/symphonict.nesic.co.jp\/tech-blog\/wp-content\/uploads\/2022\/07\/blog_eks_01-1024x184.png 1024w, https:\/\/symphonict.nesic.co.jp\/tech-blog\/wp-content\/uploads\/2022\/07\/blog_eks_01-300x54.png 300w, https:\/\/symphonict.nesic.co.jp\/tech-blog\/wp-content\/uploads\/2022\/07\/blog_eks_01-768x138.png 768w, https:\/\/symphonict.nesic.co.jp\/tech-blog\/wp-content\/uploads\/2022\/07\/blog_eks_01-1536x277.png 1536w, https:\/\/symphonict.nesic.co.jp\/tech-blog\/wp-content\/uploads\/2022\/07\/blog_eks_01-2048x369.png 2048w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u3053\u306e\u6642\u70b9\u3067\u306f minikube \u30af\u30e9\u30b9\u30bf\u306f &#8220;\u4fdd\u7559\u4e2d&#8221; \u3068\u306a\u3063\u3066\u3044\u308b<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">4. minikube \u5074\u306b\u8a2d\u5b9a\u3092\u6295\u5165<\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code># curl -o eks-connector-clusterrole.yaml https:\/\/amazon-eks.s3.us-west-2.amazonaws.com\/eks-connector\/manifests\/eks-connector-console-roles\/eks-connector-clusterrole.yaml\n\n# kubectl apply -f eks-connector.yaml,eks-connector-clusterrole.yaml,eks-connector-console-dashboard-full-access-clusterrole-binding.yaml<\/code><\/pre>\n\n\n\n<h5 class=\"wp-block-heading\">5. EKS \u30b3\u30f3\u30bd\u30fc\u30eb\u304b\u3089\u72b6\u614b\u78ba\u8a8d<\/h5>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"234\" src=\"https:\/\/symphonict.nesic.co.jp\/tech-blog\/wp-content\/uploads\/2022\/07\/blog_eks_02-1024x234.png\" alt=\"\" class=\"wp-image-413\" srcset=\"https:\/\/symphonict.nesic.co.jp\/tech-blog\/wp-content\/uploads\/2022\/07\/blog_eks_02-1024x234.png 1024w, https:\/\/symphonict.nesic.co.jp\/tech-blog\/wp-content\/uploads\/2022\/07\/blog_eks_02-300x68.png 300w, https:\/\/symphonict.nesic.co.jp\/tech-blog\/wp-content\/uploads\/2022\/07\/blog_eks_02-768x175.png 768w, https:\/\/symphonict.nesic.co.jp\/tech-blog\/wp-content\/uploads\/2022\/07\/blog_eks_02-1536x350.png 1536w, https:\/\/symphonict.nesic.co.jp\/tech-blog\/wp-content\/uploads\/2022\/07\/blog_eks_02-2048x467.png 2048w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>EKS \u30b3\u30f3\u30bd\u30fc\u30eb\u304b\u3089 minikube \u30af\u30e9\u30b9\u30bf\u304c\u767b\u9332\u3055\u308c\u305f\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3057\u305f\uff01<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">\u307e\u3068\u3081<\/h1>\n\n\n\n<p>\u4eca\u56de\u306f EKS Connector \u3092\u5229\u7528\u3057\u3066\u304a\u3046\u3061 Kubernetes \u74b0\u5883\u3092 EKS \u306b\u63a5\u7d9a\u3057\u3066\u307f\u307e\u3057\u305f\u3002<br>\u4eca\u5f8c\u30cf\u30a4\u30d6\u30ea\u30c3\u30c8\u30af\u30e9\u30a6\u30c9\u3084\u30de\u30eb\u30c1\u30af\u30e9\u30a6\u30c9\u304c\u5897\u3048\u3066\u3044\u304f\u4e2d\u3067\u3001EKS \u4e0a\u3067\u96c6\u4e2d\u7ba1\u7406\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3068\u904b\u7528\u304c\u697d\u306b\u306a\u308b\u3068\u601d\u3046\u306e\u3067\u7686\u3055\u3093\u3082\u304a\u8a66\u3057\u304f\u3060\u3055\u3044\u3002<br><\/p>\n\n\n\n<h1 class=\"wp-block-heading\">\u53c2\u8003\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/h1>\n\n\n\n<p><a href=\"https:\/\/docs.aws.amazon.com\/eks\/latest\/userguide\/eks-connector.html\">https:\/\/docs.aws.amazon.com\/eks\/latest\/userguide\/eks-connector.html<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\u3053\u3093\u306b\u3061\u306f\u3002\u904b\u7528\u958b\u767a\u30b0\u30eb\u30fc\u30d7\u306e\u677e\u7530\u3067\u3059\u3002\u666e\u6bb5\u306f\u30a4\u30f3\u30d5\u30e9\u30a8\u30f3\u30b8\u30cb\u30a2\u3068\u3057\u3066 Symphonict \u30b5\u30fc\u30d3\u30b9\u306e\u30a4\u30f3\u30d5\u30e9\u8a2d\u8a08\u3084\u904b\u7528\u958b\u767a\u3092\u884c\u3063\u3066\u3044\u307e\u3059\u3002 \u4eca\u56de\u306f Amazon EKS \u3067\u63d0\u4f9b\u3055\u308c\u3066\u3044\u308b\u6a5f\u80fd\u3067\u3042\u308b EKS Conne [&hellip;]","protected":false},"author":17,"featured_media":93,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"footnotes":""},"categories":[1],"tags":[19,21],"class_list":["post-405","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-categry-cloud","tag-aws","tag-kubernetes"],"_links":{"self":[{"href":"https:\/\/symphonict.nesic.co.jp\/tech-blog\/wp-json\/wp\/v2\/posts\/405"}],"collection":[{"href":"https:\/\/symphonict.nesic.co.jp\/tech-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/symphonict.nesic.co.jp\/tech-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/symphonict.nesic.co.jp\/tech-blog\/wp-json\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/symphonict.nesic.co.jp\/tech-blog\/wp-json\/wp\/v2\/comments?post=405"}],"version-history":[{"count":14,"href":"https:\/\/symphonict.nesic.co.jp\/tech-blog\/wp-json\/wp\/v2\/posts\/405\/revisions"}],"predecessor-version":[{"id":631,"href":"https:\/\/symphonict.nesic.co.jp\/tech-blog\/wp-json\/wp\/v2\/posts\/405\/revisions\/631"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/symphonict.nesic.co.jp\/tech-blog\/wp-json\/wp\/v2\/media\/93"}],"wp:attachment":[{"href":"https:\/\/symphonict.nesic.co.jp\/tech-blog\/wp-json\/wp\/v2\/media?parent=405"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/symphonict.nesic.co.jp\/tech-blog\/wp-json\/wp\/v2\/categories?post=405"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/symphonict.nesic.co.jp\/tech-blog\/wp-json\/wp\/v2\/tags?post=405"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}