GithubHelp home page GithubHelp logo

sunilkumarmohanty / resin-kubernetes Goto Github PK

View Code? Open in Web Editor NEW

This project forked from balena-io-experimental/balena-kubernetes

0.0 2.0 0.0 36.93 MB

Run a kubernetes kubelet in a resin.io app

License: Apache License 2.0

Shell 100.00%

resin-kubernetes's Introduction

Multi containers + Kubernetes on Resin.io

THIS IS WORK IN PROGRESS

The application starts a docker-in-docker instance and runs a Kubernetes kubelet.

Based on abresas/multi-container For docker in docker, check jpetazzo/dind.

Description

The Kubernetes project is a cluster management solution by Google. This repo contains a resin.io application that starts a docker-in-docker instance and then runs a Kubernetes node, capable of running arbitrary "pods", that is, groups of containers. Please refer to the Kubernetes documentation to better understand how Kubernetes works.

To run this application, you will need to run a Kubernetes Master node (that serves the Kubernetes API) on another machine, and create a MASTER_IP Environment Variable for this device. After that you can use kubectl to communicate with the Master and assign pods to your devices.

This repo uses a slightly modified version of the Kubernetes hyperkube binary to accomodate for the fact that we are running on ARM devices and we are using rce (Resin.io's version of Docker, soon to be replaced by a regular Docker binary).

We also use Flannel to try to achieve the Kubernetes networking model, but this is not fully functional at the time. You should still be able to run a fully functional cluster over a local network.

Behind the scenes

If you're interested in looking at how this app works, take a look at the Dockerfile and the start.sh script. This script basically initializes a docker (rce) daemon and then starts the Kubernetes node apps as follows:

/hyperkube kubelet --api_servers=http://${MASTER_IP}:8080 --v=1 \
	--address=0.0.0.0 --enable_server --docker-endpoint=$DOCKER_HOST &

/hyperkube proxy --master=http://${MASTER_IP}:8080 --v=1 &

resin-kubernetes's People

Contributors

pcarranzav avatar abresas avatar

Watchers

James Cloos avatar Sunil Kumar Mohanty avatar

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.