Testing Your Application in Kubernetes Setup on the Google Cloud Platform

Prerequisites

  • Google Cloud account with a project and cluster
  • Google Cloud SDK
  • Kubectl

Procedure

  1. From the secure terminal, run the following command:
    gcloud auth login
    gcloud config set project <your project name>
    gcloud config set container/cluster <your cluster name>
    gcloud container clusters get-credentials <your cluster name> --zone <your cluster zone name>
    kubectl get nodes 
    
  2. Tag the application image created in the previous step.
    docker tag bwce-soap-http-app gcr.io/<your project name>/bwce-soap-http-app
  3. Push your application image to Google Container Registry.
    gcloud docker push gcr.io/<your project name>/bwce-soap-http-app
  4. Confirm that the image is present in the Google Container Registry.
  5. Open the manifest.yml file and update the application image name. Ensure that the image name follows the following format:
    gcr.io/<your gcloud project name>/<image name>
  6. Navigate to the samples directory where the manifest file is present and execute the following command to create the service:
    kubectl create -f manifest.yml
  7. To check that the application has started successfully, execute the following command:
    kubectl logs <pod name>

Result

When the application deploys successfully, you see the following output in the console log:

17:20:05.800 INFO  [Thread-12] com.tibco.thor.frwk.Application - TIBCO-THOR-FRWK-300006: Started BW Application [tibco.bwce.sample.binding.soap.http.ZipCodeServiceProvider.application:1.0]