Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/imikushin/rancheros-k8s

Run Kubernetes cluster on RancherOS
https://github.com/imikushin/rancheros-k8s

Last synced: about 2 months ago
JSON representation

Run Kubernetes cluster on RancherOS

Awesome Lists containing this project

README

        

# Kubernetes on RancherOS (take 2)

TODO: write something about it.

## Launch

We'll launch Kubernetes on RancherOS on Amazon EC2.

Choose rancheros-v0.3.1-hvm-1 image.

Configure Instance Details -> Advanced Details

Enter User data. Use either:
```yml
#cloud-config
rancher:
environment:
ETCD_DISCOVERY:
FLANNEL_NETWORK:
K8S_MASTER_PORT: 8080
K8S_PORTAL_NET: 10.100.0.0/16
services_include:
- https://raw.githubusercontent.com/imikushin/rancheros-k8s/master/k8s-common.yml: true
- https://raw.githubusercontent.com/imikushin/rancheros-k8s/master/k8s-master.yml: true
```
or:
```yml
#cloud-config
rancher:
environment:
ETCD_DISCOVERY:
FLANNEL_NETWORK:
services_include:
- https://raw.githubusercontent.com/imikushin/rancheros-k8s/master/k8s-common.yml: true
- https://raw.githubusercontent.com/imikushin/rancheros-k8s/master/k8s-minion.yml: true
```
as a template.

Replace `` with a real **NEW** discovery URL for your cluster, e.g.
`https://discovery.etcd.io/daa02a8fafee1519ea54795a14965d3c`

Replace `` with a CIDR range for flannel overlay network. This CIDR should not overlap
with any existing network you are using, e.g. `10.255.0.0/16`

**Every time** you recreate your cluster, **get a new etcd discovery URL** for use in your instances' cloud-config

curl "https://discovery.etcd.io/new?size=1"

**WARNING**: In case you try to reuse this URL for another cluster, your `etcd` nodes will try to become
peers in another (possibly dead) cluster.

------------------
Copyright (c) 2015 [Ivan Mikushin](https://github.com/imikushin)