Deploy Originations Data Storage in K8 Container
The Originations Data Storage microservice is provisioned for deployment in the K8 container.
Artifacts
Enabled Kubernetes.
Deploy
Install Docker Engine in the deployment environment. Refer https://docs.docker.com/install/overview/
Turn on Linux containers in docker
To deploy the Originations Data Storage microservice:
- After the docker is installed, enable Kubernetes in the Docker Desktop app.
- Kubernetes requires a minimum of 6 CPUs to run smoothly. Go to Docker settings → Resources and increase the CPU and Memory as shown here
- Install Helm and set helm path as an environment variable on the system. Kubernetes deployment package is available with Docker package. Unzip the docker package, the scripts for starting the deploying can be found at ms-storge-Docker/k8/on-premise.
- Execute start-storage-mongo.bat/start-storage-mongo.sh for Kubernetes package with MongoDb as the database. For schema creation in MongoDB edit the config file at ms-storage-Docker/dbMigration/config with below values
- After the config values are edited, execute the execute.bat/execute.sh for schema creation in Mongo pods
- For services with PostgreSQL, execute start-storage-postgresql.bat/start-storage-postgresql.sh, Running execute.bat for PostgreSQL is not required. Use below command to check if the status of all the pods are Running:
kubectl get pods --all-namespaces - Use below command to check the service details of each kubernetes service like port, ip etc:
kubectl get svc --all-namespaces
database.key=mongodb
database.name=ms_storage
db.username=root
db.password=ENC(g26gIJOn14ADSIjzxKvYJg==)
db.connection.url=mongodb://localhost:30958
db.scripts.location=migration\
In this topic