threefoldtech / tfgrid-sdk-go

Apache License 2.0
2 stars 4 forks source link

support v4 deployments in tfrobot #1225

Closed rawdaGastan closed 1 month ago

rawdaGastan commented 1 month ago

Description

Related Issues

example

node_groups:
  - name: group_rawda
    free_cpu: 2
    free_mru: 32
    nodes_count: 1

vms:
  - name: examplevm
    vms_count: 2
    cpu: 2
    mem: 2
    node_group: group_rawda
    flist: https://hub.grid.tf/tf-official-apps/base:latest.flist
    entry_point: /sbin/zinit init
    ssh_key: rawda

image

Running build
5:17PM INF starting peer session=tf-2505206 twin=81
5:17PM INF validating configuration file
5:17PM INF done validating configuration file
5:17PM INF Running deployment Node group=group_rawda
5:17PM INF Filter nodes Node group=group_rawda
5:17PM WRN ygg ip, mycelium ip and public IP options are false. Setting mycelium IP to true vms group=examplevm
5:17PM WRN ygg ip, mycelium ip and public IP options are false. Setting mycelium IP to true vms group=examplevm
5:17PM INF Starting mass deployment Node group=group_rawda
5:17PM INF Done deploying Node group=group_rawda
5:17PM INF Loading deployments
ok:
    group_rawda:
        - name: examplevm0
          network_name: examplevm0_network
          public_ip4: ""
          public_ip6: ""
          ygg_ip: ""
          mycelium_ip: 5e4:e2ca:fdcd:d20f:ff0f:d7fa:3d7c:ddda
          ip: 10.20.2.2
          mounts: []
          node_id: 259
          contract_id: 162742
        - name: examplevm1
          network_name: examplevm1_network
          public_ip4: ""
          public_ip6: ""
          ygg_ip: ""
          mycelium_ip: 42c:2c15:daa:57d0:ff0f:3bb3:ffe8:2955
          ip: 10.20.2.2
          mounts: []
          node_id: 259
          contract_id: 162743

5:17PM INF Deployment took 33.661107543s