Running the TIBCO BusinessWorks Container in Kubernetes
Before you begin
- Download and install kubectl, the Kubernetes CLI tool. For details about installation and configuration, see the
kubectl documentation.
Note: When you obtain third-party software or services, it is your responsibility to ensure you understand the license terms associated with such third-party software or services and comply with such terms.
- Set up a Kubernetes cluster.
- Procedure
- Deploy the TIBCO OI Hawk RedTail components on the Kubernetes cluster. For more details, see the TIBCO® Operational Intelligence Hawk® RedTail documentation.
- Create
hkbwce.yml
file in a temporary directory and add the following content:apiVersion: v1 kind: Pod metadata: name: hkbwce namespace: redtail labels: name: hkbwce app: hkce spec: containers: - name: bwcontainer image: hkbwce:latest env: - name: HOST_NAME valueFrom: fieldRef: apiVersion: v1 fieldPath: status.podIP - name: HOST_IP valueFrom: fieldRef: fieldPath: status.hostIP - name: tcp_self_url value: $(HOST_NAME):2655 - name: ami_agent_url value: redtail-agent-0.redtail-agent:2571 - name: BW_JAVA_OPTS value: -Dbw.smartengine.appStatistics.enabled=true - name: bw_hawk_hma_tcp_max_reconnect_attempts_during_connect value: '20' - name: bw_hawk_hma_tcp_max_reconnect_attempts_after_restart value: '1000' #These are optional fields. - name: microagent_suffix value: hkbwceApp1 ports: - containerPort: 2655 protocol: TCP
Note: Ensure that theami_agent_url
environment variable value set in TIBCO BusinessWorks Container Edition is same as theami_tcp_session
environment variable value set in the Hawk Agent container. - Run the following command to deploy
TIBCO BusinessWorks Container Edition with the microagent in Kubernetes.
kubectl create -f hkbwce.yml
Viewing Pod Logs
- Procedure
- To view logs of a particular pod, run the following command:
kubectl logs <pod_id>