Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.
Project-MTeePublic archive

About

MTee platform documentation with a minimal K8s deployment configuration example

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

15 Commits

Folders and files

Repository files navigation

MTee platform configuration

This repository provides a minimal example of Kubernetes configuration to run the MTee platform. Configuration files are only provided to illustrate how communication between components should be set up and should be revised before any deployments.

For more information, please refer to the more detailed platform documentation and to the documentation of each component separately. A working demo of this platform can be found at here.

The MTee platform consists of the following dockerized components:

Platform setup

This sample requires an existing Kubernetes cluster with the NGINX ingress controller where the application can be deployed to. For more information about setting up a cluster, please see Kubernetes documentation. We also assume that the user has kubectl configured to connect to the cluster. For testing or development purposes, setting up minikube and enabling the ingress controller should be sufficient.

  • Create a new secrets directory from the template files found in the secret_templates directory.
  • Check all files for any lines commented with # TODO as those lines refer to configuration that is likely different for different deployments.
  • Apply configuration files using the command kubectl create -f $filename. Configuration files can be added in the following order to avoid any dependency conflicts.
    • All files in secrets/, configuration/, storage/ and services directories
    • All files in ingresses
    • deployments/rabbitmq.yaml and deployments/mysql.yaml
    • All other files in deployments/

This should be sufficient to have the application running. However, there are other configuration aspects that may be relevant depending on the deployment requirements:

  • In case a namespace other than default is used, adding the metadata.namespace value to each configuration file.
  • Configuring separate users for each application connecting to RabbitMQ.
  • Configuring additional replicas and revising resource limits/requirements for each component depending on the expected workload.
  • Configuring persistent storage for RabbitMQ and MySQL to ensure data persists after a restart.
  • Using a RabbitMQ Kubernetes operator instead.
  • Revising the persistent volume sizes for file translation and speech recognition file storage depending on expected workload.
  • Configuring ingress parameters:
    • maximum file upload size (nginx.ingress.kubernetes.io/proxy-body-size)
    • modify rate limits
    • etc.
  • Reivew the version numbers of components. The version numbers used in this repository reflect the versions tested in the https://mt.cs.ut.ee demo environment, however, newer versions are likely also compatible.

About

MTee platform documentation with a minimal K8s deployment configuration example

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors