本文へ移動
cccskills
無料GitHub で公開日本語紹介

kubectl

Kubernetesクラスターのリソース確認や設定変更、デプロイの更新、Podの調査、ノード管理まで、kubectlのコマンドと出力形式を目的に合わせて案内するスキルです。

原文原文の説明を見る

Use when working with the kubectl CLI — Kubernetes command-line tool for managing cluster resources. Covers the command structure, resource types and API groups, kubeconfig and contexts, declarative apply, workload management (deployments, rollout, scale, autoscale, expose), debugging (logs, exec, port-forward, debug, top), cluster management (cordon, drain, taint), output formats (jsonpath, go-template, custom-columns), patches, labels, annotations, kustomize, and the plugin system. Triggers on: "kubectl", "kubectl get", "kubectl apply", "kubectl create", "kubectl delete", "kubectl describe", "kubectl logs", "kubectl exec", "kubectl config", "kubectl rollout", "kubectl scale", "kubectl expose", "kubectl port-forward", "kubectl top", "kubectl drain", "kubectl cordon", "kubectl taint", "kubectl patch", "kubectl label", "kubectl annotate", "kubectl kustomize", "kubectl wait", "kubectl debug", "kubectl explain", "kubeconfig", "kubectl context", "kubectl plugin".

carapace-sh/carapace-binスター 2,002(GitHub 2,002 + cccskills 0)
連携ツールKubernetes

実行スコア 未検証

インストール方法を見る

こんなときに便利

  • クラスター内のリソースを確認したいとき
  • 設定を反映してDeploymentを更新したいとき
  • Podのログや状態を調べたいとき
  • ノードを保守のために退避させたいとき

日本語での紹介

できること

Kubernetesクラスターを操作するコマンドラインツール kubectl の使い方を、目的に応じて調べられます。リソースの種類やAPIグループ、kubeconfig とコンテキストの設定、apply による設定反映、Deploymentなどのワークロード管理を扱います。ロールアウトの確認や取り消し、スケール変更、Serviceの公開、ログ確認、コンテナ内でのコマンド実行、ポート転送といった操作も対象です。さらに、ノードのメンテナンス、ラベルやアノテーション、パッチ、jsonpath や go-template による出力整形、kustomize の利用、プラグインの扱いも調べられます。

こんなときに便利

クラスターの状態を確認したいときや、設定を反映してアプリケーションを更新したいときに役立ちます。Podの不具合をログや詳細情報から調べる場面、接続先のコンテキストを切り替える場面、ノードを保守のために停止対象にする場面にも向いています。コマンドの選び方やオプション、出力形式を確認したい人にも使えます。

使い方の例

  • 「このDeploymentのロールアウト状況を確認するコマンドを教えて」
  • 「Podのログを見て、コンテナに接続する方法を調べて」
  • 「ノードをメンテナンスするための drain 手順を確認して」

注意点

特記事項はありません。

この紹介文は、公開されている SKILL.md をもとに AI(OpenAI Codex)が作成しました。正確な仕様は下の原文を確認してください。

含まれるファイル(11)

  • SKILL.md7.3 KB
  • references/apply.md14.4 KB
  • references/cli.md10.8 KB
  • references/cluster.md12.2 KB
  • references/concepts.md12.7 KB
  • references/config.md10.1 KB
  • references/debugging.md16.1 KB
  • references/output.md12.7 KB
  • references/plugins.md9.0 KB
  • references/resources.md12.8 KB
  • references/workloads.md13.1 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

kubectl — Kubernetes Command-Line Tool In-Depth Reference

Comprehensive reference for kubectl, the CLI for communicating with the Kubernetes control plane. Covers command structure, resource types, kubeconfig, declarative management, workload operations, debugging, cluster administration, and output formatting.

Data Flow

kubectl command
  → parse global flags (--context, --namespace, --kubeconfig, --server)
    → resolve kubeconfig (KUBECONFIG env, ~/.kube/config, in-cluster)
      → authenticate (client cert, token, in-cluster service account)
        → REST request to API server
          → response marshalling (table, json, yaml, jsonpath, go-template)

Sub-Resources

Load the reference that matches your task. When in doubt, load multiple references.

KeywordsReference
concept, model, control plane, API server, pod, container, deployment, replicaSet, service, namespace, node, kubeconfig, context, cluster, declarative, imperative, reconciliation, controller, reconciliation loop, label, annotation, selector, service account, RBAC, workloads, control plane vs data planereferences/concepts.md
resource type, API group, core/v1, apps/v1, batch/v1, networking.k8s.io, rbac, short name, abbreviation, namespaced, cluster-scoped, resource specification, TYPE/NAME, TYPE NAME, api-resources, api-versions, field selector, label selector, resource version, kind, crd, custom resourcereferences/resources.md
cli, command, subcommand, command groups, basic commands, intermediate commands, deploy commands, cluster management, troubleshooting, advanced commands, settings commands, global flags, --context, --namespace, --kubeconfig, --server, --as, --as-group, --token, --certificate-authority, verbosity, -v, completion, options, versionreferences/cli.md
config, kubeconfig, context, cluster, user, current-context, config view, config use-context, config set-context, config set-cluster, config set-credentials, config get-contexts, config get-clusters, KUBECONFIG, kubeconfig file, merge kubeconfig, named context, default namespace, namespace overridereferences/config.md
output format, json, yaml, kyaml, name, wide, go-template, go-template-file, jsonpath, jsonpath-as-json, jsonpath-file, custom-columns, custom-columns-file, sort-by, field-selector, template, --output, -o, jsonpath syntax, go template syntax, custom columns syntax, table output, server-printreferences/output.md
apply, declarative, server-side apply, client-side apply, last-applied-configuration, prune, dry-run, validate, field-manager, managed fields, conflict, force-conflicts, diff, replace, create, delete, cascade, graceful deletion, save-config, kustomize, kustomization, edit, patch, strategic merge patch, json patch, merge patch, patch typereferences/apply.md
workload, deployment, statefulset, daemonset, replicaset, replicationcontroller, rollout, rollout history, rollout undo, rollout pause, rollout resume, rollout restart, rollout status, scale, autoscale, expose, service, run, set, set image, set env, set resources, set selector, set serviceaccount, set subject, job, cronjob, rolling update, canaryreferences/workloads.md
debugging, logs, exec, attach, cp, port-forward, proxy, top, top node, top pod, describe, events, debug, ephemeral container, wait, condition, troubleshoot, metricsreferences/debugging.md
cluster management, node, cordon, uncordon, drain, taint, cluster-info, cluster-info dump, certificate, certificate approve, certificate deny, CSR, top node, top pod, metrics-server, auth, auth can-i, auth reconcile, auth whoami, RBAC, role, clusterrole, rolebinding, clusterrolebindingreferences/cluster.md
plugin, krew, kubectl plugin list, kubectl- prefix, plugin discovery, kubectl plugin, plugin manager, kubectl convert, kubectl alpha, custom plugin, shell plugin, plugin pathreferences/plugins.md

Quick Guide

Cross-Project References

  • For carapace completion integration for kubectl (the completers/common/kubectl_completer/ synthetic cobra tree, shared actions in pkg/actions/tools/kubectl/, macros like tools.kubectl.Resources), see the carapace skill → references/action.md.
  • For Kustomize as a standalone tool (advanced template-free customization, components, generators, transformers), see the upstream Kustomize docs. This skill covers kubectl kustomize integration only.
  • For Helm (package management for Kubernetes), use the Helm documentation — kubectl does not manage Helm releases directly, though kubectl kustomize --enable-helm can inflate Helm charts.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

コメント

ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。

まだコメントはありません。最初のコメントを書いてみませんか。

送信するとすぐに公開されます。メールアドレスや電話番号などの個人情報は書かないでください。URL は 2 つまでです。

0 / 1000 文字

このフォームは reCAPTCHA で保護されており、Google のプライバシーポリシーと利用規約が適用されます。

同じリポジトリのスキル

brew

無料概要あり

macOSやLinuxのHomebrewについて、brewコマンドでの導入・更新から、FormulaやCask、Brewfile、サービス管理、開発者向け操作まで調べられるスキルです。

  • Homebrewでソフトを導入・更新したいとき
  • Brewfileで環境を管理したいとき
  • FormulaやCaskを作成・更新したいとき
carapace-sh/carapace-bin2,0022026年10月27日 更新

bubbletea

無料概要あり

Go製TUIフレームワークBubble Teaの画面構成、入力・非同期処理、テスト、部品の組み合わせ方を調べ、端末アプリの実装や設計に活用できます。

  • Bubble Teaで端末画面を作りたいとき
  • キーやマウス入力を処理したいとき
  • 非同期処理を画面に組み込みたいとき
carapace-sh/carapace-bin2,0022026年10月27日 更新

bun

無料概要あり

BunのCLI、パッケージ管理、テスト、バンドル、実行時APIやシェルの使い方を調べ、JavaScript・TypeScriptの開発作業に活用できます。

  • Bunで依存パッケージを管理したいとき
  • テストやコードのバンドルを実行したいとき
  • Bunでサーバーやファイル処理を実装したいとき
carapace-sh/carapace-bin2,0022026年10月27日 更新

but

無料概要あり

GitButler CLIで仮想ブランチや積み重ねたブランチを管理し、変更の割り当て、コミット編集、競合解決、PR作成までのGit作業を進められます。

  • 作業を仮想ブランチに分けたいとき
  • コミットを修正・統合したいとき
  • 操作履歴を見て変更を取り消したいとき
carapace-sh/carapace-bin2,0022026年10月27日 更新

carapace

無料概要あり

carapaceをCLIに組み込み、シェル補完のYAML仕様や独自アクションを作成し、シェル設定やMCP連携、補完値の説明まで扱うスキルです。

  • CLIにシェル補完を追加したいとき
  • YAMLの補完仕様を作成したいとき
  • 独自の補完アクションを実装したいとき
carapace-sh/carapace-bin2,0022026年10月27日 更新

cargo

無料概要あり

Rustプロジェクトのビルドやテストから、依存関係、ワークスペース、公開設定まで、`cargo`の使い方と設定を調べられるスキルです。

  • Rustプロジェクトの依存関係を設定したいとき
  • featureやworkspaceの仕組みを確認したいとき
  • ビルドやテストのコマンドを調べたいとき
carapace-sh/carapace-bin2,0022026年10月27日 更新

carapace-sh のスキルをすべて見る

このスキルの問題を報告する