mirror of
https://github.com/cirruslabs/orchard.git
synced 2026-09-30 03:51:43 +02:00
Resources support (#63)
* Resources support * Ability to provide VM and worker resources via the CLI * orchard dev: always listen on :6120 * orchard dev: support --resources * REST API: provide resource defaults when creating VM * OpenAPI: document "resources" field * orchard dev: serve Swagger API documentation on /v1/ * Integration guide
This commit is contained in:
@@ -258,6 +258,14 @@ components:
|
||||
name:
|
||||
type: string
|
||||
description: Node name
|
||||
resources:
|
||||
type: object
|
||||
description: |
|
||||
Dictionary that maps the resource name to the
|
||||
amount of this resource provided by the worker
|
||||
for running VMs.
|
||||
additionalProperties:
|
||||
type: integer
|
||||
VM:
|
||||
title: Virtual Machine
|
||||
type: object
|
||||
@@ -265,6 +273,14 @@ components:
|
||||
name:
|
||||
type: string
|
||||
description: VM name
|
||||
resources:
|
||||
type: object
|
||||
description: |
|
||||
Dictionary that maps the resource name to the
|
||||
amount of this resource required on the worker
|
||||
for this VM to be scheduled
|
||||
additionalProperties:
|
||||
type: integer
|
||||
Events:
|
||||
title: Events
|
||||
type: object
|
||||
|
||||
Reference in New Issue
Block a user