Deploy Application Monitor to Kubernetes
After creating the Docker image for ActiveMatrix Service Grid - Container Edition TEA agent and TIBCO Enterprise Administrator server, you can deploy the Application Monitor to Kubernetes. Application Monitor needs the cluster view permission, so you must first create a service account with a cluster view role.
- Procedure
-
Navigate to
amsgce-runtime-<version>/samples/kubernetes/Application_Monitor. -
To create a service account with a cluster view role, run the following command:
kubectl apply -f amxce_authorization.yaml -
In the
tea-server.yamlfile, update <tea-server-docker-image> with a TEA Server Docker image. Run theapplycommand ofkubectlutility to deploy the TEA Server to Kubernetes.kubectl apply -f tea-server.yaml
-
In the
tea-agent.yamlfile, update <amxceteaagent-image-name> with TEA agent Docker image. Run theapplycommand ofkubectlutility to deploy the TEA agent to Kubernetes.kubectl apply -f tea-agent.yaml -
Verify that the deployment has succeeded and that the pod is running. For example:
~$ kubectl get pod -n monitoring NAME READY STATUS RESTARTS AGE tea-agent-deployment-6c7f784fb8-pjr6g 2/2 Running 0 11s tea-server-deployment-7699c48774-s46vf 1/1 Running 0 2m57s
- To access the Application Monitor dashboard, navigate to:
http://<hostname>:31877/tea.
Now the Application Monitor is running in the Kubernetes platform. In the next step, you can monitor the status of Bookstore application and components of application in the Application Monitor UI.