From 2b71f039741df758cdb2b6bc2f9d7fb3fbc33017 Mon Sep 17 00:00:00 2001 From: Jennifer Travinski Date: Tue, 26 Oct 2021 18:05:52 -0400 Subject: [PATCH] Added config for rke2-agent service 2.5 --- .../resources/k8s-tutorials/ha-rke2/_index.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/content/rancher/v2.5/en/installation/resources/k8s-tutorials/ha-rke2/_index.md b/content/rancher/v2.5/en/installation/resources/k8s-tutorials/ha-rke2/_index.md index 776dbff0b96..944cc4c2911 100644 --- a/content/rancher/v2.5/en/installation/resources/k8s-tutorials/ha-rke2/_index.md +++ b/content/rancher/v2.5/en/installation/resources/k8s-tutorials/ha-rke2/_index.md @@ -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