k8s-servant
A read-only AI SRE for Kubernetes clusters. It looks at a cluster the way an experienced cluster administrator would: it finds what is wrong, explains why with evidence, says what to do about it, and remembers what it already told you. It never changes anything. The language model is your choice: Microsoft Foundry, OpenAI, Anthropic, a self-hosted model through Ollama, or any OpenAI-compatible server.
Early-stage project. Expect bugs and rough edges, and breaking changes before
v1.0. It is read-only, but verify its findings before you act on them.
Install
You need Python 3.12 or newer and kubectl.
uv tool install k8s-servant # or: pipx install k8s-servant
uvx k8s-servant onboard # or run once without installing
For Microsoft Foundry with Entra ID sign-in, install the azure extra:
uv tool install 'k8s-servant[azure]'.
Describe your platform
With kubectl pointing at a cluster, let the agent draft what it should know about
your platform. It scans the cluster once (read-only, never Secrets), asks a few
questions and writes Helm values files you review:
k8s-servant onboard
Then choose a model and ask a question:
export LLM_PROVIDER=ollama LLM_MODEL=qwen3 # or anthropic / openai with LLM_API_KEY_FILE
export CLUSTER_NAME=demo MCP_URL= # kubectl only; reads your current context
k8s-servant doctor
k8s-servant ask "Are there any unhealthy pods? Why?"
In the cluster it runs from the Helm chart, with scheduled health checks and a morning report to an MS Teams channel.
Links
- Documentation: https://k8s-servant.dev
- Getting started: https://k8s-servant.dev/getting-started/
- Choose a model provider: https://k8s-servant.dev/model-providers/
- Deploy to a cluster: https://k8s-servant.dev/deployment/
- Source and issues: https://github.com/k8s-servant/k8s-servant
- Release notes: https://github.com/k8s-servant/k8s-servant/releases
Metadata
Release files for k8s-servant 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| k8s_servant-0.4.0.tar.gz | 208.1 kB | With provenance | Details for k8s_servant-0.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| k8s_servant-0.4.0-py3-none-any.whl | Python 3 | none | any | Details for k8s_servant-0.4.0-py3-none-any.whl |
Total release size: 346.5 kB
Release files / k8s_servant-0.4.0.tar.gz
| Download URL | k8s_servant-0.4.0.tar.gz |
|---|---|
| Size | 208.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9e7fc684064b9ec192ba909b9b6591aef67344cff4fe3e77e235104a4094116a
|
|
BLAKE2b-256 checksum How to use checksums |
41fc3f6192ff00ae8b7f921bc6c8a0fa90c6d9999fbcf1223ecbf688668e0f26
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.
Transparency logRelease files / k8s_servant-0.4.0-py3-none-any.whl
| Download URL | k8s_servant-0.4.0-py3-none-any.whl |
|---|---|
| Size | 138.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7354e777a65e601cf6268c3d045f9ccacb85af739e69bd309de48f782ce4d898
|
|
BLAKE2b-256 checksum How to use checksums |
690ab978da20482355cd7788828a1242bf6f2f6456369244b82f32695cb5f6f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.
Transparency logSecurity for k8s-servant 0.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for k8s_servant-0.4.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.