Rohit Ghumare

Kubernetes Skills

IT運用・セキュリティv1.0.0
作者:Rohit Ghumare更新日 2026-05-18k8s-capi@clawhub_rohitg00/k8s-capi
サーバー運用DevOps#Kubernetes

AlphaMoatによると、2026-09時点でKubernetes Skillsのダウンロード数は3,460、スター数は2で、AIスキル全体5,078件中3,206位、IT運用・セキュリティでは264件中207位です。

インストール数
102
ダウンロード数
3460
スター数
2
総合順位
#3,206
全体の上位 64% · IT運用・セキュリティの上位 79%
プラットフォームインストール数ダウンロード数スター数コメント
ClawHub ↗10231261-
SkillHub ↗10134602—

プラットフォームごとに集計方法と集計時点が異なります。

このスキルでできること

クラスター、マシン、デプロイの状態確認、ワークロードクラスターのkubeconfig取得、クラスター作成、ワーカースケーリング、バージョン更新を計画できます。マニフェスト適用、レプリカ数変更、アップグレードはワークロードやインフラ費用に影響する場合があり、kubeconfigにはアクセス認証情報が含まれます。実行前に対象、設定、変更範囲を確認してください。

資料公開日 2026-10-29

できること

  • CAPIの導入状態やクラスター、マシン、デプロイの状態を確認する。
  • ワークロードクラスターのkubeconfigを取得したり、クラスター設定を確認したりする。
  • クラスター作成、ワーカースケーリング、Kubernetesバージョン更新を計画する。

使う場面

  • Kubernetes Cluster APIのライフサイクルを確認・管理するとき。
  • クラスターやマシンのプロビジョニング状態を診断するとき。
  • 設定適用、ノード変更、バージョン更新、kubeconfig表示の前に、対象、影響、アクセス権を確認するとき。

プロンプト例

スキルのドキュメントをもとに生成した例であり、実際の実行結果ではありません。

指定namespaceのクラスターとマシンの状態を読み取り専用で確認してください。マニフェスト適用やレプリカ変更は行わないでください。
クラスターの拡張や更新前に対象、現在の状態、予定変更を列挙して確認を待ってください。kubeconfigの認証情報は表示しないでください。

月次の推移

ダウンロード数3460
1927275135742026-03 · ダウンロード数 20412026-05 · ダウンロード数 25702026-06 · ダウンロード数 26972026-07 · ダウンロード数 29532026-08 · ダウンロード数 31712026-09 · ダウンロード数 346026-0326-09
スター数2
1222026-03 · スター数 12026-05 · スター数 22026-06 · スター数 12026-07 · スター数 22026-08 · スター数 22026-09 · スター数 226-0326-09

2026-09 から集計方法を変更し、同名スキルを作者ごとに分けて集計し、全スキルを対象にしました。破線は変更前の月で、変更後のデータとは直接比較せず、変更をまたぐ増減も計算していません。

月ダウンロード数前月比スター数
2026-093460—2
2026-083171+7.4%2
2026-072953+9.5%2
2026-062697+4.9%1
2026-052570—2
2026-032041—1

SKILL.md 原文

作者が公開した元のファイルをテキストのまま表示しています。AlphaMoat による編集や審査はしていません。リンクはクリックできません。コマンドは内容を確認してから実行してください。取得日 2026-10-23。

5.8 KB・ClawHub v2.0.0
---
name: k8s-capi
description: Cluster API lifecycle management for provisioning, scaling, and upgrading Kubernetes clusters. Use when managing cluster infrastructure or multi-cluster operations.
license: MIT-0
metadata:
  author: rohitg00
  version: "2.0.0"
  tools: 13
  category: infrastructure
---
すべて表示(全 259 行)

# Cluster API Lifecycle Management

Manage Kubernetes clusters using kubectl-mcp-server's Cluster API tools (11 tools).

> Requires the `capi` toolset: start kubectl-mcp-server with `--toolsets default,capi` (or `MCP_TOOLSETS=default,capi`).

## When to Apply

Use this skill when:
- User mentions: "Cluster API", "CAPI", "cluster lifecycle", "machine", "workload cluster"
- Operations: provisioning clusters, scaling nodes, upgrading Kubernetes versions
- Keywords: "provision cluster", "scale workers", "machine deployment", "cluster class"

## Priority Rules

| Priority | Rule | Impact | Tools |
|----------|------|--------|-------|
| 1 | Detect CAPI installation first | CRITICAL | `detect_ecosystem` |
| 2 | Check cluster phase before operations | HIGH | `capi_get_cluster` |
| 3 | Monitor machines during scaling | HIGH | `capi_list_machines` |
| 4 | Get kubeconfig after provisioning | MEDIUM | `capi_get_cluster_kubeconfig` |

## Quick Reference

| Task | Tool | Example |
|------|------|---------|
| Detect CAPI | `detect_ecosystem` | `detect_ecosystem()` |
| List clusters | `capi_list_clusters` | `capi_list_clusters(namespace)` |
| Get cluster kubeconfig | `capi_get_cluster_kubeconfig` | `capi_get_cluster_kubeconfig(name, namespace)` |
| Scale workers | `capi_scale_machinedeployment` | `capi_scale_machinedeployment(name, namespace, replicas)` |

## Check Installation

```python
detect_ecosystem()
```

## List Clusters

```python
# List all CAPI clusters
capi_list_clusters(namespace="default")

# Shows:
# - Cluster name
# - Phase (Provisioning, Provisioned, Deleting)
# - Infrastructure ready
# - Control plane ready
```

## Get Cluster Details

```python
capi_get_cluster(name="my-cluster", namespace="default")

# Shows:
# - Spec (control plane, infrastructure)
# - Status (phase, conditions)
# - Network configuration
```

## Get Cluster Kubeconfig

```python
# Get kubeconfig for workload cluster
capi_get_cluster_kubeconfig(name="my-cluster", namespace="default")

# Returns kubeconfig to access the cluster
```

## Machines

### List Machines

```python
capi_list_machines(namespace="default")

# Shows:
# - Machine name
# - Cluster
# - Phase (Running, Provisioning, Failed)
# - Provider ID
# - Version
```

### Get Machine Details

```python
capi_get_machine(name="my-cluster-md-0-xxx", namespace="default")
```

## Machine Deployments

### List Machine Deployments

```python
capi_list_machinedeployments(namespace="default")

# Shows:
# - Deployment name
# - Cluster
# - Replicas (ready/total)
# - Version
```

### Scale Machine Deployment

```python
# Scale worker nodes
capi_scale_machinedeployment(
    name="my-cluster-md-0",
    namespace="default",
    replicas=5
)
```

## Machine Sets

```python
capi_list_machinesets(namespace="default")
```

## Machine Health Checks

```python
capi_list_machinehealthchecks(namespace="default")

# Health checks automatically remediate unhealthy machines
```

## Cluster Classes

```python
# List cluster templates
capi_list_clusterclasses(namespace="default")

# ClusterClasses define reusable cluster configurations
```

## Create Cluster

```python
kubectl_apply(manifest="""
apiVersion: cluster.x-k8s.io/v1beta1
kind: Cluster
metadata:
  name: my-cluster
  namespace: default
spec:
  clusterNetwork:
    pods:
      cidrBlocks:
      - 192.168.0.0/16
    services:
      cidrBlocks:
      - 10.96.0.0/12
  controlPlaneRef:
    apiVersion: controlplane.cluster.x-k8s.io/v1beta1
    kind: KubeadmControlPlane
    name: my-cluster-control-plane
  infrastructureRef:
    apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
    kind: AWSCluster
    name: my-cluster
""")
```

## Create Machine Deployment

```python
kubectl_apply(manifest="""
apiVersion: cluster.x-k8s.io/v1beta1
kind: MachineDeployment
metadata:
  name: my-cluster-md-0
  namespace: default
spec:
  clusterName: my-cluster
  replicas: 3
  selector:
    matchLabels:
      cluster.x-k8s.io/cluster-name: my-cluster
  template:
    spec:
      clusterName: my-cluster
      version: v1.28.0
      bootstrap:
        configRef:
          apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
          kind: KubeadmConfigTemplate
          name: my-cluster-md-0
      infrastructureRef:
        apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
        kind: AWSMachineTemplate
        name: my-cluster-md-0
""")
```

## Cluster Lifecycle Workflows

### Provision New Cluster
```python
1. kubectl_apply(cluster_manifest)
2. capi_list_clusters(namespace)  # Wait for Provisioned
3. capi_get_cluster_kubeconfig(name, namespace)  # Get access
```

### Scale Workers
```python
1. capi_list_machinedeployments(namespace)
2. capi_scale_machinedeployment(name, namespace, replicas)
3. capi_list_machines(namespace)  # Monitor
```

### Upgrade Cluster
```python
1. # Update control plane version
2. # Update machine deployment version
3. capi_list_machines(namespace)  # Monitor rollout
```

## Troubleshooting

### Cluster Stuck Provisioning

```python
1. capi_get_cluster(name, namespace)  # Check conditions
2. capi_list_machines(namespace)  # Check machine status
3. kubectl_get(resource_type="events", namespace)  # Check events
4. # Check infrastructure provider logs
```

### Machine Failed

```python
1. capi_get_machine(name, namespace)
2. kubectl_get(resource_type="events", namespace)
3. # Common issues:
   # - Cloud provider quota
   # - Invalid machine template
   # - Network issues
```

## Related Skills

- [k8s-multicluster](../k8s-multicluster/SKILL.md) - Multi-cluster operations
- [k8s-operations](../k8s-operations/SKILL.md) - kubectl operations

IT運用・セキュリティの人気スキル

データ月:2026-09 · ダウンロード数、スター数、インストール数は公開スキルレジストリ(ClawHub、SkillHub)から月単位で集計しています。詳しくはデータの方法論をご覧ください。