Open topic with navigation

TIBCO ActiveMatrix® Service Grid - Container Edition 1.0.0

# 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.

Note: When deploying in the Kubernetes cluster, Application Monitor agent and TIBCO Enterprise Administrator server must be deployed in the same cluster. For multiple cluster setup, deploy Application Monitor agent and TIBCO Enterprise Administrator server in each cluster separately.
Before you begin

- 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
1. 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.

2. To create a service account with a cluster view role, run the following command:

       kubectl apply -f amxce_authorization.yaml

3. In the `tea-server.yaml` file, update <tea-server-docker-image> with a TEA Server Docker image. Run the `apply` command of `kubectl` utility to deploy the TEA Server to Kubernetes.

       kubectl apply -f tea-server.yaml

4. In the `tea-agent.yaml` file, update <amxceteaagent-image-name> with Application Monitor agent Docker image. Run the `apply` command of `kubectl` utility to deploy the Application Monitor agent to Kubernetes.

       kubectl apply -f tea-agent.yaml

5. 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

6. You can check the logs of container pods by using the following command:

       kubectl logs <pod> -n monitoring

7. You can access the Application Monitor dashboard by using the `http://<hostname>:31877/tea` link.

Subtopics

Copyright © 2020-2021. TIBCO Software Inc. All Rights Reserved.