Running the TIBCO BusinessWorks Container in Kubernetes

This section explains the procedure to run a TIBCO BusinessWorks container in Kubernetes.

Prerequisites

  • 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

  1. Deploy the Hawk Container Edition components on the Kubernetes cluster. For more details, see the Hawk Container Edition documentation.
  2. Create hkbwce.yml file in a temporary directory and add the following content:
    apiVersion: v1
    kind: Pod
    metadata:
     name: bwcehawkadapter
     labels:
       name: bwcehawkadapter
       app: hkce
    spec:
     containers:
     - name: bwcehawkadapter
       image: <aws_docker_registry>/hawkadapter:improved
       imagePullPolicy: Always
       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}:2551
       - name: ami_agent_url 
         value: ${HOST_IP}:2571
       ports:
       - containerPort: 2551
         protocol: TCP
    Note: The ami_agent_url environment variable value set in TIBCO BusinessWorks Container Edition is same as the ami_tcp_session environment variable value set in the Hawk Agent container.
  3. Run the following command to deploy TIBCO BusinessWorks Container Edition with the microagent in Kubernetes.
    kubectl create -f hkbwce.yml