Kubernetes with MS Powershell
Kubernetes Powershell Infra Agent - Setup & Installation Docs | Middleware
The following section walks you through installing the Infrastructure Agent (Infra Agent) with Microsoft Powershell scripts. This method provides you the ability to install the Infra Agent using helm
instead of manifest files.
kubectl
on your machine Prerequisites
Kubernetes Version
Kubernetes v1.21
or above
Kubernetes Access
Access to Kubernetes cluster and client (i.e. kubectl)
Step 1: Open Powershell Terminal
Set the MW_API_KEY
and MW_TARGET
environment variables:
Step 2: Install with Helm [Optional]
You have the option to install the Infra Agent with helm
instead of using manifest files.
Set the following environment variable to use helm
:
Step 3: Install Infra Agent
Download the MW Kubernetes Install script and execute the following command:
Troubleshooting
Once the Infra Agent is installed on your cluster metrics should begin appearing in the Middleware application within a few minutes. If metrics do not appear, confirm that Kubernetes has access to the internet, either directly or through a proxy, and that only one Infra Agent is running per cluster.
Uninstall
Download the MW Kubernetes Uninstall script and execute the following command:
Was this page helpful?