Add additional disks to Kubernetes nodes with Talos Linux
Discover how to enhance your Talos Linux system by incorporating extra storage disks.
This is useful when you want to expand the storage capabilities of your Kubernetes cluster, no matter which storage provisioner you’re using.
talosctl edit machineconfig
.Configuration
This configuration has to be done only on the node where you are mounting the disk.
The configuration will focus mostly on setting this up on a Raspberry Pi. If you are not doing this on a Raspberry Pi, you can just mount the disk and proceed with the configuration.
However, if you are doing it on a Raspberry Pi, you need to prepare the disk first:
-
Connect the disk via USB to your machine.
-
Check the name of the disk with:
1
lsblk
-
Now, you need to wipe the disk completely, including the partition table information on it:
WarningMake sure you do a backup first if the disk is not empty. This will wipe it clean.1
sudo wipefs -a /dev/sdX
-
Now, you need to create a partition of type
XFS
before proceeding. We will usegparted
for this:-
Install
gparted
1 2 3 4 5
# Debian based systems sudo apt install gparted # Arch based systems sudo pacman -S gparted
-
Open
gparted
, select the disk from the dropdown in the top right. -
In the menu, select
Device
->Create Partition Table
->Type GPT
. -
Then, select
Partition
. -
In the menu, leave everything as default, except
File system
->XFS
. -
Click apply and wait for the disk to get partitioned, then you can eject it from the machine.
-
-
Plug the disk on the node you wish to configure, and proceed.
/var/mnt
. If you mount it somewhere else, the configuration will not be successful.Here is the configuration (click to expand):
|
|
If you find this post helpful, please consider supporting the blog. Your contributions help sustain the development and sharing of great content. Your support is greatly appreciated!
Buy Me a Coffee