Advanced installations of k3OS using config files
Now, we are ready to learn how to use config files to install k3OS; for this, you need a public GitHub repository where you can push these files. Before creating a config.yaml
file to install k3OS, let's understand the different sections of this file. You are going to need a file for your master node and one for your agent node.
k3OS config file sections
Let's begin with an explanation of the sections to configure the host. These are as follows:
- Hostname section:
hostname: master
Here is where you set the hostname – in this case, master
.
- SSH section:
ssh_authorized_keys: - ssh-rsa YOUR_KEY
This section is used to set the default SSH public key that can access the node using SSH. You have to replace YOUR_KEY
with your own public key.
- Write files section:
write_files: - path: /var/lib/connman/default.config content: |- ...