Skip to content

Commit

Permalink
Add runtimes in reference
Browse files Browse the repository at this point in the history
Signed-off-by: Vitor Savian <[email protected]>
  • Loading branch information
vitorsavian committed Oct 21, 2024
1 parent 96c1fcb commit 9ea2c5a
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion docs/reference/env-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,21 @@ Environment variables which begin with `K3S_` will be preserved for the systemd

Setting `K3S_URL` without explicitly setting an exec command will default the command to "agent".

When running the agent, `K3S_TOKEN` must also be set.
When running the agent, `K3S_TOKEN` must also be set.

:::info Version Gate
Available as of October 2024 releases: v1.28.15+k3s1, v1.29.10+k3s1, v1.30.6+k3s1, v1.31.2+k3s1.

K3s will now use `PATH` to find runtimes, but it's necessary to add the `PATH` within the `k3s.service.env` or `k3s-agent.service.env` if you are using a agent.

This example will add the PATH to `k3s.service.env` in the default directory:

```bash
echo PATH=$PATH >> /etc/systemd/system/k3s.service.env
```

:::warning

`PATH` changes should be done with care to avoid security breaches or attacks.

:::

0 comments on commit 9ea2c5a

Please sign in to comment.