NOTE: UAS and UAI are deprecated in CSM 1.5.2 and will be removed in CSM 1.6
Modify a specific UAI resource specification using the resource_id
of that specification.
cray
command) installed on the above hostcray init
command) to reach the HPE Cray EX System API Gatewaycray auth login
command)To modify a particular resource specification, use a command of the following form:
ncn-m001-cray uas admin config resources update [OPTIONS] RESOURCE_ID
The [OPTIONS]
used by this command are the same options used to create resource specifications.
See Create a UAI Resource Specification and Elements of a UAI for a full description of those options.
Update a UAI resource specification.
The following example changes the CPU and memory limits on a UAI resource specification to 1 CPU and 1GiB, respectively.
ncn-m001-cray uas admin config resources update \
--limit '{"cpu": "1", "memory": "1Gi"}' 85645ff3-1ce0-4f49-9c23-05b8a2d31849
The following example does the same for the CPU and memory requests:
ncn-m001-cray uas admin config resources update \
--request '{"cpu": "1", "memory": "1Gi"}' 85645ff3-1ce0-4f49-9c23-05b8a2d31849