Git Product home page Git Product logo

rancheros-k8s's Introduction

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:

#cloud-config
rancher:
  environment:
    ETCD_DISCOVERY: <discovery_url>
    FLANNEL_NETWORK: <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:

#cloud-config
rancher:
  environment:
    ETCD_DISCOVERY: <discovery_url>
    FLANNEL_NETWORK: <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 <discovery_url> with a real NEW discovery URL for your cluster, e.g. https://discovery.etcd.io/daa02a8fafee1519ea54795a14965d3c

Replace <flannel_network> 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

rancheros-k8s's People

Contributors

imikushin avatar

Stargazers

Daniel Bodnar avatar  avatar

Watchers

 avatar

Forkers

rkamudhan

rancheros-k8s's Issues

How to connect ro API from remote clients

Could you please specify for how to get remote access to API for kubectl and other clients? I see no public ports exposed in the services specifications. Also good to know where to look for ca.crt.

Thank you for your work what simplified k8s installation a lot. :-)

Convert services to not use links

INFO[0000] Project [os]: Starting project               
INFO[0000] [0/30] [node-ip]: Starting                   
ERRO[0000] Failed Starting node-ip : Error response from daemon: Conflicting options: host type networking can't be used with links. This would result in undefined behavior 
INFO[0000] [0/30] [etcd-conf]: Starting                 
INFO[0000] [1/30] [etcd-conf]: Started                  
ERRO[0000] Failed to start: node-ip : Error response from daemon: Conflicting options: host type networking can't be used with links. This would result in undefined behavior 
INFO[0000] [1/30] [etcd]: Starting                      
ERRO[0000] Failed Starting etcd : Error response from daemon: Conflicting options: host type networking can't be used with links. This would result in undefined behavior 

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.