- 12 Jan 2023
- 1 Minute to read
-
DarkLight
Installing on Kubernetes
- Updated on 12 Jan 2023
- 1 Minute to read
-
DarkLight
Prerequisites
1. Create a Middleware account
2. Keep logging into your account
3. Access to kubernetes cluster and kubernetes client (ie. : kubectl)
Use our one-step easy installation
To install an 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, so you won't need to create one.
MW_API_KEY=xxxxxxxxxxxxxxxxxx TARGET=https://uid.middleware.io:443 bash -c "$(curl -L https://install.middleware.io/scripts/yaml-install.sh)"
*If you are using the above command, replace the MW_API_KEY value with your API Key.
* Replace "uid" with the text in the URL (ex URL is "s05zpimz.middleware.io" , here s05zpimz is uid.)
Verify the status of agent
Run the agent’s status command to verify the installation.
kubectl get pods -n mw-agent-ns
A successful installation will create a pod in your infrastructure under “mw-agent-ns ” namespace and you can one entry with the current status (ex “running”)
In case of unsuccessful installation in Kubernetes, there will be a message of “no resource found” when you run the above command.
Sample of successful installation in kubernetes
Sample of unsuccessful installation in kubernetes
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)"