Requirements
This document lists requirements for TPOSS and the database server that your environment must meet before proceeding with the installation.
TPOSS requirements
- A Kubernetes or a Cennso Core Cluster to deploy the TPOSS workloads and access to it. The minimal version of Kubernetes is
1.29. - HelmOpens in a new tab with the minimal version
3.8. - A MySQL server or a cluster must be deployed before TPOSS. The database must be reachable by the TPOSS pods, and have a schema and users created. For the supported versions and the setup steps, see the Database server requirements section.
- The namespace where TPOSS is deployed must not enforce the
restrictedPod Security StandardOpens in a new tab. The TPOSS pods do not set theseccompProfileand theallowPrivilegeEscalationoptions, and do not drop Linux capabilities, so therestrictedpolicy rejects them. Thebaselinepolicy is enough. If the initScript.enabled configuration option is set totrue, the namespace needs theprivilegedpolicy, because the init script container runs asrootand adds theNET_ADMINcapability. - A Kubernetes SecretOpens in a new tab with the credentials to pull the TPOSS container images must exist in the namespace where TPOSS is deployed. Set the imagePullSecrets configuration option to the name of this Secret. Cennso clusters usually already have such a Secret for the registry.
In addition, the following dependencies and components must be deployed and be up and running before the TPOSS deployment, if you enable the corresponding feature:
- To use the NATS-based global lock for the sessions, a NATSOpens in a new tab server with JetStreamOpens in a new tab enabled is required. For more information on how to deploy a NATS server, see the NATS configuration document.
- To monitor the TPOSS deployments, prometheus-operatorOpens in a new tab is required, and at least one of these options must be enabled:
- servicemonitor.enabled
- prometheus_recording_rules.enabled
- nats.promExporter.enabled
- To expose TPOSS through an IngressOpens in a new tab, an ingress controller matching tposs_ingress.ingressClassName is required, and this option must be set.
- To assign a static IP address to the TPOSS pods, Calico IPAMOpens in a new tab with an IP pool that contains this address is required, and these options must be set:
- ipAddr.enabled set to
true - ipAddr.ip set to the static IP address
- ipAddr.enabled set to
- To serve the S6a HSS interface over SCTP, the
sctpLinux kernel module is required on every node that runs the HSS server. - To let the external billing systems fetch the CDRs over SFTP from outside the cluster, a LoadBalancerOpens in a new tab provider is required, and these options must be set:
- sftp.enabled set to
true - sftp.service.type set to
LoadBalancer, which is the default
- sftp.enabled set to
Database server compatibility and requirements
TPOSS works with the following versions of these database servers:
- MariaDB 10.3Opens in a new tab to 10.5Opens in a new tab
- MySQL 8.0Opens in a new tab
Note
MySQL 8.4 is supported in the context of compatibility, but it was not tested under load and in a production environment. If you are going to use it, make sure to enable the mysql_native_passwordOpens in a new tab authentication plugin.
Important
If you need support for MySQL clustering, it is highly recommended to use the Cennso Database extension.
Although it was not tested under load and in a production environment, TPOSS should be compatible to run with the MariaDB Galera cluster and MySQL NDB cluster, and it does not have any specific limitations according to the MySQL NDBOpens in a new tab and MariaDB Galera clusterOpens in a new tab documentation.
To operate with MySQL, TPOSS must have a database created and a user with permissions on that database.
Using the following SQL query, you can create a UTF-8 encoded database named tposs:
The actual database name can be different and depends on what you configure in the database.name configuration option. For more information, see the Database settings document.
To create a database user and grant the needed permissions, you can use the following SQL queries:
The queries above create the user named tposs with password tposs. You can use any user name and password, but they must reflect the TPOSS database client configuration options database.user and database.password. For more information, see the Database settings document.
Optional requirements
Tables partitioning
If TPOSS is configured to have the CDR table partitioned, enable the MySQL event schedulerOpens in a new tab:
If there is more than one MySQL instance used in the deployment, disable the events on the secondary MySQL instances:
Connection pooling
The size of a connection pool configured in the database must match the expectation of the applications. For example, a database connected to two TPOSS instances with a configured pool size of 100 must be able to handle at least 200 connections. You can check the possible number of connections using the max_connections MySQL variable:
It is worth to set max_connections to a value higher than the pool size of all TPOSS instances to have a separate access through the standard MySQL client to the database.
Note
To execute each query, TPOSS uses prepared statementsOpens in a new tab. The default limit of the maximum number of the prepared statements might not be suitable for production. It is worth to set max_prepared_stmt_count to 50000.