Running an Application with Shared All Persistence on Enterprise PKS
After uploading your TIBCO BusinessEvents application image with shared all persistence to the Google Container Registry and creating the Kubernetes cluster, you can deploy your application to the Kubernetes cluster. The cluster manages the availability and connectivity of the application. You can use the Docker image of the database that you want to use.
For the shared all persistence, configure a database server and define a storage for its database. For example, you can use a MySQL server for database connections. To implement the database, you can use the mysql container from the Docker hub. Provide the database connection details in the cache and inference agent configuration files. Define a Storage Class object of the GCP persistent disk (gce-pd) provisioner to provision storage (persistent volume claim) for the MySQL database.
TIBCO BusinessEvents provides a readme.html file at BE_HOME\cloud\kubernetes\PKS\cache for the Dockerized FraudDetectionStore application. You can follow the instructions in the readme.html file to run the application by the using the sample YAML files. These sample YAML files for deploying TIBCO BusinessEvents application with the shared all persistence on Enterprise PKS are available at BE_HOME\cloud\kubernetes\PKS\cache\shared-all. For details about these sample YAML files, see Sample Kubernetes YAML Files for Applications with Shared All Persistence.
Procedure
What to do next
Test the application by using the external IP obtained. For example, if you have deployed the FraudDetectionStore example application with the shared all persistence, you can use the sample readme.html file at BE_HOME\cloud\kubernetes\PKS\cache to test the application. Use the obtained external IP in the readme.html file and follow the instructions in it to run the application.
However, if you have deployed any other sample application then update its readme.html file to test the application. Update the server address in application readme.html file from localhost to the external IP obtained. Now, follow the instructions in the readme.html file for testing the application.