Getting started with Akita is as simple as dropping our Agent into your service or stack. Once we’re in, we gather all the data you need and surface it in the Akita app so you can easily see what your system is doing.
Below are instructions for starting a new ephemeral container with an Akita Agent sidecar in an existing Kubernetes pod.
In order to use this method, you must have:
- Kubernetes v1.18+
- Alpha features in Kubernetes enabled, and
kubectly debugspecifically must be enabled.
To get the Akita agent running as a sidecar in a new ephemeral container in a single Kubernetes service, you will:
- Meet the prerequisites
- Create an Akita Project
- Generate an API key for the Akita Agent
- Attach the Akita Agent as a sidecar
- Verify that the Akita Agent is working
Thanks to Bruno Felix, who experimented with this method and provided us with his examples!
You’ll need to be in our beta.
Your Kubernetes service must:
- have access to the public internet
- use unencrypted HTTP
- be version 1.18 or higher
- have alpha features enabled
Give your project a name that's easy to remember – you'll need it later, when you start the Akita Agent on the CLI.
On the same Settings page, locate and click the “API Keys” tab. Click the “Set up the Akita client” button. Copy your API key secret into your favorite password manager or somewhere else you can easily access it. Also note your API key, as you will need it later.
To attach the Akita Agent as a sidecar:
- Identify the name of the pod that is running the app or service you want Akita to monitor.
- Identify the port the pod is running on.
- Run the below command, inserting your Akita Project name, API key ID, and key secret.
kubectl debug -it myservice-xyzabc \ --image=akitasoftware/cli:latest \ --env="AKITA_API_KEY_ID=$AKITA_API_KEY_ID" \ --env="AKITA_API_KEY_SECRET=$AKITA_API_KEY_SECRET" \ -- akita apidump --service my-project-name
If the command was successful, you will see the
akita apidump output. Use Ctrl+C to stop the trace as if you were running normally from the command line.
In the Akita web console, check out the incoming data on the Model page. You should see a map of your API being generated as the Akita Agent gathers data.
Updated 17 days ago