fix: update gha config, renovate and README.md

Signed-off-by: Devin Buhl <devin@buhl.casa>
This commit is contained in:
Devin Buhl committed 2023-07-06 08:43:38 -04:00
1 parent fe41cf6ea5
commit 183c827136
6 files changed
+18 -36

No files matched your search

+1 -1
View File
@@ -6,4 +6,4 @@ area/github:
area/kubernetes: area/kubernetes:
- "kubernetes/**/*" - "kubernetes/**/*"
area/templates: area/templates:
- "tmpl/**/*" - "template/**/*"
+1 -1
View File
@@ -15,7 +15,7 @@
- name: area/template - name: area/template
color: "72ccf3" color: "72ccf3"
description: >- description: >-
Changes made in the tmpl directory Changes made in the template directory
# Renovate # Renovate
- name: renovate/ansible - name: renovate/ansible
color: "ffc300" color: "ffc300"
+8 -8
View File
@@ -22,21 +22,21 @@
"schedule": ["every saturday"], "schedule": ["every saturday"],
"flux": { "flux": {
"fileMatch": [ "fileMatch": [
"kubernetes/.+\\.ya?ml$", "kubernetes/.+\\.ya?ml(\\.j2)?$",
"template/templates/kubernetes/.+\\.ya?ml.j2$" "template/templates/kubernetes/.+\\.ya?ml(\\.j2)?$"
] ]
}, },
"helm-values": { "helm-values": {
"fileMatch": [ "fileMatch": [
"kubernetes/.+\\.ya?ml$", "kubernetes/.+\\.ya?ml(\\.j2)?$",
"template/templates/kubernetes/.+\\.ya?ml.j2$" "template/templates/kubernetes/.+\\.ya?ml(\\.j2)?$"
] ]
}, },
"kubernetes": { "kubernetes": {
"fileMatch": [ "fileMatch": [
"ansible/.+\\.ya?ml(\\.j2)?$", "ansible/.+\\.ya?ml(\\.j2)?$",
"kubernetes/.+\\.ya?ml$", "kubernetes/.+\\.ya?ml(\\.j2)?$",
"template/templates/kubernetes/.+\\.ya?ml.j2$" "template/templates/kubernetes/.+\\.ya?ml(\\.j2)?$"
] ]
}, },
"regexManagers": [ "regexManagers": [
@@ -44,8 +44,8 @@
"description": "Process various other dependencies", "description": "Process various other dependencies",
"fileMatch": [ "fileMatch": [
"ansible/.+\\.ya?ml(\\.j2)?$", "ansible/.+\\.ya?ml(\\.j2)?$",
"kubernetes/.+\\.ya?ml$", "kubernetes/.+\\.ya?ml(\\.j2)?$",
"template/templates/kubernetes/.+\\.ya?ml.j2$" "template/templates/kubernetes/.+\\.ya?ml(\\.j2)?$"
], ],
"matchStrings": [ "matchStrings": [
"datasource=(?<datasource>\\S+) depName=(?<depName>\\S+)( registryUrl=(?<registryUrl>\\S+))?\n.*?\"(?<currentValue>.*)\"\n" "datasource=(?<datasource>\\S+) depName=(?<depName>\\S+)( registryUrl=(?<registryUrl>\\S+))?\n.*?\"(?<currentValue>.*)\"\n"
+5 -23
View File
@@ -88,30 +88,14 @@ There is a decent guide [here](https://www.linuxtechi.com/how-to-install-debian-
#### Raspberry Pi / ARM64 #### Raspberry Pi / ARM64
##### Hardware Considerations
If you choose to use a Raspberry Pi for the cluster, it is recommended to have at minimum a Raspberry Pi4 (4GB) and preferably an 8GB model. Additionally, it is also recommended to boot from an external SSD, rather than the SD card. This is supported [natively](https://www.raspberrypi.com/documentation/computers/raspberry-pi.html), however if you have an early Raspberry Pi4, you may need to [update the bootloader](https://www.tomshardware.com/how-to/boot-raspberry-pi-4-usb). If you choose to use a Raspberry Pi for the cluster, it is recommended to have at minimum a Raspberry Pi4 (4GB) and preferably an 8GB model. Additionally, it is also recommended to boot from an external SSD, rather than the SD card. This is supported [natively](https://www.raspberrypi.com/documentation/computers/raspberry-pi.html), however if you have an early Raspberry Pi4, you may need to [update the bootloader](https://www.tomshardware.com/how-to/boot-raspberry-pi-4-usb).
##### Installing the OS According to the documentation [here](https://raspi.debian.net/defaults-and-settings/), after you have flashed the image onto a SSD/NVMe you must mount the drive and do the following.
There is a decent guide [here](https://raspberrytips.com/install-debian-on-raspberry-pi/) on how to get Debian installed on a Raspberry Pi. 1. Edit the `sysconf.txt`
2. Add/change `root_authorized_key` to your desired public SSH key
1. Deviations from that guide, as per [these](https://raspi.debian.net/defaults-and-settings/) instructions. 3. Add/change `root_pw` to your desired root password
4. Add/change `hostname` to your desired hostname
```txt
- Use an SSD instead of an SD Card
- Reinsert the storage media
- Open `sysconf.txt` file
- Add `root_authorized_key`
- Add `root_pw`
- add `hostname`
```
2. (Post install) I would recommend adding a generic user.
```
adduser <username>
```
## 📂 Repository structure ## 📂 Repository structure
@@ -253,8 +237,6 @@ In order to expose services to the internet you will need to create a [Cloudflar
1. Ensure you are able to SSH into your nodes from your workstation using a private SSH key **without a passphrase**. This is how Ansible is able to connect to your remote nodes. 1. Ensure you are able to SSH into your nodes from your workstation using a private SSH key **without a passphrase**. This is how Ansible is able to connect to your remote nodes.
[How to configure SSH key-based authentication](https://www.digitalocean.com/community/tutorials/how-to-configure-ssh-key-based-authentication-on-a-linux-server)
2. Install the Ansible deps 2. Install the Ansible deps
```sh ```sh
@@ -6,7 +6,7 @@ kind: Kustomization
resources: resources:
- github.com/fluxcd/flux2/manifests/install?ref=v2.0.0-rc.5 - github.com/fluxcd/flux2/manifests/install?ref=v2.0.0-rc.5
patches: patches:
# Remove the network policies that does not work with k3s # Remove the default network policies
- patch: |- - patch: |-
$patch: delete $patch: delete
apiVersion: networking.k8s.io/v1 apiVersion: networking.k8s.io/v1
+2 -2
View File
@@ -47,12 +47,12 @@ bootstrap_service_cidr: 10.43.0.0/16
# Node information # Node information
bootstrap_hosts: bootstrap_hosts:
# Use only 1, 3 or more odd master nodes, recommended is 3 # Use only 1, 3 or more odd master nodes, recommended is 3
master: master: []
# - name: kube0 # - name: kube0
# address: # address:
# username: # username:
# password: # password:
worker: worker: []
# - name: kube1 # - name: kube1
# address: # address:
# username: # username: