Deploying TIBCO FSI in Single Host, Single Pod Topology

Prerequisites

  • 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 FSI deployment on Kubernetes:

Procedure

  1. Connect to 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
  2. Start the Minikube service with the following command:
    minikube start
  3. Start the Minikube dashboard with the following command:
    minikube dashboard
  4. As TIBCO FSI 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\fsi_single_container\kubectl_configmaps\showsql_application.properties
  5. To deploy the application on Minikube dashboard click CREATE.
  6. Select CREATE FROM FILE and browse to the sampleapp.json file.
  7. Click UPLOAD.
  8. Run Minikube as external IP by using the following command:
    kubectl port-forward deploymentpodname port-forward
    For example,
    kubectl port-forward fsiapp-698f9776cd-tlfh7 8081