2018-01-26 16:40:11 +00:00
# rke
2017-10-26 00:02:49 +00:00
2017-11-30 03:13:41 +00:00
Rancher Kubernetes Engine, an extremely simple, lightning fast Kubernetes installer that works everywhere.
2017-10-26 00:02:49 +00:00
2020-11-24 20:01:31 +00:00
## Latest Release
2021-07-28 18:41:24 +00:00
* v1.2.11 - Read the full release [notes ](https://github.com/rancher/rke/releases/tag/v1.2.11 ).
2020-11-24 20:01:31 +00:00
2017-11-30 03:13:41 +00:00
## Download
2017-10-26 00:02:49 +00:00
2017-11-30 03:13:41 +00:00
Please check the [releases ](https://github.com/rancher/rke/releases/ ) page.
2017-10-26 00:02:49 +00:00
2017-11-30 03:13:41 +00:00
## Requirements
2017-12-13 16:26:27 +00:00
2019-09-10 13:18:23 +00:00
Please review the [OS requirements ](https://rancher.com/docs/rke/latest/en/os/ ) for each node in your Kubernetes cluster.
2017-12-13 16:26:27 +00:00
## Getting Started
2017-10-26 00:02:49 +00:00
2019-09-10 13:18:23 +00:00
Please refer to our [RKE docs ](https://rancher.com/docs/rke/latest/en/ ) for information on how to get started!
For cluster config examples, refer to [RKE cluster.yml examples ](https://rancher.com/docs/rke/latest/en/example-yamls/ )
2018-03-28 19:46:28 +00:00
2019-03-05 16:34:40 +00:00
## Installing Rancher HA using rke
2018-05-09 17:39:19 +00:00
2019-03-05 16:34:40 +00:00
Please use [High Availability (HA) Install ](https://rancher.com/docs/rancher/v2.x/en/installation/ha/ ) to install Rancher in a high-availability configuration.
2018-04-13 16:06:09 +00:00
2019-09-10 13:18:23 +00:00
## Building
RKE can be built using the `make` command, and will use the scripts in the `scripts` directory as subcommands. The default subcommand is `ci` and will use `scripts/ci` . Cross compiling can be enabled by setting the environment variable `CROSS=1` . The compiled binaries can be found in the `build/bin` directory. Dependencies are managed by Go modules and can be found in [go.mod ](https://github.com/rancher/rke/blob/master/go.mod ).
2020-02-13 22:55:19 +00:00
RKE now fetches `data.json` from https://github.com/rancher/kontainer-driver-metadata. To fetch data.json and compile it in rke, run
```bash
go generate
# Change RANCHER_METADATA_URL to an external URL instead of using https://releases.rancher.com/kontainer-driver-metadata/dev-v2.4/data.json by default
RANCHER_METADATA_URL=${URL} go generate
# Or load it from local file
RANCHER_METATDATA_URL=./local/data.json go generate
# Compile RKE
make
```
To specify RANCHER_METADATA_URL in runtime, populate the environment variable when running rke CLI. For example:
```bash
RANCHER_METADATA_URL=${URL} rke [commands] [options]
2021-01-15 20:41:10 +00:00
RANCHER_METADATA_URL=${./local/data.json} rke [commands] [options]
2020-02-13 22:55:19 +00:00
```
`RANCHER_METADATA_URL` defaults to `https://releases.rancher.com/kontainer-driver-metadata/dev-v2.4/data.json` .
2017-10-26 00:02:49 +00:00
## License
2018-01-26 16:40:11 +00:00
2021-05-27 09:46:46 +00:00
Copyright (c) 2021 [Rancher Labs, Inc. ](http://rancher.com )
2017-10-26 00:02:49 +00:00
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
[http://www.apache.org/licenses/LICENSE-2.0 ](http://www.apache.org/licenses/LICENSE-2.0 )
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.