Skip to content

Commit

Permalink
chore: update some README files and typos, fixes #36
Browse files Browse the repository at this point in the history
  • Loading branch information
zaggash committed Feb 3, 2023
1 parent 87b1a6b commit 656a958
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 12 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@

---

- Scripts and Configs to boostrap node OS.
- [Scripts and Configs to boostrap node OS.](https://github.com/zaggash/homelab/tree/main/infra)

- FluxCD k3s repo to boostrap cluster apps.
- [FluxCD k3s repo to boostrap cluster apps.](https://github.com/zaggash/homelab/tree/main/k3s-cluster-apps)

- [Portainer stacks for standalone applications.](https://github.com/zaggash/homelab/tree/main/portainer-stacks)
27 changes: 22 additions & 5 deletions infra/k3s_vms/README.md
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.

11 changes: 6 additions & 5 deletions infra/rpi4/README.md
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)

4 changes: 4 additions & 0 deletions portainer-stacks/README.md
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.

0 comments on commit 656a958

Please sign in to comment.