1
0
mirror of https://github.com/rancher/rke.git synced 2025-07-19 17:50:16 +00:00
rke/README.md

72 lines
2.9 KiB
Markdown
Raw Normal View History

# rke
2017-10-26 00:02:49 +00:00
2022-06-21 16:06:06 +00:00
*This file is auto-generated from README-template.md, please make any changes there.*
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
2022-11-22 21:14:20 +00:00
* v1.4
2023-07-13 17:39:57 +00:00
* v1.4.7 - Read the full release [notes](https://github.com/rancher/rke/releases/tag/v1.4.7).
2022-06-21 16:06:06 +00:00
* v1.3
2023-07-13 17:39:57 +00:00
* v1.3.22 - Read the full release [notes](https://github.com/rancher/rke/releases/tag/v1.3.22).
2022-06-21 16:06:06 +00:00
* v1.2
2022-11-22 21:14:20 +00:00
* v1.2.23 - Read the full release [notes](https://github.com/rancher/rke/releases/tag/v1.2.23).
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
2023-07-29 08:27:22 +00:00
Please review the [Requirements](https://rke.docs.rancher.com/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
2023-07-29 08:27:22 +00:00
Please refer to our [RKE docs](https://rke.docs.rancher.com/) for information on how to get started!
For cluster config examples, refer to [RKE cluster.yml examples](https://rke.docs.rancher.com/example-yamls)
2018-03-28 19:46:28 +00:00
## Installing Rancher HA using rke
2018-05-09 17:39:19 +00:00
2023-07-29 08:27:22 +00:00
Please use [Setting up a High-availability RKE Kubernetes Cluster](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/kubernetes-cluster-setup/rke1-for-rancher) to install Rancher in a high-availability configuration.
## 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).
2023-07-29 08:27:22 +00:00
Read [codegen/codegen.go](./codegen/codegen.go) to check the default location for fetching `data.json`. You can override the default location as seen in the example below:
2020-02-13 22:55:19 +00:00
```bash
2023-07-29 08:27:22 +00:00
# Fetch data.json from default location
2020-02-13 22:55:19 +00:00
go generate
2023-07-29 08:27:22 +00:00
# Fetch data.json from URL using RANCHER_METADATA_URL
2020-02-13 22:55:19 +00:00
RANCHER_METADATA_URL=${URL} go generate
2023-07-29 08:27:22 +00:00
# Use data.json from local file
2020-02-13 22:55:19 +00:00
RANCHER_METATDATA_URL=./local/data.json go generate
# Compile RKE
make
```
2023-07-29 08:27:22 +00:00
To override RANCHER_METADATA_URL at runtime, populate the environment variable when running rke CLI. For example:
2020-02-13 22:55:19 +00:00
```bash
RANCHER_METADATA_URL=${URL} rke [commands] [options]
RANCHER_METADATA_URL=${./local/data.json} rke [commands] [options]
2020-02-13 22:55:19 +00:00
```
2017-10-26 00:02:49 +00:00
## License
2023-07-29 08:27:22 +00:00
Copyright © 2017 - 2023 SUSE LLC
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
2023-07-29 08:27:22 +00:00
http://www.apache.org/licenses/LICENSE-2.0
2017-10-26 00:02:49 +00:00
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.