Skip to content

Latest commit

 

History

History
43 lines (28 loc) · 1.51 KB

README.md

File metadata and controls

43 lines (28 loc) · 1.51 KB

Server Setup using Kubernetes (Optional):

If you want to create a kubernetes node with all dependencies follow the steps given below. Otherwise, you can modify the project configuration to match your server environment.

Create Persistent Directory

sudo mkdir /home/data/db -p
sudo mkdir /home/data/minio -p
sudo chmod -R 777 /home/data/

Create separate node for GIG Server configurations:

kubectl create namespace gig-api-node
kubens gig-api-node

Change active namespace

kubens gig

Initiate MongoDB and Minio Servers using following commands

For MongoDB:

kubectl apply -f deployment/mongodb/persistent-volume.yaml
kubectl apply -f deployment/mongodb/secrets.yaml
kubectl apply -f deployment/mongodb/configmap.yaml
kubectl apply -f deployment/mongodb/statefulsets.yaml
kubectl apply -f deployment/mongodb/service.yaml
kubectl apply -f deployment/mongodb/ingress.yaml

For Minio: For more details check MinIO Kubernetes YAML Files

kubectl apply -f deployment/minio/minio-standalone-pv.yaml
kubectl apply -f deployment/minio/minio-standalone-deployment.yaml
kubectl apply -f deployment/minio/minio-standalone-service.yaml
kubectl apply -f deployment/minio/ingress.yaml

Use the following command to get the mongodb Server IP

kubectl get svc |grep database

Use the following command to get the minio Server IP

kubectl get svc |grep minio-service