sternpodkubernetes

During incident troubleshooting, aggregate and track matching Kubernetes pod logs without switching pod-by-pod. It is used to collect relevant pods' log streams and continuously follow matching entries while diagnosing issues.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "sternpodkubernetes" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-77db13a1e14360e7cfbbb1529b3e1466fbecb99c71103f13cfffdb7e4a8a3625. Verify the upstream source and version against https://skillhub.cn/skills/user_3c6cb52e/tail-multi-pod-kubernetes-logs-by-label-during-incidents-with-stern before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

During incident troubleshooting, aggregate and track matching Kubernetes pod logs without switching pod-by-pod. It is used to collect relevant pods' log streams and continuously follow matching entries while diagnosing issues.

0 Downloads

Introduction source: third_party · user_3c6cb52e · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Audience
Not specified in the source documentation.
Inputs and outputs
Not specified in the source documentation.
Software, accounts and paid services
Stern CLI, Kubernetes cluster access
Limits and differences
Not specified in the source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: "使用Stern在事件期间按标签尾随多pod Kubernetes日志"
slug: "tail-multi-pod-kubernetes-logs-by-label-during-incidents-with-stern"
version: "1.0.0"
displayName: "使用Stern在事件期间按标签尾随多pod Kubernetes日志"
summary: "在事件故障排除期间,聚合并跟踪匹配的 Kubernetes pod 日志,而无需逐个 pod 跳转。"
license: "MIT"
description: "在事件故障排除期间,聚合并跟踪匹配的 Kubernetes pod 日志,而无需逐个 pod 跳转。"
github_stars: 4636
verification: "security_reviewed"
source: "https://github.com/1991513ccie-png/skills"
author: "1991513ccie-png"
publisher_type: "individual"
category: "Runbooks & Diagnostics"
framework: "Multi-Framework"
tool_ecosystem:
  github_repo: "1991513ccie-png/skills"
  github_stars: 4636

使用Stern在事件期间按标签尾随多pod Kubernetes日志

Aggregate and follow logs from matching Kubernetes pods during incident triage without hopping pod by pod.

Prerequisites

Stern CLI, Kubernetes cluster access

Installation

Use the upstream install or setup path that matches your environment:

  • go install github.com/stern/stern@latest
  • brew install stern
  • brew install bash-completion
  • brew install bash-completion@2

Requirements and caveats from upstream:

  • --container-colors | | Specifies the colors used to highlight container names. Use the same format as --pod-colors. Defaults to the values of --pod-colors if omitted, and must match its length.
  • --node | | Node name to filter on.
  • | NodeName | string | The node name where the pod is scheduled on |

Basic usage or getting-started notes:

Documentation

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value65/100

Areas to improve

  • 受众相对垂直 Reported severity: Minor

    Skill聚焦于Kubernetes运维人员,属于长尾需求,受众范围较窄。

    Recommendation: 可考虑扩展适用场景或增加通用性说明以提升覆盖面。

Highlights

  • 提供Kubernetes事件故障排除期间聚合多Pod日志的实用能力
  • 解决了逐个Pod跳转查看日志的低效问题
Trigger Precision85/100

Areas to improve

  • 触发词可进一步细化 Reported severity: Minor

    当前触发描述较为通用,可补充更具体的触发关键词。

    Recommendation: 增加如'Kubernetes日志聚合'、'Stern工具使用'等具体触发词。

Highlights

  • description清晰描述了核心使用场景和解决的问题
  • 触发边界相对明确,不易与其他Skill混淆
Structure and Standards60/100

Areas to improve

  • 缺少具体执行步骤和示例 Reported severity: Major

    文档缺少Phase/步骤划分和端到端的使用示例,用户难以理解具体操作流程。

    Recommendation: 增加具体的操作步骤说明和完整的使用示例。

  • Installation部分包含无关内容 Reported severity: Minor

    Installation部分包含了不相关的bash-completion安装说明,可能误导用户。

    Recommendation: 移除无关的安装说明,专注于Stern工具本身的安装。

Highlights

  • 文档结构基本完整,包含Prerequisites、Installation等必要章节
Execution Reliability65/100

Areas to improve

  • 缺少异常处理说明 Reported severity: Major

    未覆盖主要异常场景(如Stern未安装、Kubernetes集群连接失败)的处理方法。

    Recommendation: 增加常见异常的处理说明和故障排查指南。

  • 工具参数说明不完整 Reported severity: Minor

    --container-colors和--node参数的说明格式混乱,影响理解。

    Recommendation: 规范参数说明格式,确保清晰易懂。

Highlights

  • 工具来源明确,提供了多种安装方式
  • 引用了上游官方文档作为参考
Evidence Verifiability (mean of the first four)69/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

  • Install or fetch external dependencies

    Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.

    Mentioned in main document · lines 33, 34, 35
Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • github.com
  • raw.githubusercontent.com

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Stern CLI, Kubernetes cluster access

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.