← 返回 Skills 市场
60
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install knative-serving
功能描述
Use this skill when a task involves Knative Serving on Kubernetes, including designing or deploying serverless container workloads, converting Deployments to...
使用说明 (SKILL.md)
Knative Serving
Use this skill for Knative Serving work on Kubernetes clusters. Prefer current cluster state over assumptions: inspect resources with kubectl and kn, then make the smallest manifest or command change that matches the user's deployment model.
Workflow
- Identify the scope: deploy/update, Deployment conversion, autoscaling, revision/traffic, networking, container runtime, or debugging.
- Check the cluster context before changing live resources:
kubectl config current-context kubectl get ns kubectl get ksvc,route,configuration,revision -A - Prefer
knfor fast operational changes and examples; prefer YAML pluskubectl applywhen the user needs reviewable declarative config. - For production manifests, keep all per-revision behavior under
spec.templateso Knative creates a new Revision for behavior-changing changes. - Validate with status, conditions, and traffic targets, not only Pods:
kn service describe \x3Cservice> -n \x3Cnamespace> kubectl get ksvc \x3Cservice> -n \x3Cnamespace> -o yaml kubectl get revision -n \x3Cnamespace> kubectl get route \x3Cservice> -n \x3Cnamespace> -o yaml
References
Read only the files needed for the task:
references/overview-and-crds.md: Serving resource model, CRD schema discovery, core objects, Serving API fields, and important labels/annotations.references/kn-cli.md:knCLI workflows for create, update, describe, revisions, traffic, domain, and service operations.references/autoscaling.md: KPA/HPA, metrics, concurrency, RPS target, scale-to-zero, scale bounds, scale windows/delays, and autoscaling annotations.references/container-settings.md: container image, ports, env, secrets/config, resources, probes, timeouts, volumes, private registries, multi-container, and queue-proxy implications.references/revisions-and-traffic.md: immutable Revisions, rollout, pinning, tagging, splitting, rollback, and garbage collection.references/networking.md: Route, ingress, external URL, cluster-local/private services, DomainMapping, default domains, TLS, ingress class, Kourier/Istio/Contour notes.references/observability.md: Serving metrics, queue-proxy and autoscaler signals, logs, tracing, and config-observability/config-logging.references/debugging.md: diagnosis flow, commands, condition interpretation, logs/events, and common error patterns.references/common-errors.md: quick lookup table for frequent Knative Serving failures and fixes.
Defaults
- Use
Service(ksvc) for normal workloads; reach for lower-level Route/Configuration only when the user explicitly needs them. - Treat annotations under
spec.template.metadata.annotationsas Revision-scoped unless the reference says otherwise. - Treat cluster-local visibility as a label on the Service/Route/Kubernetes Service unless the live installed version says otherwise.
- Do not list full CRD schemas in answers. Show how to inspect them with
kubectl explain,kubectl get crd, and OpenAPI output. - When autoscaling is involved, state whether the setting is global ConfigMap, Operator config, or per-Revision annotation/spec field.
- When debugging, follow the object chain: Service -> Route/Configuration -> Revision -> PodAutoscaler/ServerlessService -> Deployment/Pod -> ingress.
Safety
- Do not assume
kncan install Knative Serving or Eventing; use it for resource operations after Knative is installed. - Do not expose a private Service with DomainMapping unless the user explicitly wants that. A DomainMapping can make a private Service reachable through the mapped domain.
- Do not assume metrics/logging/tracing export is enabled. Check
config-observability,config-logging, and the cluster monitoring stack first. - Avoid setting low
containerConcurrencyas a generic fix. It can increase queueing, latency, and cold starts. - Do not mix KPA-only metrics with HPA-only metrics. KPA supports
concurrencyandrps; HPA handles CPU, memory, and custom metrics when configured. - For traffic changes, ensure traffic percentages sum to 100 before applying manifests or commands.
安全使用建议
Install only if you are comfortable with an agent helping inspect and change Kubernetes/Knative resources using your current cluster credentials. Review commands that delete resources, alter traffic, expose domains, read logs, or query all namespaces before running them.
能力评估
Purpose & Capability
The skill's purpose is Knative Serving deployment, traffic, autoscaling, networking, observability, and debugging; the documented kubectl and kn workflows match that purpose.
Instruction Scope
It guides live cluster inspection and resource changes such as apply, update, delete, traffic splits, and DomainMapping, but it also emphasizes context checks, dry runs, scoped changes, and production reviewability.
Install Mechanism
The artifact contains only markdown files and declares kubectl and kn as required binaries; there are no executable scripts, dependencies, or install hooks. The kn install notes are user-directed documentation.
Credentials
The skill may use existing Kubernetes credentials to read all namespaces, logs, configmaps, domain mappings, certificates, and to mutate Knative resources; this is sensitive but expected for Knative operations and is disclosed.
Persistence & Privilege
No artifact evidence shows background workers, credential harvesting, persistence, privilege escalation, obfuscation, or exfiltration. Any authority comes from the user's existing kubectl/kn access.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install knative-serving - 安装完成后,直接呼叫该 Skill 的名称或使用
/knative-serving触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
- Expanded scope to cover Deployment-to-Knative conversion, DomainMapping, cluster-local visibility, private registries, volumes, observability, and more error/debugging scenarios.
- Added new reference file: `references/observability.md` for metrics, logging, and tracing configurations.
- Updated and clarified usage, defaults, and safety guidelines for DomainMapping, cluster-local services, and observability config.
- Improved and reorganized reference summaries to include additional topics (timeouts, scale delays, volumes, etc).
- Strengthened workflow and default steps for checking traffic targets, using both `kubectl` and `kn`, and validating cluster context.
- Enhanced safety warnings for traffic, DomainMapping, metrics/logging, and containerConcurrency.
v1.0.0
Initial release of the knative-serving skill.
- Provides guidance for deploying, managing, and troubleshooting Knative Serving resources on Kubernetes.
- Covers `kn` CLI operations, YAML manifests, revision and traffic management, autoscaling, networking, and debugging tips.
- References included for core concepts, CLI workflows, common errors, container settings, and autoscaling.
- Safety best practices outlined for updates, traffic splitting, concurrency, and metrics configurations.
- Requires `kubectl` and `kn` binaries to use effectively.
元数据
常见问题
Knative Serving 是什么?
Use this skill when a task involves Knative Serving on Kubernetes, including designing or deploying serverless container workloads, converting Deployments to... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 60 次。
如何安装 Knative Serving?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install knative-serving」即可一键安装,无需额外配置。
Knative Serving 是免费的吗?
是的,Knative Serving 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Knative Serving 支持哪些平台?
Knative Serving 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Knative Serving?
由 wei(@wei840222)开发并维护,当前版本 v1.0.1。
推荐 Skills