mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-09-26 13:08:11 +00:00
Update _index.md
Fixed default install command to match what's shown at https://k3s.io/. Made wording around examples consistent.
This commit is contained in:
@@ -10,25 +10,25 @@ intended only for development and testing environments.
|
|||||||
Installation
|
Installation
|
||||||
------------
|
------------
|
||||||
|
|
||||||
k3s is easy to install. To install the latest version, simply run the following:
|
k3s is easy to install. To install the latest version, simply run:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
curl -sfL https://get.k3s.io
|
curl -sfL https://get.k3s.io | sh -
|
||||||
```
|
```
|
||||||
|
|
||||||
The install script will attempt to download the latest release, to specify a specific
|
The install script will attempt to download the latest release. To specify a specific
|
||||||
version for download we can use the `INSTALL_K3S_VERSION` environment variable, for example:
|
version for download we can use the `INSTALL_K3S_VERSION` environment variable. For example:
|
||||||
```sh
|
```sh
|
||||||
curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=vX.Y.Z-rc1 sh -
|
curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=vX.Y.Z-rc1 sh -
|
||||||
```
|
```
|
||||||
|
|
||||||
To install with a specific flag we can use the `INSTALL_K3S_EXEC`
|
To install with a specific flag we can use the `INSTALL_K3S_EXEC`
|
||||||
environment variable like in this example shown below:
|
environment variable. For example:
|
||||||
```sh
|
```sh
|
||||||
curl -sfL https://get.k3s.io | INSTALL_K3S_EXEC="--no-flannel" sh -
|
curl -sfL https://get.k3s.io | INSTALL_K3S_EXEC="--no-flannel" sh -
|
||||||
```
|
```
|
||||||
|
|
||||||
The installer can also be run without performing downloads by setting `INSTALL_K3S_SKIP_DOWNLOAD=true`, for example:
|
The installer can also be run without performing downloads by setting `INSTALL_K3S_SKIP_DOWNLOAD=true`. For example:
|
||||||
```sh
|
```sh
|
||||||
curl -sfL https://github.com/rancher/k3s/releases/download/vX.Y.Z/k3s -o /usr/local/bin/k3s
|
curl -sfL https://github.com/rancher/k3s/releases/download/vX.Y.Z/k3s -o /usr/local/bin/k3s
|
||||||
chmod 0755 /usr/local/bin/k3s
|
chmod 0755 /usr/local/bin/k3s
|
||||||
|
|||||||
Reference in New Issue
Block a user