---
title: Create AAPM Agent Pod
slug: kronpam-how-to-guides/create-aapm-agent-pod
docTags: 
createdAt: 2025-03-18T12:47:45.642Z
---

The namespace where the AAPM Agent will be installed is determined. A default namespace can be added, or a new namespace can be created and installed under it.

### Inject Default Namespace

:::BlockQuote
\# kubectl label namespace<font color="#ae2121"> default</font> aapm-injection=enabled
namespace/default labeled&#x20;
\# kubectl get namespace -L aapm-injection
NAME STATUS AGE AAPM-INJECTION
default Active 28h enabled
kube-node-lease Active 28h
kube-public Active 28h
kube-public Active 28h
:::

### Create Kron PAM AAPM Namespace

`# kubectl create namespace kron-pam-aapm`

**Registration Key** is required for installation. A new **Registration Key** is created from the Kron PAM AAPM Agent screen. The agent is in the docker image. Installation is provided by downloading from Docker Hub.

![](https://api.archbee.com/api/optimize/g9cApVza9NIhSh0pjZYtA/D0Jsjd7kdbOtcpbymImdJ_image.png "Docker Hub")

:::BlockQuote
\# helm install kron-pam-aapm-agent kron-pam/kron-aapm-agent \\
&#x20; \--namespace kron-pam-aapm \\
&#x20; \--set image.tag=1.1.1\_amd64 \\
&#x20; \--create-namespace \\
&#x20; \--set secrets.installToken=**"\<Registration Key>"** \\
&#x20; \--set secrets.address="**\<Kron PAM IP Address>**"
:::

### Check Helm AAPM Agent Deployment

![](https://api.archbee.com/api/optimize/g9cApVza9NIhSh0pjZYtA/wACKgsC0TUPopRQFDVSL-_image.png "AAPM Agent Deployment")

:::BlockQuote
\# helm ls -n kron-pam-aapm
\# kubectl get deployment -n kron-pam-aapm
:::

### Check AAPM Agent Description

![](https://api.archbee.com/api/optimize/g9cApVza9NIhSh0pjZYtA/ASC2FfG9xB9j1ooPDBDp1_image.png "AAPM Agent Description")

