# kubekey を Homebrew でインストール

kubekey のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:kubekey
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install kubekey
```

  証拠: local Homebrew formula metadata

## パッケージ情報

- **パッケージキー:** brew:kubekey
- **パッケージマネージャ:** Homebrew
- **バージョン:** 4.0.5
- **ソース概要:** Installer for Kubernetes and / or KubeSphere, and related cloud-native add-ons
- **ホームページ:** <https://kubesphere.io>
- **リポジトリ:** <https://github.com/kubesphere/kubekey>
- **最終更新:** 2026-07-27T21:58:45+02:00
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- kk (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 4.0.5
## プロジェクトの歴史と使われ方

KubeKey is the KubeSphere ecosystem's installer and task-execution CLI for Kubernetes, KubeSphere, and related cloud-native add-ons. It is packaged as the kk executable and is used for cluster creation, upgrades, scaling, offline artifacts, and later task-flow style automation.

### プロジェクトの歴史

The public GitHub repository was created on March 19, 2020. KubeSphere documentation from the KubeKey installation guide refers to KubeKey version 1.0.1, and the repository README describes KubeKey as an open source lightweight task-flow execution tool that provides a flexible way to install Kubernetes.

The README says the 3.x line expanded KubeKey from a Kubernetes lifecycle-management tool into a task-execution tool with template management and multiple connection methods. The 4.x release packaging also includes web-installer assets, schema files, task templates, and offline package tooling.

### 採用の歴史

KubeKey adoption is tied closely to KubeSphere installation and lifecycle management. It became the path for installing Kubernetes alone or installing Kubernetes and KubeSphere together, especially for users who wanted all-in-one, multi-node, highly available, or offline setups.

The project is less broadly packaged than kubectx or kubelogin, but its Homebrew formula is useful for operators who want the kk binary installed through the same package manager as kubectl and other cluster tools.

### 使われ方

A common workflow is to run kk create config to generate config-sample.yaml, edit host and cluster settings, and then run kk create cluster -f config-sample.yaml. The repository documentation also covers node add/delete operations, certificate renewal, offline artifact export, image registry setup, and dependency packages.

KubeKey's configuration file can include host connection details, Kubernetes version, networking, registry mirrors, and add-ons. That makes it closer to an installer plus declarative cluster recipe than a single-purpose kubectl plugin.

### パッケージ好きにとっての重要性

KubeKey is notable because it packages a full Kubernetes/KubeSphere installer as a single CLI binary. For package-manager users, kk sits in the same mental bucket as kubeadm wrappers and distribution installers: a bootstrap executable whose version controls a large amount of cluster state.

### タイムライン

- 2020-03-19: Public GitHub repository created
- 2021: KubeSphere installation documentation referenced KubeKey version 1.0.1
- 2023: 3.x README described expansion from lifecycle management to task execution
- 2026-06-05: v4.0.5 release published

### Related projects

- KubeSphere is the platform ecosystem for which KubeKey is an installer and lifecycle tool.
- kubeadm is listed among the repository topics and is part of the broader Kubernetes bootstrap context.
- Ansible is referenced by the README as an inspiration for KubeKey's task-flow design.

### ソース

- <https://api.github.com/repos/kubesphere/kubekey>
- <https://formulae.brew.sh/formula/kubekey>
- <https://github.com/kubesphere/kubekey>
- <https://github.com/kubesphere/kubekey/releases>
- <https://github.com/kubesphere/kubekey/tree/main/docs>
- <https://kubesphere.io/blogs/install-kubernetes-using-kubekey/>


## セキュリティノート

infrastructure mutation or orchestration signal.

- **Geiger リスク:** orange / 中
- infrastructure mutation or orchestration signal


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: config-sample.yaml

## Combined YAML source

View the package source record on GitHub. [combined/kubekey.yml](https://github.com/mxcl/pkgdb/blob/main/combined/kubekey.yml)


## ソース

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- cross-ecosystem install command graph
