k8s-agent
CLI tool for K8sVMGr - Kubernetes VM Manager
Installation
pip install k8s-agent
Quick Start
Authentication
# Login to your K8sVMGr account
k8s-agent login
# Check who you're logged in as
k8s-agent whoami
# Logout
k8s-agent logout
VM Management
# List all VMs
k8s-agent list
# Create a CPU VM
k8s-agent create --cpu 16
# Create a GPU VM
k8s-agent create --gpu 2 --gpu-model A800-80G-R
# Check availability before creating
k8s-agent create --gpu 4 --gpu-model A800-80G-R --check
# Delete a VM
k8s-agent delete <vm-id>
# Force delete (skip backup)
k8s-agent delete <vm-id> --force
VM Inspection
# View VM events
k8s-agent events <vm-id>
# View VM logs
k8s-agent logs <vm-id>
k8s-agent logs <vm-id> --tail 100
# View VM dashboard with visual metrics
k8s-agent dashboard <vm-id>
VM Operations
# Interconnect all running VMs for SSH access
k8s-agent interconnect
Features
- 🔐 OAuth 2.0 Device Flow Authentication - Secure login via web browser
- 📊 Visual Dashboard - Beautiful ASCII charts showing GPU/CPU metrics
- 🚀 VM Lifecycle Management - Create, delete, and monitor VMs
- 📈 Resource Monitoring - Real-time metrics with gauges and sparklines
- 🔗 VM Interconnection - Setup SSH between VMs for distributed computing
- 🎯 Tab Completion - Fast command completion (future feature)
Configuration
k8s-agent stores authentication tokens in ~/.k8s-agent/config.json.
You can override the API URL with the --api-url flag or set the K8S_AGENT_API_URL environment variable.
Requirements
- Python 3.8+
- Access to a K8sVMGr backend instance
Development
# Clone the repository
git clone https://github.com/yourusername/k8s-agent.git
cd k8s-agent
# Install in development mode
pip install -e .
# Run tests
pytest
License
MIT License
Support
For issues and feature requests, please visit: https://github.com/yourusername/k8s-agent/issues
Metadata
Release files for k8s-agent 0.3.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 | |
|---|---|---|---|---|
| k8s_agent-0.3.0.tar.gz | 18.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| k8s_agent-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 37.3 kB
Release files / k8s_agent-0.3.0.tar.gz
| Download URL | k8s_agent-0.3.0.tar.gz |
|---|---|
| Size | 18.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8cd442b67a7a7778d9ef51674d56a7c26bf8bd67633dd78ee14f7f344a72347f
|
|
BLAKE2b-256 checksum How to use checksums |
e72161aab882e4666da5cbbd4eae86f39ed57e3921fb5577c25dfec8760beb71
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.6
|
Release files / k8s_agent-0.3.0-py3-none-any.whl
| Download URL | k8s_agent-0.3.0-py3-none-any.whl |
|---|---|
| Size | 19.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
672cedfae9b964e81d4eba01fc6a5f1bef12bb592135c3aa78ca53550f3794ab
|
|
BLAKE2b-256 checksum How to use checksums |
1254a7934caf01ca33f895d39586d376a4ed9a7c1d20afa52eb599dd0594ea06
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.6
|
Security for k8s-agent 0.3.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.