Wednesday 29 August 2018

Datastax Containers on kubernetes

In this post i will help you to deploy datastax images on kubernetes and we can create a 2 node instance of datastax cluster.

We will deploy containers of   DSE-Search, DSE-Graph, DSE-Database, DSE-Analytics
In this step we will create a DSE Search enabled container and deploy that on node machines.

Commands used
The below yaml file help you to create a dse service for dse-search
#kubectl apply -f dse-search-lb-services.yaml

This will help us to create a volume
#kubectl apply -f dse-search-volume.yaml

This will help us to create a dse-search statefulset.
       #kubectl apply -f dse-search-statefulset.yaml


in the github repository you can see the other yaml files also. https://github.com/vishnuc95/Scripts-Kubernetes-Yaml- 

That we used to configure the DSE-Graph, DSE-Database, DSE-Analytics containers.

As mentioned above apply each yaml file for creating service,volume and statefulset for DSE containers.

#kubectl apply -f dse-graph-lb-services.yaml
#kubectl apply -f dse-graph-volume.yaml
      #kubectl apply -f dse-graph-statefulset.yaml
      #kubectl apply -f dse-database-lb-service.yaml
      #kubectl apply -f dse-database-volume.yaml
      #kubectl apply -f dse-database-statefulset.yaml
      #kubectl apply -f dse-analytics-lb-services.yaml
      #kubectl apply -f dse-analytics-volume.yaml
      #kubectl apply -f dse-analytics-statefulset.yaml




















Finally you can see 2 instance of all the containers. Now we are good with the DSE Containers.

Now we can connect to one of the service through the load balanced ip from the studio.

Log in to the studio and create a connection to the database through the load balanced IP
Please refer my previous blog post for creating studio service :http://biexplored.blogspot.com/2018/08/accessing-kubernetes-pods-from-outside.html

In the below screen shot you can see we have successfully created a connection to the database through the container.







No comments:

Post a Comment