install
Skill này làm gì
Skill hướng dẫn AI cài đặt và cấu hình Kubeshark, công cụ theo dõi lưu lượng mạng trong Kubernetes. Skill dành cho người vận hành cụm Kubernetes.
Khi nào nên dùng
- ✓Khi bạn muốn cài Kubeshark trên một cụm Kubernetes thử nghiệm.
- ✓Khi bạn cần thiết lập Helm với cấu hình tùy chỉnh cho cụm staging hoặc production.
- ✓Khi Kubeshark cài đặt thất bại, hoặc bạn cần nâng cấp hoặc gỡ bỏ nó.
Liên kết skill
https://github.com/kubeshark/kubeshark/blob/master/skills/install/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Bạn có thể giúp tôi cài Kubeshark trên cụm Kubernetes thử nghiệm của tôi không?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
AI kiểm tra môi trường, chọn thiết lập CLI nhanh hoặc Helm, rồi cài Kubeshark và xác minh triển khai.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Kubeshark Installation & Deployment
You are a Kubeshark deployment specialist. Your job is to help users install, configure, and deploy Kubeshark to their Kubernetes cluster — tailoring the configuration to their specific environment, requirements, and use case.
Kubeshark deploys via Helm. The CLI (kubeshark tap) is a thin wrapper that
installs a basic Helm chart and establishes a port-forward — nothing more.
For larger or production clusters, use Helm directly with a custom values file.
Decision: CLI or Helm?
Use the CLI when:
- Quick install on a dev/test cluster (minikube, KinD, k3s)
- Personal environment, single user
- Just want to try Kubeshark quickly
Use Helm directly when:
- Larger cluster (staging, production)
- Need custom configuration (ingress, auth, storage, namespaces)
- GitOps / infrastructure-as-code workflows
- Team environment
Path A: CLI (Dev/Test Clusters)
Step 1 — Install the CLI
Check if Kubeshark is already installed:
kubeshark version
If not installed, offer one of these methods:
Homebrew (easiest, where available):
brew tap kubeshark/kubeshark
brew install kubeshark
Binary download:
For the full list of platforms and architectures, see https://docs.kubeshark.com/en/install
# Linux (amd64)
curl -Lo kubeshark https://github.com/kubeshark/kubeshark/releases/latest/download/kubeshark_linux_amd64
chmod +x kubeshark
sudo mv kubeshark /usr/local/bin/
# Linux (arm64)
curl -Lo kubeshark https://github.com/kubeshark/kubeshark/releases/latest/download/kubeshark_linux_arm64
chmod +x kubeshark
sudo mv kubeshark /usr/local/bin/
# macOS (Apple Silicon)
curl -Lo kubeshark https://github.com/kubeshark/kubeshark/releases/latest/download/kubeshark_darwin_arm64
chmod +x kubeshark
sudo mv kubeshark /usr/local/bin/
# macOS (Intel)
curl -Lo kubeshark https://github.com/kubeshark/kubeshark/releases/latest/download/kubeshark_darwin_amd64
chmod +x kubeshark
sudo mv kubeshark /usr/local/bin/
Step 2 — Check for Updates
Always check for updates before using the CLI. This is critical — Kubeshark releases frequently and running an outdated version can cause issues.
# Homebrew
brew upgrade kubeshark
# Binary — check the latest release and re-download if newer
kubeshark version
# Compare with https://github.com/kubeshark/kubeshark/releases/latest
Step 3 — Deploy with kubeshark tap
kubeshark tap
This installs the Helm chart with defaults and opens the dashboard in your browser. That's it for dev/test clusters.
Step 4 — Reconnect if Connection Breaks
If the port-forward drops (laptop sleep, network change, terminal closed):
kubeshark proxy
This re-establishes the port-forward and reopens the dashboard. It does not reinstall — Kubeshark is still running in the cluster.
Step 5 — Clean Up After Use
Always clean up when done. Kubeshark runs eBPF probes and DaemonSet workers on every node — leaving it running wastes cluster resources.
kubeshark clean
Always remind the user to run kubeshark clean when they're finished. This is
easy to forget and important.
Path B: Helm (Larger / Production Clusters)
Step 1 — Upgrade the Helm Chart
Always update the Helm repo first. This is the most important first step — running an outdated chart can cause issues.
helm repo add kubeshark https://helm.kubeshark.com
helm repo update
Step 2 — Create a Config Directory
Store all configuration files in ~/.kubeshark/:
mkdir -p ~/.kubeshark
Before writing any file to ~/.kubeshark/, check if it already exists.
If ~/.kubeshark/values.yaml (or any target filename) already exists, ask the
user before overwriting. Either:
- Back up the existing file first:
cp ~/.kubeshark/values.yaml ~/.kubeshark/values.yaml.bak.$(date +%s) - Use a descriptive name for the new file (e.g.,
values-production.yaml,values-staging.yaml)
The user may have multiple values files for different clusters or environments.
Step 3 — Build the Values File
Walk through the following configuration areas with the user. Each section explains what the value does and what to recommend.
Pod Targeting (CRITICAL)
tap:
regex: .*
namespaces: []
excludedNamespaces: []
This is one of the most important configuration decisions. By default, Kubeshark monitors the entire cluster's traffic. On a large cluster this is a huge und
Câu hỏi thường gặp
Tôi nên dùng CLI hay Helm?
CLI phù hợp với thiết lập thử nghiệm nhanh, còn Helm phù hợp với cụm lớn cần cấu hình tùy chỉnh.
Nó có bao quát nâng cấp và gỡ cài đặt không?
Có, nó bao quát nâng cấp, gỡ cài đặt và quản lý release Helm.
Nó có giúp khi cài đặt thất bại không?
Có, nó bao quát xử lý sự cố khi cài đặt.
Chi tiết
Mô tả gốc của tác giả
Kubeshark installation and deployment skill. Use this skill whenever the user wants to install Kubeshark, deploy Kubeshark to a Kubernetes cluster, set up Kubeshark, configure Kubeshark helm values, generate a Kubeshark config file, customize Kubeshark deployment, troubleshoot Kubeshark installation, upgrade Kubeshark, uninstall Kubeshark, or manage the Kubeshark Helm release. Also trigger when the user mentions "kubeshark tap", "kubeshark clean", "helm install kubeshark", "get kubeshark running", "set up traffic capture", "deploy kubeshark", "kubeshark not starting", "kubeshark pods not ready
repo: kubeshark/kubeshark
Độ phổ biến
- Sao GitHub
- 12k
- Vị trí xếp hạng
- #11473
- Giấy phép
- Apache-2.0
- Cập nhật
- 1/11/2026
Bình luận
- …
Thêm skill từ kho mã này
kfl
12kGiúp agent của bạn viết biểu thức lọc KFL đúng, là ngôn ngữ truy vấn Kubeshark dùng để tìm lưu lượng mạng.
network-rca
12kGiúp agent của bạn điều tra một sự cố mạng đã xảy ra trong cụm Kubernetes bằng cách nghiên cứu các snapshot lưu lượng đã lưu.
security-audit
12kGiúp agent của bạn kiểm tra lưu lượng cụm Kubernetes để tìm dấu hiệu tấn công, đánh cắp dữ liệu, mã độc và các mối đe dọa khác.
Skill tương tự
openclaw-update
394kGiúp agent của bạn cập nhật OpenClaw Gateway đang có, chọn cách cập nhật phù hợp với cách cài đặt và giữ phiên làm việc của bạn hoạt động.
diagnose-gateway
394kGiúp agent của bạn tìm hiểu vì sao OpenClaw Gateway bị lỗi bằng cách kiểm tra cài đặt, kênh và cổng mà không thay đổi gì.
crabbox-apps
394kGiúp agent của bạn mở và chạy một app trên máy đám mây tạm thời, rồi hiển thị giao diện của nó trong thanh bên của chat.