Deploying TIBCO PSI in Single Node, Single Pod Topology
Before you begin
- Install Kubernetes and kubectl and add the installation directory in the PATH variable. For installation details, see the Kubernetes documentation.
- You must be logged in as a non-root user to perform this procedure.
Minikube is a lighter version of Kubernetes, hence can be used as an alternative to Kubernetes for single pod deployment. The following procedure describes the TIBCO PSI deployment on Kubernetes:
- Procedure
- Connect to the Docker image repository for pulling the image in minikube.
kubectl create secret docker-registry regcred --docker-server=<your-registry-server> --docker-username=<your-name> --docker-password=<your-pword> --docker-email=<your-email>
For example,
kubectl create secret docker-registry regcred --docker-server=https://reldocker.tibco.com --docker-username=harryjp --docker-password=???????? --docker-email=hjp@xyz.com
- Start the Minikube service with the following command:
minikube start
- Start the Minikube dashboard with the following command:
minikube dashboard
- As TIBCO PSI deployment is done using the properties file for configuration, create a ConfigMap for Kubernetes using the following command:
kubectl create configmap <configmap_name> --from-env-file= full path to propertyfile
For example,
kubectl create configmap testconfigmap --from-env-file=C:\Development\Trunk\FOS-Inventory\source\docker\psi_single_container\kubectl_configmaps\showsql_application.properties
- To deploy the application on the Minikube dashboard click CREATE.
- Select CREATE FROM FILE and browse to the sampleapp.json file.
- Click UPLOAD.
- Run Minikube as external IP by using the following command:
kubectl port-forward deploymentpodname port-forward
For example,kubectl port-forward psiapp-698f9776cd-tlfh7 8081