Giter Club home page Giter Club logo

hyperkube's Introduction

HyperKube with Ceph Common

NOTE! As coreos hyperkube image now includes ceph-common package. However, you can still use this repo for installing custom version of ceph-common.

The image is based on CoreOS HyperKube image with added Ceph common package. It tries to solve the problem the lack of rbd command in CoreOS image. It will help you to run CoreOS + Kubernetes + Ceph. This is a work around based on discussions here: kubernetes/kubernetes#23924

Running

docker run \
   --volume=/:/rootfs:ro \
   --volume=/sys:/sys:rw \                         # necessary to do mount from container
   --volume=/var/lib/docker/:/var/lib/docker:rw \
   --volume=/var/lib/kubelet/:/var/lib/kubelet:rw \
   --volume=/var/run:/var/run:rw \
   --volume=/sbin/modprobe:/sbin/modprobe:ro \     # to skip having to install in container
   --volume=/lib/modules:/lib/modules:ro \         # to make `modprobe rbd` work
   --volume=/etc/ceph:/etc/ceph:ro \               # to copy ceph config from host
   --volume=/dev/rbd0:/rootfs/dev/rbd0:ro \        # workaround for point 3 above
   --net=host \
   --pid=host \
   --privileged=true \
   --name=kubelet \
   -d \
   compass/hyperkube:${K8S_VERSION} \              # image with ceph-common vendored-in
   /hyperkube kubelet \
   --containerized \
   --hostname-override="127.0.0.1" \
   --address="0.0.0.0" \
   --api-servers=http://localhost:8080 \
   --config=/etc/kubernetes/manifests \
   --cluster-dns=10.0.0.10 \
   --cluster-domain=cluster.local \
   --allow-privileged=true --v=2

or with kubelet-wrapper using cloud-config

Environment=KUBELET_ACI=compass/hyperkube
... # the rest of your kubelet-wrapper

hyperkube's People

Contributors

xcompass avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  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.