logoalt Hacker News

jabrtoday at 8:39 AM1 replyview on HN

There isn't a cli function for adding a connection (independently of adding a new machine/node) yet, but they are in a simple config file (`~/.config/uncloud/config.yaml`) that you can copy or easily create manually for now. It looks like this:

    current_context: default
    contexts:
      default:
        connections:
          - ssh: [email protected]
            ssh_key_file: ~/.ssh/uncloud
          - ssh: [email protected]
            ssh_key_file: ~/.ssh/uncloud
          - ssh: [email protected]
            ssh_key_file: ~/.ssh/uncloud
          - ssh: [email protected]
            ssh_key_file: ~/.ssh/uncloud
And you really just need one entry for typical use. The subsequent entries are only used if the previous node(s) are down.

Replies

psviderskitoday at 10:44 AM

For CI/CD, check out this GitHub Action: https://github.com/thatskyapplication/uncloud-action.

You can either specify one of the machine SSH target in the config.yaml or pass it directly to the 'uc' CLI command, e.g.

uc --connect user@host deploy