Coder Social home page Coder Social logo

docker-rbd's Introduction

Ceph RBD server pod for OpenShift testing.

Making RBD server docker image

Copied from https://github.com/kubernetes/kubernetes/tree/master/test/images/volumes-tester/rbd. Made a few changes to meet our testing requirements.

Creating Ceph RBD server pod

The rbd server pod needs to load rbd kernel module and needs to run as privileged with hostNetwork=true. Follow these steps to create an RBD server pod on OpenShift 3.

Edit scc.yml, replace YOUR_USERNAME with your login name, then:

oc create -f scc.yml
oc create -f rbd-server.json
oc create -f rbd-secret.yaml

Verifying your rbd server is functional

Run oc exec rbd-server -- ceph health, when you see HEALTH_OK, your rbd server pod is ready. If you haven't seen it, wait a short time until it is successfully deployed.

Creating Persistent Volume and Claim

Run oc get pod rbd-server -o yaml | grep podIP, the ip of the pod is then used for you to access the rbd server.

Assume your service ip is 10.1.0.1

sed -i s/#POD_IP#/10.1.0.1/ pv-rwo.json
oc create -f pv-rwo.json
oc create -f pvc-rwo.json

Run oc get pv;oc get pvc, you should see them Bound together.

Creating tester pod

Create the pod: oc create -f pod.json, then run oc get pods, you should see the pod is Running.

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.