Skip to content

Commit

Permalink
Added a new namespace.yaml
Browse files Browse the repository at this point in the history
to compliment @cduchesne's work, a namespace yaml file was added to the examples for quick use

Signed-off-by: Kenny Coleman <kendrickcoleman@gmail.com>
  • Loading branch information
kacole2 committed Dec 1, 2017
1 parent d7daded commit edd4251
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
13 changes: 12 additions & 1 deletion scaleio/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,21 @@ $ curl -k -XPOST -d @postgres.json -H "Content-Type: application/json" http://19

Automatically build a Kubernetes cluster using `export SCALEIO_K8S_INSTALL=true` as an environment variable.

ScaleIO has a native [Kubernetes](https://kubernetes.io/) integration. This means it doesn't rely on a tool like REX-Ray to function. Using standard Kubernetes Pods, Deployments/ReplicaSet, Dynamic Provision, etc is all built-in. On `master` node there is a folder called `k8s-examples` that can be used to create the secret, a standard pod, and deployment, storage class, and more.
ScaleIO has a native [Kubernetes](https://kubernetes.io/) integration. This means it doesn't rely on a tool like REX-Ray to function. Using standard Kubernetes Pods, Deployments/ReplicaSet, Dynamic Provision, etc is all built-in. On `master` node there is a folder called `k8s-examples` that can be used to create the namespace, secret, a standard pod, and deployment, storage class, and more.

REX-Ray is installed on all nodes for ease of volume management. If storage classes and dynamic provisioning is not used, Kubernetes expects the volumes to be available. REX-Ray is an easy tool to quickly create the volumes like `sudo rexray create pgdata-k8s-01 --size=16` that is needed by `deployment.yaml`.

As an example:
```
vagrant ssh master
cd k8s_examples
kubectl create -f namespace.yaml
kubectl create -f secret.yaml
kubectl create -f storageclass.yaml
kubectl create -f dynamicdeployment.yaml
kubectl create -f pgstatefulset.yaml
```


### ScaleIO GUI

Expand Down
6 changes: 6 additions & 0 deletions scaleio/scripts/k8s/examples/namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: v1
kind: Namespace
metadata:
labels:
name: scaleio
name: scaleio

0 comments on commit edd4251

Please sign in to comment.