-
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.
chore: update some README files and typos, fixes #36
- Loading branch information
Showing
4 changed files
with
36 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,46 @@ | ||
Quick VMs setup while waiting on a Terraform provider for Truenas Scale VM provisionning | ||
|
||
# Write image to remote block device. | ||
|
||
### On Truenas | ||
#### Export block device | ||
|
||
``` | ||
qemu-nbd --export-name=remote-truenas /path/to/block/device -f raw | ||
``` | ||
|
||
### On my Machine | ||
#### Mount remote device locally | ||
|
||
``` | ||
sudo modprobe nbd | ||
sudo nbd-client -n -N remote-truenas truenas.ip.or.dns | ||
``` | ||
|
||
#### Download flatcar installer | ||
wget https://raw.githubusercontent.com/flatcar-linux/init/flatcar-master/bin/flatcar-install | ||
#### Download flatcar installer | ||
|
||
``` | ||
wget https://raw.githubusercontent.com/flatcar-linux/init/flatcar-master/bin/flatcar-install | ||
chmod +x flatcar-install | ||
``` | ||
|
||
#### Create butane init file | ||
|
||
``` | ||
docker run -i --rm quay.io/coreos/butane:release --pretty --strict < cloud-init/config.yaml > cloud-init/config.ign | ||
``` | ||
|
||
#### Write data | ||
#### Write data | ||
|
||
``` | ||
sudo ./flatcar-install -d /dev/nbd0 -i cloud-init/config.ign | ||
sudo nbd-client -d /dev/nbd0 | ||
rm -f flatcar-install cloud-init/config.ign | ||
``` | ||
|
||
# Build k3s cluster | ||
Use the script `boostrap_k3s.sh` to setup the k3s cluster. | ||
Use the script [bootstrap_k3s.sh](https://github.com/zaggash/homelab/blob/main/infra/k3s_vms/bootstrap_k3s.sh) to setup the k3s cluster. | ||
|
||
# Add Cluster app | ||
Follow instruction on `k3s-cluster-apps/` to sync FluxCD to the cluster. | ||
Follow instruction on the [k3s-cluster-apps folder](https://github.com/zaggash/homelab/tree/main/k3s-cluster-apps) to sync FluxCD to the cluster. | ||
|
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,11 +1,12 @@ | ||
# Create RPI SDcard/SSD | ||
|
||
Build OS for my rpi docker node managed with portainer. | ||
Used as pihole DNS and maybe more. | ||
Build OS for my RPi docker node managed with portainer. | ||
Used as pihole DNS and more. | ||
|
||
FlatCar is not working for me, even when flashing the bootloader. | ||
Hence why I'm using coreos. | ||
Waiting next time I'll have to install it if tings came up stable. | ||
Waiting next time I'll have to install it if things came up stable. | ||
|
||
Repo holding the portainer stacks: | ||
https://github.com/zaggash/portainer-stacks | ||
Folder holding the Portainer stacks: | ||
[portainer-stacks](https://github.com/zaggash/homelab/tree/main/portainer-stacks) | ||
|
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Portainer stacks | ||
|
||
Find here stacks managed by Portainer for standalone applications outside of k3s. | ||
The stacks are still updated by Renovate. |