1
0
mirror of https://github.com/rancher/rke.git synced 2025-05-12 02:20:26 +00:00
Mirror RKE from github
Go to file
Alexander Hughes 9381a255bf Update cert filename validation to *.pem
Users leveraging custom certs directories face errors when deploying
if the directory contains any files that do not end in .pem. This
change adds additional validation to ensure files are *.pem before
attempting further logic.

Signed-off-by: Alexander Hughes <Alexander.Hughes@pm.me>
2021-05-19 08:32:36 -04:00
.github Add stale bot configuration 2020-09-30 18:01:18 +02:00
addons Remove user addons when not present 2020-03-30 21:18:09 +02:00
authz Update to new certs package since latest k8s dropped it 2019-08-19 11:02:43 -07:00
build/bin Remove k8s unit test 2017-12-13 21:37:35 +02:00
cloudprovider Remove references to rancher/types 2020-07-11 23:29:33 -07:00
cluster Encryption update 2021-05-14 10:11:17 -06:00
cmd Merge pull request from superseb/warn_on_snapshot_name_extension 2021-01-26 15:42:10 +01:00
codegen Change data.json source to dev-v2.5 2020-03-27 22:36:22 +01:00
data go generate kdm 2021-04-20 14:38:16 -07:00
dind update to k8s v1.21 and go 1.16 2021-04-30 15:16:59 -07:00
docker update to k8s v1.21 and go 1.16 2021-04-30 15:16:59 -07:00
hosts hosts: mapping Flatcar from the docker host info 2020-09-18 10:15:01 -07:00
k8s Set default http backend to be optional 2020-12-03 14:53:51 -05:00
log Revert "Revert "Encryption Key Rotation Changes"" 2020-12-14 11:51:46 -07:00
metadata rke version v1.3.0-rc0 for master 2021-04-19 08:20:31 -07:00
package Update base images to Ubuntu 20.04 2020-08-07 15:53:08 +02:00
pki Update cert filename validation to *.pem 2021-05-19 08:32:36 -04:00
scripts Add upgrade tests to integration 2020-09-26 10:07:04 +02:00
services Base64 encoding etcd backup S3 accessKey and secretKey and passing them as env variables to rke-tools 2021-04-06 19:40:27 +02:00
templates Remove references to rancher/types 2020-07-11 23:29:33 -07:00
types Encryption update 2021-05-14 10:11:17 -06:00
util Add util command 2021-01-08 18:06:21 +01:00
.dockerignore Initial Commit 2017-10-25 17:02:49 -07:00
.drone.yml Always build all binaries in Drone 2020-08-18 14:13:09 +02:00
.gitignore Change RKE upgrade logic for zero downtime 2020-02-05 16:19:47 -08:00
Dockerfile.dapper update to k8s v1.21 and go 1.16 2021-04-30 15:16:59 -07:00
generate.go Move rke types from rancher/types to ./types 2020-07-11 23:29:33 -07:00
go.mod update to k8s v1.21 and go 1.16 2021-04-30 15:16:59 -07:00
go.sum update to k8s v1.21 and go 1.16 2021-04-30 15:16:59 -07:00
LICENSE Initial Commit 2017-10-25 17:02:49 -07:00
main.go Use go mod to run go generate 2021-02-01 11:06:34 -07:00
Makefile update to k8s v1.21 and go 1.16 2021-04-30 15:16:59 -07:00
README.md Update latest to v1.2.8 2021-05-03 21:42:52 +02:00
vendor.conf Vendor Update 2019-08-21 11:47:42 -07:00
vendor.go Move rke away from kdm vendor 2020-02-24 10:14:25 -07:00

rke

Rancher Kubernetes Engine, an extremely simple, lightning fast Kubernetes installer that works everywhere.

Latest Release

  • v1.2.8 - Read the full release notes.

Download

Please check the releases page.

Requirements

Please review the OS requirements for each node in your Kubernetes cluster.

Getting Started

Please refer to our RKE docs for information on how to get started! For cluster config examples, refer to RKE cluster.yml examples

Installing Rancher HA using rke

Please use High Availability (HA) Install 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.

RKE now fetches data.json from https://github.com/rancher/kontainer-driver-metadata. To fetch data.json and compile it in rke, run

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:

RANCHER_METADATA_URL=${URL} rke [commands] [options]

RANCHER_METADATA_URL=${./local/data.json} rke [commands] [options]

RANCHER_METADATA_URL defaults to https://releases.rancher.com/kontainer-driver-metadata/dev-v2.4/data.json.

License

Copyright (c) 2019 Rancher Labs, Inc.

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

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.