Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CONTEXT.md
Original file line number Diff line number Diff line change
Expand Up @@ -296,3 +296,11 @@ _Avoid_: project config, repo settings, manifest
**Environment tree**:
The Kubernetes folder of an infra repo: what one cluster runs, such as its Argo CD Applications, the values of its charts and its dashboards. A command takes its root from `--k8s-dir`, else from the profile fact `kubernetes.dir` of the repository of the current folder, else of the one infra repo that gives it. The product base `k8s/devops`, which devops-cli ships, is not part of it.
_Avoid_: homelab config

**Managed project**:
A repository that devops-cli works on for its owner, such as a repository of the setting `service.repos`, which the roadmap jobs change. Its project profile gives its facts. Each guideline applies to it with no change, and it keeps the decisions of its own environment and product. devops-cli is a managed project too.
_Avoid_: client project, downstream repo

**Guideline**:
A rule or a method in [`docs/guidelines/`](docs/guidelines/index.md) of devops-cli that applies with no change to each managed project, such as the Kubernetes guideline. The docs site publishes it, and no managed repository holds a copy. It names no issue, date, node or path of an environment tree: the README of the environment tree holds the decisions of one environment, and a tracker issue holds its gaps.
_Avoid_: spec (a Spec is an OpenSpec capability), policy, profile
2 changes: 1 addition & 1 deletion docs/CLUSTER.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# devops-cli in the cluster

This document tells how devops-cli runs in a Kubernetes cluster: the roadmap Service, its runner Jobs, the services that it calls, and how its images are pinned and updated. [k8s/README.md](../k8s/README.md) tells how to set up the cluster: its stacks, its Secrets, its alerts and Argo CD. The [SRE guideline](guidelines/sre.md) sets how the project runs these services: their SLOs, incidents, backups and capacity. [Service levels](../k8s/README.md#service-levels) holds the SLO objectives and the other decisions of this cluster.
This document tells how devops-cli runs in a Kubernetes cluster: the roadmap Service, its runner Jobs, the services that it calls, and how its images are pinned and updated. [k8s/README.md](../k8s/README.md) tells how to set up the cluster: its stacks, its Secrets, its alerts and Argo CD. The [SRE guideline](guidelines/sre.md) sets how the project runs these services: their SLOs, incidents, backups and capacity. [Service levels](../k8s/README.md#service-levels) holds the SLO objectives and the other decisions of this cluster. The [Kubernetes guideline](guidelines/kubernetes.md) gives the performance targets of these workloads and the method to tune them, and [Capacity targets](../k8s/README.md#capacity-targets) holds the decisions of this cluster.

`k8s/devops/` runs devops-cli as cluster Jobs, so agents drive it with kubectl and never handle keys. It is managed by `devops k8s deploy-stack --stack devops` (and `--stack all`), the only command that creates its ConfigMap `devops-cli-config`, which it renders from `config.yaml`; `devops k8s apply k8s/devops/ --template` applies the rest without it, and the pods wait for that ConfigMap. Each Job reads its credentials from Secret `devops/devops-cli` through `envFrom`, its configuration from ConfigMap `devops-cli-config` (provider `gateway` at `http://llm-gateway.llm.svc.cluster.local:4000/v1`), holds no Kubernetes API token, accepts no ingress, and reaches only DNS, the gateway, the OpenTelemetry collector in namespace `otel`, public HTTPS and the MCP server (TCP 8001, by the policies `mcp-server-ingress` and `mcp-server-clients`). Commands that need Qdrant, Prometheus, Grafana, Argo CD or a repository checkout do not run there yet.

Expand Down
1 change: 1 addition & 0 deletions docs/guidelines/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
A guideline is a rule or a method that applies with no change to each managed project. The docs site publishes each guideline, and no managed repository holds a copy. A guideline names no issue, date, node or path of one environment. The README of the environment tree of a project holds the decisions of its environment, and a tracker issue holds its gaps. The test `tests/invariants/test_guidelines.py` holds each guideline to these rules, and it fails when a guideline of this folder has no line below.

- [Agentic jobs](agentic-jobs.md) — The default targets of an agentic job, the job model, the measure of a job, the tuning loop, and the rules for agents and jobs.
- [Kubernetes](kubernetes.md) — The resource targets of a cluster, the tuning method, the rules of each area, and the rules for agents and jobs.
- [Production readiness](production-readiness.md) — The checklist of a service and a repository, the check of each row, the readiness review and the steps of a new service.
- [SRE](sre.md) — The service catalog, the SLOs, the alerts, the incidents, the change safety, the backups, the capacity and the runbooks of a service.
Loading