-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from grycap/asanchez-dev
Minor changes. Fixed deployments list button
- Loading branch information
Showing
6 changed files
with
71 additions
and
326 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,217 +0,0 @@ | ||
tosca_definitions_version: tosca_simple_yaml_1_0 | ||
imports: | ||
- grycap_custom_types: https://raw.githubusercontent.com/grycap/tosca/main/custom_types.yaml | ||
description: > | ||
Deploy a compute node getting the IP and SSH credentials to access via ssh | ||
with an extra HD disk. | ||
metadata: | ||
template_name: VM | ||
template_version: 1.1.0 | ||
template_author: Miguel Caballer | ||
creation_date: 2020-09-08T00:00:00.000Z | ||
display_name: Deploy a VM | ||
icon: images/vm-icon-disk.png | ||
tag: VM | ||
order: 1 | ||
tabs: | ||
VM Data: | ||
- num_cpus | ||
- mem_size | ||
- disk_size | ||
- num_instances | ||
- storage_size | ||
- mount_path | ||
- ports | ||
GPU Data: .*gpu.* | ||
childs: | ||
- docker.yaml | ||
- galaxy.yaml | ||
- users.yml | ||
- ssh_keys.yml | ||
- proxy_host.yaml | ||
- minio_compose.yaml | ||
- nvidia.yml | ||
- ansible_tasks.yml | ||
- ssh_oidc.yaml | ||
- noderedvm.yaml | ||
- cernvmfs.yaml | ||
- image-service.yaml | ||
- ai4eoscvm.yaml | ||
- mlflowvm.yaml | ||
- wget.yml | ||
- sgde.yaml | ||
- dydns_egi_update_vm.yml | ||
- flowfuse.yaml | ||
infra_name: jupyter_c9a1f2bba6932c40e79b0e7498319e1ccb714786741c49522630b4fb52026f72 | ||
topology_template: | ||
inputs: | ||
num_cpus: | ||
type: integer | ||
description: Number of virtual cpus for the VM | ||
default: 1 | ||
constraints: | ||
- valid_values: | ||
- 1 | ||
- 2 | ||
- 4 | ||
- 8 | ||
- 16 | ||
- 32 | ||
- 64 | ||
mem_size: | ||
type: scalar-unit.size | ||
description: Amount of memory for the VM | ||
default: 2 GB | ||
constraints: | ||
- valid_values: | ||
- 2 GB | ||
- 4 GB | ||
- 8 GB | ||
- 16 GB | ||
- 32 GB | ||
- 64 GB | ||
- 128 GB | ||
- 256 GB | ||
- 512 GB | ||
disk_size: | ||
type: scalar-unit.size | ||
description: Size of the root disk of the WNs | ||
default: 20 GB | ||
constraints: | ||
- valid_values: | ||
- 20 GB | ||
- 50 GB | ||
- 100 GB | ||
- 200 GB | ||
num_instances: | ||
type: integer | ||
description: Number of VMs to be spawned | ||
default: 1 | ||
storage_size: | ||
type: scalar-unit.size | ||
description: Size of the extra HD added to the instance (Set 0 if disk is not needed) | ||
default: 0 GB | ||
constraints: | ||
- valid_values: | ||
- 0 GB | ||
- 10 GB | ||
- 20 GB | ||
- 50 GB | ||
- 100 GB | ||
- 200 GB | ||
- 500 GB | ||
- 1 TB | ||
- 2 TB | ||
- 10 TB | ||
- 20 TB | ||
- 40 TB | ||
- 100 TB | ||
mount_path: | ||
type: string | ||
description: Path to mount the extra disk | ||
default: /mnt/disk | ||
num_gpus: | ||
type: integer | ||
description: Number of GPUs to assing to this VM | ||
default: 1 | ||
constraints: | ||
- valid_values: | ||
- 0 | ||
- 1 | ||
- 2 | ||
- 3 | ||
- 4 | ||
gpu_vendor: | ||
type: string | ||
description: GPU Vendor | ||
default: | ||
constraints: | ||
- valid_values: | ||
- | ||
- NVIDIA | ||
- AMD | ||
gpu_model: | ||
type: string | ||
description: GPU Model | ||
default: | ||
ports: | ||
type: map | ||
entry_schema: | ||
type: PortSpec | ||
description: | | ||
List of ports to be Opened in the Cloud site (eg. 22,80,443,2000:2100). | ||
You can also include the remote CIDR (eg. 8.8.0.0/24). | ||
default: | ||
ssh_port: | ||
source: 22 | ||
protocol: tcp | ||
image: | ||
type: string | ||
description: Image to be used for the VM | ||
default: ost://horsemen.i3m.upv.es/79095fa5-7baf-493c-9514-e24d52dd1527 | ||
node_templates: | ||
simple_node: | ||
type: tosca.nodes.indigo.Compute | ||
capabilities: | ||
endpoint: | ||
properties: | ||
network_name: PUBLIC | ||
ports: | ||
get_input: ports | ||
scalable: | ||
properties: | ||
count: | ||
get_input: num_instances | ||
host: | ||
properties: | ||
disk_size: | ||
get_input: disk_size | ||
num_cpus: | ||
get_input: num_cpus | ||
mem_size: | ||
get_input: mem_size | ||
num_gpus: | ||
get_input: num_gpus | ||
gpu_vendor: | ||
get_input: gpu_vendor | ||
gpu_model: | ||
get_input: gpu_model | ||
os: | ||
properties: | ||
image: | ||
get_input: image | ||
interfaces: | ||
Standard: | ||
configure: | ||
implementation: >- | ||
https://raw.githubusercontent.com/grycap/tosca/main/artifacts/dummy.yml | ||
requirements: | ||
- local_storage: | ||
node: my_block_storage | ||
capability: tosca.capabilities.Attachment | ||
relationship: | ||
type: tosca.relationships.AttachesTo | ||
properties: | ||
location: | ||
get_input: mount_path | ||
device: hdb | ||
my_block_storage: | ||
type: tosca.nodes.BlockStorage | ||
properties: | ||
size: | ||
get_input: storage_size | ||
outputs: | ||
node_ip: | ||
value: | ||
get_attribute: | ||
- simple_node | ||
- public_address | ||
- 0 | ||
node_creds: | ||
value: | ||
get_attribute: | ||
- simple_node | ||
- endpoint | ||
- credential | ||
- 0 | ||
|
||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.