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:
- Existing standard components
- Custom MTee components:
- Integrated components:
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
secretsdirectory from the template files found in thesecret_templatesdirectory. - Check all files for any lines commented with
# TODOas 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/andservicesdirectories - All files in
ingresses deployments/rabbitmq.yamlanddeployments/mysql.yaml- All other files in
deployments/
- All files in
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
defaultis used, adding themetadata.namespacevalue 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.
- maximum file upload size (
- 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.