Testing Your Application in Kubernetes Setup on the Google Cloud Platform
Before you begin
- Google Cloud account with a project and cluster
- Google Cloud SDK
- Kubectl
- Procedure
- 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
- Tag the application image created in the previous step.
docker tag bwce-soap-http-app gcr.io/<your project name>/bwce-soap-http-app
- Push your application image to Google Container Registry.
gcloud docker push gcr.io/<your project name>/bwce-soap-http-app
- Confirm that the image is present in the Google Container Registry.
- 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>
- Navigate to the samples directory where the manifest file is present and run the following command to create the service:
kubectl create -f manifest.yml
- To check that the application has started successfully, run 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]