Skip to content

Commit 29491cb

Browse files
chore: bringing infra flag doc back (#46)
* chore: bringing infra flag doc back documenting `--infra` under the experimental features section. * Update README.md Co-authored-by: Chris Sanders <[email protected]> --------- Co-authored-by: Chris Sanders <[email protected]>
1 parent cd9e06b commit 29491cb

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

README.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,3 +248,58 @@ Once the cluster is deployed you can easily stop and start nodes using the follo
248248
~: helmvm node stop node-0
249249
~: helmvm node start node-0
250250
```
251+
252+
### Creating and applying your infrastructe
253+
254+
HelmVM is capable of applying a directory with Terraform manifests before installing the cluster on top of it. For that you can use the `--infra /path/to/terraform/manifests` flag. Make sure your Terraform `output` has an variable called `nodes`, something like this for a 6 node cluster should suffice (roles can be `controller`, `controller+worker`, or `worker`):
255+
256+
```
257+
output "nodes" {
258+
value = [
259+
{
260+
address = aws_instance.worker_0.public_ip,
261+
role = "controller",
262+
port = 22,
263+
user = "ubuntu",
264+
keyPath = "/home/user/.ssh/mykey.pem"
265+
},
266+
{
267+
address = aws_instance.worker_1.public_ip,
268+
role = "controller",
269+
port = 22,
270+
user = "ubuntu",
271+
keyPath = "/home/user/.ssh/mykey.pem"
272+
},
273+
{
274+
address = aws_instance.worker_2.public_ip,
275+
role = "controller",
276+
port = 22,
277+
user = "ubuntu",
278+
keyPath = "/home/user/.ssh/mykey.pem"
279+
},
280+
{
281+
address = aws_instance.worker_3.public_ip,
282+
role = "worker",
283+
port = 22,
284+
user = "ubuntu",
285+
keyPath = "/home/user/.ssh/mykey.pem"
286+
},
287+
{
288+
address = aws_instance.worker_4.public_ip,
289+
role = "worker",
290+
port = 22,
291+
user = "ubuntu",
292+
keyPath = "/home/user/.ssh/mykey.pem"
293+
},
294+
{
295+
address = aws_instance.worker_5.public_ip,
296+
role = "worker",
297+
port = 22,
298+
user = "ubuntu",
299+
keyPath = "/home/user/.ssh/mykey.pem"
300+
},
301+
]
302+
}
303+
```
304+
305+
You have to provide the SSH port, user, and key so HelmVM can reach the nodes.

0 commit comments

Comments
 (0)