1
0
mirror of https://github.com/rancher/rke.git synced 2025-07-30 22:44:50 +00:00
Mirror RKE from github
Go to file
Jiaqi Luo 2e767c8c28 This PR fixes the issue that kube-apiserver does not restart in all CP nodes after changing the Pod Security Admission Configuration.
A new environment variable RKE_ADMISSION_CONFIG_CHECKSUM whose value is the checksum of the content of the admission configuration file is added to the env list that is set in the `kube-apiserver` container configuration, so any changes in the admission configuration file will result in a change in the container's configuration. RKE will detect the changes during reconciliation and therefore restart the kube-apiserver container on all CP nodes. The upgrade cadence is thresholded by the upgrade strategy in the cluster.

This PR also drops the unnecessary appending of env var to the cluster object which shows in the cluster.rkestate file.

Signed-off-by: Jiaqi Luo <6218999+jiaqiluo@users.noreply.github.com>
2024-04-09 14:24:17 -07:00
.github Simplify update README workflow 2024-01-10 11:40:06 +01:00
addons
authz
cloudprovider
cluster This PR fixes the issue that kube-apiserver does not restart in all CP nodes after changing the Pod Security Admission Configuration. 2024-04-09 14:24:17 -07:00
cmd This PR fixes the issue that kube-apiserver does not restart in all CP nodes after changing the Pod Security Admission Configuration. 2024-04-09 14:24:17 -07:00
codegen go generate 2024-04-05 10:47:21 +05:30
data go generate 2024-04-05 10:47:21 +05:30
dind
docker
docs
hosts
k8s
log
metadata
pki
scripts
services
templates
types Add ACI CNI 6041 variables 2024-03-01 04:27:27 -08:00
util
.dockerignore
.drone.yml
.droneignore
.gitignore
.golangci.json
CODEOWNERS
Dockerfile.dapper
generate.go
go.mod Merge branch 'release/v1.5.6' into backport_v1.5.6 2024-03-07 17:35:34 -06:00
go.sum go generate 2024-03-07 17:36:35 -06:00
LICENSE
main.go
Makefile
README-template.md
README.md remove v1.3 line from readme 2024-03-08 15:06:14 -06:00
vendor.go

rke

This file is auto-generated from README-template.md, please make any changes there.

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

Latest Release

  • v1.5
    • v1.5.6 - Read the full release notes.
  • v1.4
    • v1.4.16 - Read the full release notes.

Download

Please check the releases page.

Requirements

Please review the 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 Setting up a High-availability RKE Kubernetes Cluster 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.

Read codegen/codegen.go to check the default location for fetching data.json. You can override the default location as seen in the example below:

# Fetch data.json from default location
go generate

# Fetch data.json from URL using RANCHER_METADATA_URL
RANCHER_METADATA_URL=${URL} go generate

# Use data.json from local file
RANCHER_METATDATA_URL=./local/data.json go generate

# Compile RKE
make

To override RANCHER_METADATA_URL at 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]

License

Copyright © 2017 - 2023 SUSE LLC 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.