Installing on Kubernetes
Use our one-step easy installation
Prerequisites
- Create a Middleware account
- Keep logging into your account
- Access to Kubernetes cluster and Kubernetes client (ie. : kubectl)
Use our one-step easy K8s installation
Use following command to install agent on Kubernetes
Shell
This script will install a Kubernetes daemonset into your k8s cluster.
This agent is mainly created to monitor the data of your Kubernetes infrastucture.
Replace the MW_API_KEY value with your API key or directly copy the full command with the API key from the installation menu.
Replace “uid” with the text in the URL (ex URL is “s05zpimz.middleware.io” , here s05zpimz is uid.)
You must not run more than one MW Agent per cluster. Running multiple Agents may result in unexpected behavior.
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
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.
Shell