beclab/olares

olares-cluster

Olares ControlHub K8s runtime view via olares-cli cluster — inspect pods, containers, workloads, logs, jobs, cronjobs, namespaces, nodes, and middleware; exec, scale, restart, or delete K8s objects.

查看源码

使用方法

  1. 复制安装命令,在自己的智能体环境安装前先检查源码包。
  2. 从原始文档核对所需工具、凭据和支持的宿主。
  3. 说明输入材料与期望交付物,并对照来源检查输出。
npx skills add https://github.com/beclab/olares --skill olares-cluster

开始前需了解

  • 安装不包含模型订阅、API 额度或访问文件的权限。
  • 仓库星数和安装量反映活跃情况,不等于独立质量或安全测试。
仓库原始内容

按源仓库内容呈现,保留标题、案例、代码、表格、链接以及原文引用的演示图片。

cluster (per-user K8s view)

Shared front door: load `../olares-shared/SKILL.md` for suite routing, active-profile selection, platform entry points, and the auth proceed/stop gate. Load its auth reference only when login, profile switching, token storage, or auth recovery is actually needed.

Load the shared platform model when the task depends on app namespaces, application spaces, cross-namespace DNS, or system middleware. Use olares-cli cluster <noun> <verb> --help for syntax.

When to use

  • Inspect K8s runtime objects, YAML, events, logs, or identity context.
  • Execute a one-shot command in a container.
  • Scale, restart, stop, start, or delete a workload; suspend/resume cronjobs; rerun jobs.
  • Watch pod, workload, application, or log state.
Diagnosing why an app is broken* (stuck install, crash loop, running but unreachable, image won't pull, resource pressure) is `../olares-doctor/SKILL.md` — it orchestrates these cluster commands into symptom→root-cause routing. cluster stays the raw runtime view and the place that mutates K8s objects.

workload stop/start changes controller replicas; it does not update the Market lifecycle row. Use market stop/resume for app-level lifecycle.

Fast paths

TaskReadFirst command
See whether an app's pods are uppod operationsolares-cli cluster pod list -n <namespace> -o json, then read each .status.phase
Read a container's logspod operationsolares-cli cluster pod logs <pod> -n <namespace>
Find what this profile can see at allthis fileolares-cli cluster context -o json
Restart a workloadworkload operationsolares-cli cluster workload restart <name> -n <namespace>

The identity-vs-server-decides principle (cross-cutting)

  • Identity is the active profile; there is no per-invocation profile override.
  • The server decides visibility and authorization. cluster context is identity display, not a permission preflight.
  • Surface a 403 as authoritative. The exception is exec, whose namespace safety gate is described in its reference.

Verb index

NounVerbsRead when triggered
context(single verb)The ControlHub-side identity and scope of the active profile — what this tree can see at all, before any noun below returns empty
podlist, get, yaml, events, logs, delete, restart, execexec requires Olares 1.12.7+; pod operations; exec safety
containerlist, env, logs, execexec requires Olares 1.12.7+; exec safety
workload (wl)list, images, get, yaml, rollout-status, scale, restart, stop, start, deleteworkload operations
application (app)list, get, workloads, pods, statusapplication aggregation
namespace (alias ns)list, getScoped to the active profile, so this is the user's namespaces rather than the cluster's
node (alias nodes)list, getThe node names other trees ask for: files addresses cache/<node>/ and external/<node>/ by them, and a file task is retained per node
job (jobs)list, get, yaml, pods, events, rerunjob operations
cronjob (cronjobs, cj)list, get, yaml, jobs, suspend, resumecronjob operations
middleware (mw)listmiddleware model

Watch and asynchronous semantics

  • Watches and log follow poll; they are not streaming API watches.
  • Transient network/5xx failures are retried within a bounded streak. Terminal 4xx responses stop immediately; 408 and 429 remain retryable.
  • Ctrl-C stops the local poll cleanly. It does not undo a mutation already accepted by the server.
  • A rollout/status watch ending is not proof that the application entrance is healthy; use olares-doctor when runtime symptoms remain.

Safety and escalation

  • Confirm every destructive runtime mutation before invoking it, even if --yes is available.
  • exec is a remote code-execution boundary. Confirm namespace, pod, container, command, and whether writes are expected. Prefer one-shot execution; interactive TTY belongs to the human.
  • Do not delete or restart objects merely because a diagnostic found them unhealthy. Establish controller ownership and the app-level consequence first.
  • A 404 may hide a namespace the profile cannot see. Compare against cluster application list; do not broaden scope or switch identity without user approval.
  • For complete image-reference diagnostics use doctor images, not a paginated workload listing.
  • Stop on ambiguous namespace/resource identity, missing permission, or any request to access another user's container.

按任务相关推荐

来自同一仓库

更多 Skills

全部 Skills
beclab
社区

olares-chart

Olares app packaging and chart authoring via olares-cli chart — port a repo, docker-compose, or generic Helm chart; build/push the image; author, lint, package, and deploy an OlaresManifest; wire storage, middleware, entrances, env, and GPU; edit the chart after diagnosis. Runtime failure diagnosis is olares-doctor; public Market submission is olares-publish.

安装量
2
GitHub Stars
5311
最近更新
10月20日
beclab
社区

olares-dashboard

Olares Dashboard via olares-cli dashboard — CPU, memory, disk, network, pod counts, fan, GPU, application/resource rankings, JSON envelopes, and --watch. Use for Dashboard metrics, overview, resource usage, and Olares One fan; not for pod logs or K8s object inspection (olares-cluster).

安装量
2
GitHub Stars
5311
最近更新
10月20日
beclab
社区

olares-files

Olares Files via olares-cli files — browse known paths; upload or download file bytes; edit, share, mount SMB/NFS, compress/extract archives, and manage Seafile sync across Drive/cache/external/cloud. Use for Olares Files and LarePass Files operations, not URL/yt-dlp/torrent download tasks (olares-knowledge).

安装量
2
GitHub Stars
5311
最近更新
10月20日
beclab
社区

olares-knowledge

Olares Knowledge via olares-cli knowledge — manage download-server URL, yt-dlp, aria2, torrent, HuggingFace, and Wise download tasks: create/list/inspect/pause/resume/cancel/remove, prefs, sync, and file probes. Requires Olares 1.12.7+. Not for installer download or copying a Drive file with files download.

安装量
2
GitHub Stars
5311
最近更新
10月20日