Skip to content

Commit

Permalink
Merge pull request #51 from NicoWde/master
Browse files Browse the repository at this point in the history
Enhancing 'Hetzner example' docs
  • Loading branch information
xunleii authored Apr 28, 2021
2 parents 2d7819c + c83c02e commit d7952a2
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion examples/hcloud-k3s/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,27 @@

Configuration in this directory creates a k3s cluster resources including network, subnet and instances.

## Preparations

Make sure your [SSH-Agent](https://docs.github.com/en/github/authenticating-to-github/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent#adding-your-ssh-key-to-the-ssh-agent) is running (it is neccessary for Terraform), and if not, start it and add your ssh-key:

```bash
# example, with active ssh-agent
$ ssh-add -L
> ssh-rsa AAAAB4NzaC4Xc2FA2A...Me3IABDICy+WANsg5Mc= /home/user/.ssh/id_rsa
> ssh-rsa AAAAB4NzaC4Xc2FA2A...VpJaZ5EawNpQaPvqEw== /home/user/.ssh/another_user_key
# if nothing is loaded
# start the ssh-agent in the background
$ eval `ssh-agent -s`
> Agent pid 59566
# add your SSH private key to the ssh-agent
$ ssh-add ~./ssh/path-to-sshkey
> Identity added: ~./ssh/path-to-sshkey (~./ssh/path-to-sshkey)
```

## Usage

To run this example you need to execute:
After checking/enabling ssh-agent, to run this example you need to execute:

```bash
$ terraform init
Expand Down

0 comments on commit d7952a2

Please sign in to comment.