Deploying GCS on kubernetes cluster

What is GCS?


GCS a.k.a Gluster Container Storage is an  initiative to provide a new stack focused on easier integration, much more opinionated bases install, a better upgrade experience to deploy Gluster for container storage. We are primarily focused on integration with Kubernetes (k8s) through this initiative.


To deploy kubernetes cluster please refer to kubernetes-deploymen-guide.

We will deploy GCS on 3 node kubernetes cluster.

Node configurations:
OS: Fedora 29
RAM: 128 GB
CPUs: 24
Steps to deploy GCS:
  1. To deploy GCS we will require an inventory file mentioning the the gcs nodes and devices to be used. Template for GCS inventory file can be found under deploy directory in gcs repository: https://github.com/gluster/gcs/blob/master/deploy/examples/inventory-gcs-kubespray.example If you have deployed kubernetes using kubernetes-deployment-guide, then you will have to add the gcs related sections that were removed in STEP-5 of that guide. Instead of 4 kube nodes we are using only 3 nodes so edit your inventory file accordingly. Your inventory file should look like:
  2. To deploy GCS on kubernetes cluster we will execute the deploy-gcs.yml file using ansible from master node(kube 1). The deploy-gcs.yml file is present under deploy directory. $ ansible-playbook -i <path to inventory file>/<name of inventory file> <path to deploy-gcs.yml file>/deploy-gcs.yml.
  3. To test whether the deployment was successful or not, you can run the following command on the master node. $ kubectl get pods -n gcs All the pods should be in Running state.
Remove GCS setup To remove gcs setup, run: $ kubectl delete namespace gcs




Comments

Popular posts from this blog

Deploying Kubernetes on bare metal machines