Documentation/Buki/Kubernetes
⚔

Kubernetes

Kubernetes manifest validation and best practices

Installation

First, install the Han CLI tool:

npm install -g @thebushidocollective/han

Then install the plugin:

han plugin install buki-kubernetes

Overview

Kubernetes manifest validation and best practices for cloud-native deployments.

Features

  • Validates Kubernetes manifests using kubeconform
  • Provides skills for working with Kubernetes resources
  • Ensures manifest quality and security best practices

Requirements

Install kubeconform for manifest validation:

# macOS
brew install kubeconform

# Linux
wget https://github.com/yannh/kubeconform/releases/latest/download/kubeconform-linux-amd64.tar.gz
tar xf kubeconform-linux-amd64.tar.gz
sudo mv kubeconform /usr/local/bin/

Skills Included

  • kubernetes-manifests: Working with Kubernetes manifest files
  • kubernetes-resources: Understanding Kubernetes resources (Pods, Deployments, Services, etc.)
  • kubernetes-security: Security best practices for Kubernetes

Hook Behavior

Validates YAML manifests in directories containing .yaml or .yml files using kubeconform.

Skills

Hooks

🪝

Stop

Runs when the main Claude Code agent has finished responding.

npx -y @thebushidocollective/han hook run --fail-fast --dirs-with *.yaml,*.yml -- sh -c 'if command -v kubeconform >/dev/null 2>&1; then kubeconform -summary *.yaml *.yml 2>/dev/null || true; fi'
🪝

SubagentStop

Runs when a Claude Code subagent (Task tool call) has finished responding.

npx -y @thebushidocollective/han hook run --fail-fast --dirs-with *.yaml,*.yml -- sh -c 'if command -v kubeconform >/dev/null 2>&1; then kubeconform -summary *.yaml *.yml 2>/dev/null || true; fi'