autobotAI Kubernetes Agent
Overview
The autobotAI Kubernetes Agent
is part of the autobotAI suite, offering both code and no-code solutions to interact with Kubernetes clusters and their resources. This agent allows users to perform various actions on cluster resources, such as retrieving information or creating resources, making it ideal for a wide range of automation tasks. Additionally, the Kubernetes Agent supports compliance benchmarks, enabling users to schedule regular compliance checks on the cluster. The results of these checks are accessible in the dashboard insights, providing visibility into compliance status.
Prerequisites
- Kubernetes Integration: Ensure you have the necessary integrations set up.
- Cluster Access: Ensure that you have access to the Kubernetes cluster where you want to deploy the agent.
Agent Permissions
- The agent uses a Kubernetes
ClusterRole
to interact with the cluster. - By default, this role is configured with read-only permissions across all API groups.
- If you plan to perform write operations on cluster resources, ensure to update the manifest file to include the necessary permissions.
How to Install the Agent?
-
Add a New Kubernetes Integration
- Log in to autobotAI.
- Go to the Kubernetes integration page at Kubernetes Integration.
- Add a new Kubernetes integration by providing the integration name and group, then click 'Create.'
-
Add an Agent
- On the next page, add an agent by providing a name in the designated field.
-
Generate Credentials
- Click "Next Step" to generate a single
kubectl
command that contains the necessary Kubernetes secrets. Copy this command and save it securely, as it will be needed in the next steps.
- Click "Next Step" to generate a single
-
Download Agent Deployment File
- You can download the agent deployment file by clicking on the Download link.
- Local Download: Click the Download link and save the file locally.
- Remote Download: Right-click on the Download link, select "Copy link address," and then use the following
wget
command to download the file on a remote server:wget <paste-link-address-here>
- You can download the agent deployment file by clicking on the Download link.
-
Deploy the Agent
- First, run the command copied from Step 3 to create the required Kubernetes secrets for the agent credentials.
- Once the secrets are created, deploy the agent by running the following command to apply the agent deployment file to your cluster:
kubectl apply -f /path/to/autobotAI-kubernetes-agent.yaml
-
Verify Installation
- To verify that the agent has been successfully deployed, run:
kubectl get pods -w
- Confirm that the autobotAI agent pod status is Running.
- To verify that the agent has been successfully deployed, run:
- After completing these steps, the agent will be added to the Kubernetes integration, and a message confirming successful registration will appear. You can now begin using this integration in your automation workflows, such as the no-code example below to retrieve namespaces information.