Deploying TIBCO Hawk Container Edition to Kubernetes
Hawk Container Edition can be deployed on Kubernetes by using the deployment configuration files (YAML format), which contain the configuration details for deployment including environment variables.
- See Preparing for Containerization.
- Ensure that you have created docker images of Hawk agent, Hawk Cluster Manager, and Hawk Console. Upload the Docker images to a suitable public or private registry that is accessible from your Kubernetes cluster. For more information, see TIBCO Hawk Container Edition Documentation.
- Procedure
- Navigate to
amsgce-runtime-<version>/samples/kubernetes/Hawk_Monitoring. - In the
hawk.yamlfile, update Docker images of Hawk agent, Hawk Cluster Manager, and Hawk Console. For more information about the Kubernetes deployment YAML files configurations of Hawk Container Edition components, see Sample Kubernetes YAML File for Deploying Hawk Container Edition. -
Run the
applycommand ofkubectlutility to deploy Hawk Container Edition to Kubernetes.kubectl apply -f hawk.yaml -
You can check the logs of container pods by using the following command:
kubectl logs <pod> -n <namespace>
-
You can also get the external IP to the external service of the cluster by using the get services command. You can then use that IP to connect to the cluster.
kubectl get services hkce-console-service -n <namespace>
If you have a Hawk console container running, you can access it at http://<Console_host_IP>:<Host_port>/HawkConsole.
For example: http://<host>:31083/HawkConsole. Where 31083 is default NodePort specified in the sample hawk.yaml file. You can change it to any valid NodePort.
For more information about Monitoring ActiveMatrix Service Grid - Container Edition, see ActiveMatrix Service Grid - Container Edition Monitoring.