Before you begin, ensure that you have the following:

  • Access to the Kubiya platform

  • A Kubernetes cluster up and running

  • Appropriate permissions to make configurations

  • An Agent with Kubernetes integration enabled

Using the Kubernetes API (kubectl) from within Agents

The only requirement in order to use kubectl commands from within agents is to have a self-hosted agent on Kubernetes. The agent base image already include the kubectl binary as well as an automatic detection that it is running from within Kubernetes.

The agent will configure the relevant in-cluster Kubernetes context based on the hosting cluster automatically - allowing to use kubectl directly from within an agent conversation

Last updated