From 4dfa6d7836ae62c205bbe173dbb84649b478cbf6 Mon Sep 17 00:00:00 2001 From: Joe Monk Date: Sat, 14 Sep 2024 01:27:12 +0100 Subject: [PATCH] Use /data, add new image --- .../local-path-provisioner/helmrelease.yaml | 2 +- kairos-config.yaml | 40 +++++++++++++++++++ readme.md | 4 ++ 3 files changed, 45 insertions(+), 1 deletion(-) diff --git a/clusters/kairos/local-path-provisioner/helmrelease.yaml b/clusters/kairos/local-path-provisioner/helmrelease.yaml index 6abaa9f..f49ea45 100644 --- a/clusters/kairos/local-path-provisioner/helmrelease.yaml +++ b/clusters/kairos/local-path-provisioner/helmrelease.yaml @@ -22,6 +22,6 @@ spec: nodePathMap: [ { node: DEFAULT_PATH_FOR_NON_LISTED_NODES, - paths: [/usr/local] + paths: [/data] } ] \ No newline at end of file diff --git a/kairos-config.yaml b/kairos-config.yaml index 1ffaba0..ebb1f97 100644 --- a/kairos-config.yaml +++ b/kairos-config.yaml @@ -1,5 +1,12 @@ #cloud-config +install: + poweroff: true + extra-dirs-rootfs: + - /data + image: "docker:gitea.home.joemonk.co.uk/joe/kairos-custom:1" + + users: - name: "kairos" passwd: "kairos" @@ -23,3 +30,36 @@ stages: dns: nameservers: - 192.168.1.1 + - name: "Set samba config" + files: + - path: /etc/samba/smb.conf + permissions: 0644 + owner: 0 + group: 0 + content: | + [global] + workgroup = WORKGROUP + server role = standalone server + map to guest = bad user + + ####### Share Definitions ####### + [data] + comment = Kairos File Server Share + path = /data + browseable = yes + writeable = yes + read only = no + guest ok = yes + force user = root + force group = root + public = yes + + create mask = 777 + force create mode = 777 + security mask = 777 + force security mode = 777 + + directory mask = 0777 + force directory mode = 0777 + directory security mask = 0777 + force directory security mode = 0777 \ No newline at end of file diff --git a/readme.md b/readme.md index b391825..9e8febd 100644 --- a/readme.md +++ b/readme.md @@ -13,6 +13,8 @@ - Burn to usb - Boot from usb, live install and go to the config webui - Add the public keys to the config (from ~/.ssh - `ssh-keygen -t ed25519 -C "joemonk@hotmail.co.uk"`) +- Update the image at https://gitea.home.joemonk.co.uk/joe/kairos-custom to the latest kairos image and build it +- Update the image in the kairos-config to reflect that build - Put the kairos-config in, check the shutdown button and let it install - Remove the usb, ssh in with using the specific private key (i.e. from ~/.ssh - `ssh -i ./kairos kairos@192.168.1.101` or add the following to ~/.ssh/config to just use `ssh 192.168.1.101`) @@ -23,6 +25,8 @@ Host 192.168.1.101 IdentityFile ~/.ssh/kairos ``` +## Adding additional + ## Kubectl SSH into the server, and grab the kubeconfig with `sudo cat /etc/rancher/k3s/k3s.yaml`.