Test your Application in the Kubernetes Setup on the Google Cloud Platform
Before you begin
- Google Cloud account with a project and cluster
- Google Cloud SDK
- Kubectl
- Procedure
- From a terminal, follow these steps:
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> --zone <your cluster zone name> kubectl get nodes
- Tag the application image created in the previous step.
docker tag bwce-jms-ssl-app gcr.io/<your project name>/bwce-jms-ssl-app
- Push your application image to Google Container Registry.
gcloud docker push gcr.io/<your project name>/bwce-jms-ssl-app
- Confirm that the image is present in the Google Container Registry
- Open the
manifest.yml
file and update the application image name. Ensure the image name follows the format:gcr.io/<your gcloud project>/<image name>
- Navigate to the samples directory where the manifest file is present and type in the below command to create the service:
kubectl create -f manifest.yml
- To check that application is started successfully, run the following command:
kubectl logs <pod name>
Result If the application deploys successfully, you can see a similar output in the console log.
16:19:48.00023:19:48.225 INFO [Thread-22] com.tibco.thor.frwk.Application - TIBCO-THOR-FRWK-300006: Started BW Application [tibco.bwce.sample.palette.jms.SSL.application:1.0] 16:19:48.00023:19:48.664 INFO [bwEngThread:In-Memory Process Worker-1] c.t.b.p.g.L.t.b.s.p.jms.SSL.Log - Sending 5 Queue Messages 16:19:49.00023:19:49.962 INFO [bwEngThread:In-Memory Process Worker-2] c.t.b.p.g.L.t.b.s.p.jms.SSL.Log1 - Getting 5 Queue messages... ==This is message number 1 16:19:50.00023:19:50.222 INFO [bwEngThread:In-Memory Process Worker-3] c.t.b.p.g.L.t.b.s.p.jms.SSL.Log1 - Getting 5 Queue messages... ==This is message number 2 16:19:50.00023:19:50.471 INFO [bwEngThread:In-Memory Process Worker-4] c.t.b.p.g.L.t.b.s.p.jms.SSL.Log1 - Getting 5 Queue messages... ==This is message number 3 16:19:50.00023:19:50.725 INFO [bwEngThread:In-Memory Process Worker-5] c.t.b.p.g.L.t.b.s.p.jms.SSL.Log1 - Getting 5 Queue messages... ==This is message number 4 16:19:50.00023:19:50.975 INFO [bwEngThread:In-Memory Process Worker-6] c.t.b.p.g.L.t.b.s.p.jms.SSL.Log1 - Getting 5 Queue messages... ==This is message number 5