Added config for rke2-agent service 2.6

This commit is contained in:
Jennifer Travinski
2021-10-26 18:31:18 -04:00
parent 2b71f03974
commit b6a5f8f49d
@@ -26,7 +26,14 @@ If you do not specify a pre-shared secret, RKE2 will generate one and place it a
To avoid certificate errors with the fixed registration address, you should launch the server with the tls-san parameter set. This option adds an additional hostname or IP as a Subject Alternative Name in the server's TLS cert, and it can be specified as a list if you would like to access via both the IP and the hostname.
Create the RKE2 config file at `/etc/rancher/rke2/config.yaml` using the following example:
First, you must configure the path to enable the rke2-agent service as follows:
```
mkdir -p /etc/rancher/rke2/
vim /etc/rancher/rke2/config.yaml
```
Next, create the RKE2 config file at `/etc/rancher/rke2/config.yaml` using the following example:
```
token: my-shared-secret