Skip to content

Latest commit

Β 

History

History
31 lines (23 loc) Β· 969 Bytes

File metadata and controls

31 lines (23 loc) Β· 969 Bytes

πŸ–₯️ kthcloud/host-api

An API installed locally on kthcloud servers. This API exposed the host's information to the kthcloud platform, such as CPU, memory, disk, and GPU information. The API is installed automatically when the host is provisioned, see kthcloud/ansible-setup-host for more information.

🌐 API

GET /capacities

Exposes the host's CPU, memory, and disk information.

GET /gpuInfo

Exposes the host's GPU information, including slot, bus, vendor, vendor ID, and device ID.

GET /status

Exposes the host's status, such as the temperature and usage of CPU, RAM and network.

GET /nodeInfo

Exposes the host's node information, such as the zone.

Usage

πŸš€ Run the API

Install the dependencies and start the API.

$ bun install

Start the API, either in production or development mode.
Development mode will use mock data.

$ bun start
$ bun run dev