1
0
mirror of https://github.com/rancher/rke.git synced 2025-04-27 19:25:44 +00:00
Mirror RKE from github
Go to file
2017-12-05 13:20:10 -08:00
.github Add issue template 2017-12-05 13:20:10 -08:00
addons Add user-configurable images 2017-12-05 20:34:54 +02:00
cluster Fix bug in setting service defaults 2017-12-05 21:44:17 +02:00
cmd Add user-configurable images 2017-12-05 20:34:54 +02:00
docker Add host connectivity and Docker version check 2017-12-04 23:15:33 +01:00
hosts Add user-configurable images 2017-12-05 20:34:54 +02:00
k8s Warn not fatal if deleted host is not found 2017-11-30 23:16:58 +02:00
network Add user-configurable images 2017-12-05 20:34:54 +02:00
package Change helper images to official rancher images 2017-11-29 03:35:18 +02:00
pki Add user-configurable images 2017-12-05 20:34:54 +02:00
scripts enable cross build 2017-11-14 15:24:48 -08:00
services Merge pull request #105 from galal-hussein/fix_centos_kubelet 2017-12-05 20:58:54 +02:00
vendor Update types/norman 2017-12-05 10:29:54 -07:00
.dockerignore Initial Commit 2017-10-25 17:02:49 -07:00
.drone.yml Initial Commit 2017-10-25 17:02:49 -07:00
.gitignore Deploy kube config file locally for admin 2017-11-06 19:40:19 +02:00
cluster.yml Add user-configurable images 2017-12-05 20:34:54 +02:00
Dockerfile.dapper add output folder 2017-11-15 10:55:36 -08:00
LICENSE Initial Commit 2017-10-25 17:02:49 -07:00
main.go update version to v0.0.8-dev 2017-12-05 20:56:21 +02:00
Makefile Initial Commit 2017-10-25 17:02:49 -07:00
README.md Copyright date 2017-12-04 23:55:29 -07:00
vendor.conf Update types/norman 2017-12-05 10:29:54 -07:00

rke

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

Download

Please check the releases page.

Requirements

  • All cluster nodes should have Docker version 1.12 installed.
  • The SSH user used for node access must be a member of the docker group:
usermod -aG docker <user_name>

Running

Standing up a Kubernetes is as simple as creating a cluster.yml configuration file and and running the command:

./rke up --config cluster.yml
Full cluster.yaml example
---
auth:
  strategy: x509
  options:
    foo: bar
# supported plugins are:
# flannel
# calico
# canal
network:
  plugin: flannel
  options:
    foo: bar

nodes:
  - address: 1.1.1.1
    user: ubuntu
    role: [controlplane, etcd]
  - address: 2.2.2.2
    user: ubuntu
    role: [worker]
  - address: host1.example.com
    user: ubuntu
    role: [worker]
    hostname_override: node3
    internal_address: 192.168.1.6

services:
  etcd:
    image: quay.io/coreos/etcd:latest
  kube-api:
    image: rancher/k8s:v1.8.3-rancher2
    service_cluster_ip_range: 10.233.0.0/18
    extra_args:
      v: 4
  kube-controller:
    image: rancher/k8s:v1.8.3-rancher2
    cluster_cidr: 10.233.64.0/18
    service_cluster_ip_range: 10.233.0.0/18
  scheduler:
    image: rancher/k8s:v1.8.3-rancher2
  kubelet:
    image: rancher/k8s:v1.8.3-rancher2
    cluster_domain: cluster.local
    cluster_dns_server: 10.233.0.3
    infra_container_image: gcr.io/google_containers/pause-amd64:3.0
  kubeproxy:
    image: rancher/k8s:v1.8.3-rancher2

# all addon manifests MUST specify a namespace
addons: |-
    ---
    apiVersion: v1
    kind: Pod
    metadata:
      name: my-nginx
      namespace: default
    spec:
      containers:
      - name: my-nginx
        image: nginx
        ports:
        - containerPort: 80

More details

More information about RKE design, configuration and usage can be found in this blog post.

License

Copyright (c) 2017 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.