Deploying Application Monitor to Kubernetes
You can deploy the Application Monitor to Kubernetes by using Kubernetes deployment YAML files. In a Kubernetes cluster, Application Monitor agent auto discovers all containers running ActiveMatrix Service Grid - Container Edition application and displays their status on the Application Monitor dashboard.
The Application Monitor needs cluster-wide view permission. So you must create a service account with cluster view permission.
- See Preparing for Containerization.
- Ensure that you have created a Docker image of TEA Server. Upload the Docker image to a suitable public or private registry that is accessible from your Kubernetes cluster. For more information, see Building TIBCO Enterprise Administrator Server Docker Image
- Ensure that you have created a Docker image of Application Monitor agent. Upload the Docker image to a suitable public or private registry that is accessible from your Kubernetes cluster. For more information, see Building Application Monitor Agent Docker Image.
- Procedure
- Navigate to
amsgce-runtime-<version>/samples/kubernetes/Application_Monitor
. For more information about deployment YAML file, see Sample Kubernetes YAML File for Deploying 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.yaml
file, update <tea-server-docker-image> with a TEA Server Docker image. Run theapply
command ofkubectl
utility to deploy the TEA Server to Kubernetes.kubectl apply -f tea-server.yaml
-
In the
tea-agent.yaml
file, update <amxceteaagent-image-name> with Application Monitor agent Docker image. Run theapply
command ofkubectl
utility to deploy the Application Monitor 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
-
You can check the logs of container pods by using the following command:
kubectl logs <pod> -n monitoring
- You can access the Application Monitor dashboard by using the
http://<hostname>:31877/tea
link.