TIBCO BusinessEvents Kubernetes Quick Start Guide

TIBCO BusinessEvents Kubernetes Quick Start Guide

book

Article ID: KB0073243

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition 5.6 and later

Description

How can I quickly spin up a simple BusinessEvents application in a local Kubernetes environment for basic testing and troubleshooting?
 

Environment

Kubernetes environment

Resolution

1. Enable Kubernetes in your Docker environment, according to the guidance provided at:

https://docs.docker.com/desktop/kubernetes/

2. Install minikube (a local Kubernetes environment), according to the guidance provided at:

https://minikube.sigs.k8s.io/docs/start/

Linux example:
$ curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
$ sudo install minikube-linux-amd64 /usr/local/bin/minikube
3. Obtain the be-tools from github:
$ mkdir ~/tmp
$ cd ~/tmp
$ git clone https://github.com/TIBCOSoftware/be-tools.git
4. Download a copy of the installation kit for your BE version (e.g. TIB_businessevents-enterprise_5.6.1_linux26gl25_x86_64.zip), and place it in an accessible directory (e.g. ~/installers/).

5. Start minikube:
$ minikube start --cpus=4 --memory=8g
6. Build and load the Fraud Detection example:
$ cd ~/tmp
$ mkdir beapp
$ cp /opt/tibco/be/5.6/examples/standard/FraudDetection/FraudDetection/fd.cdd ~/tmp/beapp/
$ cp /opt/tibco/be/5.6/examples/standard/FraudDetection/fd.ear ~/tmp/beapp/
$ cd ~/tmp/be-tools/cloud/docker/
$ ./build_image.sh -i app -a ~/tmp/beapp -s ~/installers/ -t fd
$ minikube image load fd:latest
$ kubectl apply -f ../kubernetes/minikube/inmemory/befdservice.yaml
$ nano ../kubernetes/minikube/inmemory/beinferenceagent.yaml
Set the following in beinferenceagent.yaml under the 'containers' section:
image: fd:latest
imagePullPolicy: Never
Then save the changes (CTRL+X then Y)

7. Deploy the image:
$ kubectl apply -f ../kubernetes/minikube/inmemory/beinferenceagent.yaml


 

Issue/Introduction

Outlines the steps needed to run the Fraud Detection sample in a Kubernetes environment.