Added config for rke2-agent service 2.5

This commit is contained in:
Jennifer Travinski
2021-10-26 18:05:52 -04:00
parent b0028b63cf
commit 2b71f03974
@@ -29,7 +29,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. 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 token: my-shared-secret