Skip to content

Commit 29042af

Browse files
committed
Update README
Signed-off-by: hchiramm <hchiramm@redhat.com>
1 parent 86b21f5 commit 29042af

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

README.md

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,20 @@
1-
# glusterfs-k8s-ose
2-
GlusterFS + Kubernetes + Openshift
1+
2+
There are different ways to deploy and use GlusterFS in Kubernetes/openshift setup.
33

44
### Deploying GlusterFS Pod:
55

6+
GlusterFS pods can be deployed in Kubernetes/Openshift, so that Gluster Nodes are deployed in containers and it can provide persistent storage for Openshift/Kubernetes setup.
7+
8+
9+
10+
The examples files in this repo are used for this demo.
11+
12+
Step 1: Create GlusterFS pod
13+
14+
~~~
15+
[root@atomic-node2 gluster_pod]# oc create -f gluster-1.yaml
16+
~~~
17+
Step 2: Get details about the GlusterFS pod.
618

719
~~~
820
[root@atomic-node2 gluster_pod]# oc describe pod gluster-1
@@ -52,10 +64,20 @@ Events:
5264
8s 8s 1 {kubelet atomic-node1} spec.containers{glusterfs} Created Created with docker id ff8f4af700d7
5365
8s 8s 1 {kubelet atomic-node1} spec.containers{glusterfs} Started Started with docker id ff8f4af700d7
5466
67+
~~~
68+
69+
From above logs you can see it pulled 'gluster/gluster-centos' container image and depoyed containers from it.
5570

71+
~~~
5672
[root@atomic-node2 gluster_pod]# oc get pods
5773
NAME READY STATUS RESTARTS AGE
5874
gluster-1 1/1 Running 0 1m
75+
~~~
76+
77+
Examine the container and make sure it has a running GlusterFS deamon.
78+
79+
~~~
80+
5981
[root@atomic-node2 gluster_pod]# oc exec -ti gluster-1 /bin/bash
6082
[root@atomic-node1 /]#
6183
[root@atomic-node1 /]#

0 commit comments

Comments
 (0)