当前位置: 首页 > Skill >

Kubernetes Encyclopedia

Kubernetes Encyclopedia

Kubernetes Encyclopedia

Kubernetes 文档优先工作流,用于处理 Kubernetes 特定问题、故障排除、命令规划、集群运维、工作负载/资源行为等。

1.0.0 2026.11.26 785
获取Skill文件查看使用说明
作 者:顾知 许可证: 更新时间:2026.11.26
本文目录展开

Kubernetes Encyclopedia

Overview

Use a docs-first workflow for Kubernetes work. Prefer the official Kubernetes documentation at https://kubernetes.io/docs/home/, consult cached local copies under .Kubernetes-Encyclopedia/ before re-fetching, and record useful official-doc excerpts plus environment-specific operational learnings so future work gets faster and safer.

This skill is for the Kubernetes API/control-plane/cluster layer. It should trigger for real Kubernetes behavior, configuration, workload/resource, and operational questions — not for generic Linux admin work, generic container theory, or Docker-only questions where Kubernetes-specific semantics are not the real issue.

Workflow

  1. Classify the task

    • Decide whether the task is a Kubernetes question, troubleshooting task, command-planning task, resource review, cluster review, or live operational task.
    • Use this skill when the request is specifically about Kubernetes product behavior, kubectl semantics, API resource behavior, workload lifecycle, cluster networking/storage/scheduling/security behavior, or Kubernetes-specific operational details.
    • Do not use this skill for generic shell work, generic Linux admin, generic container theory, or Docker-only questions unless the Kubernetes layer is specifically in play.
  2. Check local cache first

    • Use .Kubernetes-Encyclopedia/ as the local knowledge/cache root.
    • Check these locations first when relevant:
      • .Kubernetes-Encyclopedia/docs/kubernetes.io/docs/...
      • .Kubernetes-Encyclopedia/notes/components/...
      • .Kubernetes-Encyclopedia/notes/patterns/...
      • .Kubernetes-Encyclopedia/inventory/...
    • If a cached page or note already answers the question well enough, use it.
  3. Consult official Kubernetes docs before answering or touching the system

    • Before answering direct or indirect Kubernetes questions that depend on command syntax, resource semantics, controller behavior, feature boundaries, configuration semantics, cluster behavior, or version-sensitive details, consult the official docs unless the answer is already well-supported by the local cache.
    • Before performing direct Kubernetes CLI or configuration work, consult the relevant docs first when:
      • the exact resource or command path matters
      • scheduling/networking/storage/security semantics are easy to misremember
      • the action could affect workloads, nodes, access, traffic, storage, policy, or cluster reachability
    • Do not improvise high-impact Kubernetes commands or manifest changes from memory when the docs are easy to check.
  4. Cache consulted docs locally

    • When you consult a Kubernetes docs page, save a normalized markdown/text cache copy under .Kubernetes-Encyclopedia/docs/kubernetes.io/docs/....
    • Mirror the official docs path structure as much as practical.
    • Cache only pages actually consulted; do not try to mirror the whole docs site eagerly.
    • Use scripts/cache_doc.py when appropriate.
  5. Separate official documentation from local observations

    • Store official-doc-derived material under .Kubernetes-Encyclopedia/docs/....
    • Store environment-specific operational knowledge under:
      • .Kubernetes-Encyclopedia/notes/components/
      • .Kubernetes-Encyclopedia/notes/patterns/
      • .Kubernetes-Encyclopedia/inventory/
    • Distinguish clearly between:
      • official documented behavior
      • observed local configuration/state
      • inferred best-practice guidance
  6. Record useful local learnings

    • After useful live work, save durable notes such as:
      • cluster-specific topology and access conventions
      • recurring workload/debugging patterns
      • ingress/network-policy/storage-class gotchas
      • scheduling/RBAC/manifest conventions
      • safe/unsafe operational boundaries for the environment
    • Prefer concise durable notes over re-learning the same Kubernetes details later.

Live Work Rules

  • Treat official Kubernetes docs lookup as the default preflight for non-trivial Kubernetes work.
  • Prefer read/inspect first when entering a Kubernetes area you have not recently reviewed.
  • Treat namespace-wide changes, workload rollouts, storage changes, ingress/service exposure, RBAC/policy changes, and node/control-plane touching operations as high-sensitivity areas.
  • When uncertainty remains after checking cache + docs, say so and avoid bluffing.
  • When answering a question, mention when useful whether the answer comes from cached official docs, a fresh official docs lookup, or live observed environment state.

Data Root

Use this workspace-local root for cache and notes:

  • .Kubernetes-Encyclopedia/

Expected structure:

  • .Kubernetes-Encyclopedia/docs/kubernetes.io/docs/...
  • .Kubernetes-Encyclopedia/notes/components/...
  • .Kubernetes-Encyclopedia/notes/patterns/...
  • .Kubernetes-Encyclopedia/inventory/...

Use scripts/init_workspace.py to create or repair the expected directory structure.

Note Destinations

  • Component-specific observations → .Kubernetes-Encyclopedia/notes/components/<component-name>.md
  • Reusable Kubernetes patterns/gotchas → .Kubernetes-Encyclopedia/notes/patterns/<topic>.md
  • Environment-wide deployment/access info → .Kubernetes-Encyclopedia/inventory/*.md
  • Cached official docs → .Kubernetes-Encyclopedia/docs/kubernetes.io/docs/...

Secrets / Sensitive Data

  • Do not store plaintext credentials, API keys, session tokens, private URLs, recovery codes, kubeconfigs, client certificates, bearer tokens, or other secrets in the encyclopedia notes/inventory tree.
  • If a note needs to mention access details, keep it high-level and redact or omit secret material.
  • Treat these workspace notes as operational memory, not as a secrets vault.

Resources

  • scripts/init_workspace.py — create or repair the .Kubernetes-Encyclopedia/ directory tree.
  • scripts/cache_doc.py — fetch and cache a consulted official Kubernetes docs page under .Kubernetes-Encyclopedia/docs/....
  • references/workflow.md — detailed operating workflow and evidence-handling rules.
  • references/cache-layout.md — canonical .Kubernetes-Encyclopedia/ directory structure.
  • references/topic-map.md — useful Kubernetes topic groupings for faster doc lookup.

Good Outcomes

  • Answer a Kubernetes question using cached or freshly checked official docs instead of guesswork.
  • Inspect a live Kubernetes environment after checking the relevant docs and record any new local operational knowledge.
  • Build a growing local Kubernetes knowledge cache that makes later work faster, safer, and more grounded.
  • Turn one-off Kubernetes discoveries into durable notes so future work does not rediscover them from scratch.

Avoid

  • Answering Kubernetes-specific questions purely from memory when docs are easy to consult.
  • Treating local observed behavior as if it were guaranteed official documented behavior.
  • Dumping large amounts of low-value docs into the workspace without a reason.
  • Writing component-specific observations into the official-doc cache tree.
  • Making high-impact live changes before checking the relevant docs when exact behavior matters.

推荐文章

更多
PHP时间戳与日期字符串相互转换方法详解

本文介绍PHP中时间数值(Unix时间戳)与日期字符串之间的相互转换方法。通过strtotime和date函数,实现将当前时间、指定日期转换为时间戳,以及将时间戳格式化为可读的日期时间字符串,并提供相关在线计算工具推荐。

2025.11.30 1,017
PHP跨域配置:怎么安全地允许指定域名而非使用通配符

在 PHP 中安全地允许指定域名跨域,核心是解析请求头中的 Origin ,验证其是否在白名单内,然后动态设置 Access-Control-Allow-Origin 响应头。不要使用通配符 * ,也不要硬编码单一域名。

2025.03.29 1,005
JavaScript中利用replace结合正则实现replaceAll效果

JavaScript原生仅支持replace()进行单次或全局替换,缺乏类似Java的replaceAll()便捷方法。本文总结四种在JS中实现全量替换的方案:使用带g标志的正则、带gm标志的正则、扩展String原型以及split后join。通过对比代码示例,展示各方法的实现细节与适用场景,帮助开发者根据需求选择最优解。

2025.04.29 1,003
PHP日期转时间戳时区偏差怎么解决

在 PHP 中将日期字符串转换为时间戳时,若未显式指定时区,默认使用脚本配置的 date.timezone 或系统时区。当服务器时区与业务逻辑预期(如 UTC )不一致时,会产生偏差。解决核心是确保输入字符串携带明确时区信息,或在转换前统一设置时区上下文。

2026.10.24 1,002
PHP实现基础文件上传:HTML表单与$_FILES处理流程

在 HTML 表单中设置 enctype="multipart/form-data" ,并在 PHP 后端通过 $_FILES 数组接收文件,调用 move_uploaded_file() 将临时文件移动到目标目录即可完成上传。

2026.09.07 1,002
Linux内核提权风险待核实,先查版本与补丁

CVE-2026-78901在摘要中被称为Linux内核ext4本地提权漏洞,CVSS评分7.8,但上游正文暂未核实。本文提供通用只读排查命令,帮运维和开发者核对当前运行内核、发行版补丁及升级生效状态。

2026.12.02 1,001
Skill 文件
  • SKILL.md
    • Kubernetes Encyclopedia
    • Overview
    • Workflow
    • Live Work Rules
    • Data Root
    • Note Destinations
    • Secrets / Sensitive Data
    • Resources
    • Good Outcomes
    • Avoid
  • 项目或源文件

相关 Skill

更多
Analyze Kubernetes cluster issues through MCP with K8sGPT Analyze Kubernetes cluster issues through MCP with K8sGPT 将 K8sGPT 运行为 MCP 服务器,以便代理可以扫描 Kubernetes 集群、解释不健康的资源,并以自然语言返回优先级修复线索。
Kubernetes Network Policy Generator Kubernetes Network Policy Generator 使用加权评分卡在12项标准上评估和比较隐私解决方案供应商。适用于选择隐私管理软件、比较数据保护方案等场景。
Garden Kubernetes 开发与测试自动化平台 Garden Kubernetes 开发与测试自动化平台 Garden 是一个 DevOps 自动化工具,用于更快地开发和测试 Kubernetes 应用。它按需启动类似生产环境的环境,提供智能构建缓存和并行执行,并在开发、测试和 CI 阶段使用统一的 YAML 配置。
阿拉丁·CI/CD与部署编排工坊|多平台流水线·Docker/K8s·质量门禁·本地校验 阿拉丁·CI/CD与部署编排工坊|多平台流水线·Docker/K8s·质量门禁·本地校验 阿拉丁·CI/CD与部署编排工坊把"交付上线"工程化:①自动探测仓库——识别语言/框架/构建/测试/端口,免手填;②多平台 CI 一键齐发——GitHub Actions + GitLab CI + Jenkinsfile 三大主流;③容器化——多阶段 Dockerfile(非 root/多语言基础镜像) + docker-compose;④编排部署——Kubernetes Deployment/Service/Ingress + Helm 骨架(带探针/资源限制/健康检查);⑤质量门禁联动——把 aladin-code-pilot(审查)/aladin-api-pilot(契约测试)/aladin-sql-forge(迁移) 嵌成流水线 stage;⑥本地校验 dry-run——纯标准库做 YAML 结构/密钥占位符/:latest 告警/端口/探针校验;⑦发布流水线——语义版本 bump + CHANGELOG + 标签 + 发布说明;⑧多格式导出——.yml/.yaml/.groovy/Dockerfile + HTML 看板 + MD 部署文档。相比 skillhub 飙升的
k8s AIops k8s AIops Use this skill whenever the user needs to operate a Kubernetes cluster — list/inspect pods, deployments, statefulsets, daemonsets, replicasets, jobs, cronjobs, services, ingresses, endpoints, configmaps, secrets (names/keys only), PVCs/PVs/storageclasses, nodes, namespaces, and events; read pod logs; describe pods/nodes; pod/node top (metrics); read-only diagnostics / RCA (pod-health, workload-readiness); scale deployments/statefulsets; rollout status/history/undo/pause/resume and set image; del