Planning and Configuring
Customize Kubernetes Cluster
Since Kubernetes clusters could be set up in many different ways and they can be shared by many applications, it is the Administrator's responsibility to have the cluster set up and be ready for deployment.
"tml_cluster_name": "Mashery Local Reference Cluster", "k8s_azure_zones": ["westus2"],
Customize TIBCO Mashery Local cluster
"tml_image_tag": "v5.1.0.1", "tml_image_registry_host" : "ml51acr.azurecr.io", "tml_image_repo": "ml51acr", "tml_cm_count": 1, "tml_tm_count": 1, "tml_cache_count": 1, "tml_sql_count": 1, "tml_log_count": 1, "tml_nosql_count": 1, "k8s_storage_type": "pd-standard", "k8s_storage_provisioner": "kubernetes.io/azure-disk", "k8s_deploy_namespace": "default", "k8s_storage_account_type": "Standard_LRS", "tml_sql_storage_size": "10Gi", "tml_log_storage_size": "10Gi", "tml_nosql_storage_size": "10Gi", "tml_cache_storage_size": "10Gi", "tml_tm_http_enabled": "true", "tml_tm_http_port": 80, "tml_tm_https_enabled": "true", "tml_tm_https_port": 443, "tml_tm_oauth_enabled": "true", "tml_tm_oauth_port": 8083, "tml_api_http_enabled": "false", "tml_api_http_port": 7080, "tml_api_https_enabled": "false", "tml_api_https_port": 7443, "tml_cm_http_enabled": "true", "tml_cm_http_port": 8080, "tml_cm_https_enabled": "true", "tml_cm_https_port": 8443, "cassandra_max_heap": "512M", "cassandra_replication_factor": 1
Single Zone Deployment | |
---|---|
tml_cm_count | Number of Cluster Manager Containers |
tml_tm_count | Number of Traffic Manager Containers |
tml_cache_count | Number of Memcached Containers |
tml_sql_count | Number of MySQL Containers |
tml_log_count | Number of Log Service Containers |
tml_nosql_count | Number of Cassandra Containers |
Setting up Mashery Service Configuration Data
Mashery Local offers the option of importing service configuration data offline. A sample data.zip is provided with the Mashery Local build that can be loaded into the database during TIBCO Mashery Local cluster creation.
- In docker-deploy/azure/k8s/manifest-single-zone.json, set tml_cluster_mode as untethered_cm.
- Copy the docker-deploy/sample_data/data.zip into the
docker-deploy/properties/ directory.
This ensures that the data from the data.zip will be automatically loaded in the database when the TIBCO Mashery Local cluster is created.
Mashery Local also offers the capability to sync data from MoM (Mashery on-prem Manager) server in TIBCO Cloud Mashery at the time of cluster creation. To load the data using the MoM sync configuration: