mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-04-14 18:35:37 +00:00
Added config for rke2-agent service 2.5
This commit is contained in:
@@ -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.
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user