{"id":18525671,"url":"https://github.com/a-know/itamae-recipes-k8s","last_synced_at":"2026-04-22T21:37:17.221Z","repository":{"id":146924440,"uuid":"105323510","full_name":"a-know/itamae-recipes-k8s","owner":"a-know","description":"itamae recipes for build kubernetes (k8s) cluster","archived":false,"fork":false,"pushed_at":"2017-10-01T13:07:51.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-21T03:17:43.958Z","etag":null,"topics":["itamae","k8s","kubernetes"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/a-know.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-09-29T22:52:23.000Z","updated_at":"2017-10-27T02:01:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"465ffea0-b785-4e16-a506-6c06fec62211","html_url":"https://github.com/a-know/itamae-recipes-k8s","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/a-know/itamae-recipes-k8s","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-know%2Fitamae-recipes-k8s","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-know%2Fitamae-recipes-k8s/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-know%2Fitamae-recipes-k8s/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-know%2Fitamae-recipes-k8s/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/a-know","download_url":"https://codeload.github.com/a-know/itamae-recipes-k8s/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-know%2Fitamae-recipes-k8s/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261819660,"owners_count":23214554,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["itamae","k8s","kubernetes"],"created_at":"2024-11-06T17:46:41.451Z","updated_at":"2026-04-22T21:37:12.175Z","avatar_url":"https://github.com/a-know.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# itamae-recipes-k8s\n## About this repository\n[CloudGarage の無償インスタンスを利用して kubernetes クラスタを構築してみる](http://blog.a-know.me/entry/2017/10/01/214621)(in japanese)\n\n## Usage\n### 0. Prepare\nThis repository use `itamae`.\n\n```console\n$ bundle install\n```\n\nAnd, edit `~/.ssh/config` on your PC to enable to access each instance easily.\n\n### 1. Create working user\n\n```console\n$ cp base/user_template.json base/my.json\n\u003cedit my.json\u003e\n$ bundle exec itamae ssh -h master01 -j base/my.json -u root base/user.rb\n$ bundle exec itamae ssh -h node01  -j base/my.json -u root base/user.rb\n$ bundle exec itamae ssh -h node02  -j base/my.json -u root base/user.rb\n```\n\n### 2. Edit `/etc/hosts`\n```console\n$ bundle exec itamae ssh -h master01  -j base/my_hosts.json -u root base/hosts.rb\n$ bundle exec itamae ssh -h node01  -j base/my_hosts.json -u root base/hosts.rb\n$ bundle exec itamae ssh -h node02  -j base/my_hosts.json -u root base/hosts.rb\n```\n\n### 3. Setup for master-node\n```console\n$ bundle exec itamae ssh -h master01 -j master/config.json master/etcd.rb\n$ bundle exec itamae ssh -h master01 master/flanneld.rb\n\u003cCreate secret key for serviceaccount.key, and save at files/ .\u003e\n$ bundle exec itamae ssh -h master01 -j master/config.json master/kubernetes.rb\n$ bundle exec itamae ssh -h master01 -j master/config.json master/kubectl_config.rb\n```\n\nTo create secret key, do `$ openssl genrsa -out /path/to/serviceaccount.key 2048` .\n\n### 4. Setup for container-running node\n\n```console\n$ bundle exec itamae ssh -h node01 -j node/node_config.json node/flanneld.rb\n$ bundle exec itamae ssh -h node02 -j node/node_config.json node/flanneld.rb\n$ bundle exec itamae ssh -h node01 -j node/node_config.json node/kubernetes.rb\n$ bundle exec itamae ssh -h node02 -j node/node_config.json node/kubernetes.rb\n```\n\n### 5. Check\n\n```console\n$ kubectl get nodes\nNAME      STATUS    AGE\nnode01    Ready     3m\nnode02    Ready     9s\n```\n\nThat's all!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa-know%2Fitamae-recipes-k8s","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fa-know%2Fitamae-recipes-k8s","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa-know%2Fitamae-recipes-k8s/lists"}