Use /data, add new image

This commit is contained in:
2024-09-14 01:27:12 +01:00
parent 083e0d42bc
commit 4dfa6d7836
3 changed files with 45 additions and 1 deletions

View File

@@ -22,6 +22,6 @@ spec:
nodePathMap: [ nodePathMap: [
{ {
node: DEFAULT_PATH_FOR_NON_LISTED_NODES, node: DEFAULT_PATH_FOR_NON_LISTED_NODES,
paths: [/usr/local] paths: [/data]
} }
] ]

View File

@@ -1,5 +1,12 @@
#cloud-config #cloud-config
install:
poweroff: true
extra-dirs-rootfs:
- /data
image: "docker:gitea.home.joemonk.co.uk/joe/kairos-custom:1"
users: users:
- name: "kairos" - name: "kairos"
passwd: "kairos" passwd: "kairos"
@@ -23,3 +30,36 @@ stages:
dns: dns:
nameservers: nameservers:
- 192.168.1.1 - 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

View File

@@ -13,6 +13,8 @@
- Burn to usb - Burn to usb
- Boot from usb, live install and go to the config webui - 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"`) - 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 - 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`) - 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 IdentityFile ~/.ssh/kairos
``` ```
## Adding additional
## Kubectl ## Kubectl
SSH into the server, and grab the kubeconfig with `sudo cat /etc/rancher/k3s/k3s.yaml`. SSH into the server, and grab the kubeconfig with `sudo cat /etc/rancher/k3s/k3s.yaml`.