Installing on Kubernetes
Prerequisites
- Create a Middleware account
- Keep logging into your account
- Access to Kubernetes cluster and Kubernetes client (ie. : kubectl)
Use our one-step easy installation
To install a Middleware agent on a host, copy the Installation command and paste it into the command prompt. Your command will look like the following example, and it will include your API key.

You can use one-step auto instrumentation as follow
MW_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxx TARGET=https://uid.middleware.io:443 bash -c "$(curl -L https://install.middleware.io/scripts/mw-vision.sh)"
This script will install our all-in-one helm chart into your k8s cluster.
Once the script is executed, you will be given instructions to open our ‘Middleware Vision UI’.
When you open the Vision UI (using port-forward), you will see all the applications running in your cluster along with their detected programming language
Select all the applications that you want to monitor and press ‘Save Changes’, and you will see their distributed traces in the Middleware dashboard.
OR use following command to install agent on Kubernetes
MW_API_KEY=xxxxxxxxxxxxxxxxxx TARGET=https://uid.middleware.io:443 bash -c "$(curl -L https://install.middleware.io/scripts/yaml-install.sh)"
This script will install a Kubernetes daemonset into your k8s cluster.
This agent is mainly created to monitor the data of your Kubernetes infrastucture.
Verify the status for K8s Auto-instrument Agent
Run this command to check the status of main daemonset component, which will be collecting data from your cluster
kubectl get daemonset/vision-data-collection -n mw-vision
Expected Output:
Name | Desired | Current | Ready | Up to Date | Available | Node selector | Age |
Vision-data-collection | 7 | 7 | 7 | 7 | 7 | <none> | 111s |
If you have “N” number of k8s nodes, You should see “N” ready pods.
Verify Status for K8s Infrastructure Agent
Run this command to check the status of main daemonset component, which will be collecting data from your cluster
kubectl get daemonset/mw-kube-agent -n mw-agent-ns
Expected Output:
Name | Desired | Current | Ready | Up-to-date | Available | Non selector | Age |
mw-kube-agent | 7 | 7 | 7 | 7 | 7 | <none> | 111s |
If you have “N” number of k8s nodes, You should see “N” ready pods.
Uninstall the Middleware agent
To uninstall the middleware agent, please use the following command.
bash -c "$(curl -L https://install.middleware.io/scripts/yaml-uninstall.sh)"