> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/kubernetes-security/onboard-and-configure/onboard-the-kubernetes-connector.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# Onboard the Kubernetes Connector

Deploy and configure the Kubernetes Connector using the onboarding wizard.

Use the Kubernetes onboarding wizard to deploy the Kubernetes Connector. Select the capabilities you need, optionally adjust the advanced settings, and Cortex Cloud generates a custom installer for your cluster. Run the installer in your Kubernetes environment to give Cortex Cloud the permissions it needs to collect data and to complete onboarding. The connector then appears in **Kubernetes Connectors**.

1. Navigate to **Settings** → **Data Sources & Integrations**.
2. On the **Add Data Sources & Integrations** page, click **Create Integration**, search for **Kubernetes**, then hover over it and click **Add Another Instance**.
3. In the **Kubernetes Connect** onboarding wizard, enable the solutions that fit your needs:
   * **Posture Management:** (Enabled by default) A lightweight posture management solution for continuous discovery, policy enforcement, and proactive scanning of vulnerabilities, secrets, malware, compliance, and misconfigurations.
   * **Realtime Protection:** Monitors workloads in real time to detect and block malicious activity, instantly preventing attacks as they happen.
4. (Optional) Click **Edit** to configure advanced settings and then click **Apply Changes**:

### **Posture management**

| Setting                                            | Notes                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| -------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **Scan Cadence (Hours)**                           | Define how often to scan (from every one to 24 hours). Default is 12 hours.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| **Policy Enforcement by the Admission Controller** | Select to allow enforcement policies to be configured, ensuring that only compliant resources are admitted into the cluster.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| **Registry Scanning (OpenShift Only)**             | <p>Select this option to scan OpenShift Platform Registry images for vulnerabilities, malware, and exposed secrets.</p><p>Select the scanning configuration option to enable security checks for your images:</p><ul><li><strong>All</strong> (Default) Scans all container images, including all versions (tags), in all discovered repositories.</li><li><strong>Latest tag</strong>: Scans only images tagged 'latest' in all discovered repositories.</li><li><strong>Day modified</strong>: Scans container images created or modified in the last few days. You can select a range of up to 90 days for the scan. The default is set to 7.</li></ul><p>Refer to <a href="https://cortex-docs.paloaltonetworks.com/kubernetes-security/onboard-and-configure/mirror-connector-images-to-a-private-registry/openshift-container-registry.md">OpenShift container registry</a> for information on the instances that were automatically created by the Kubernetes deployment.</p> |

### Realtime protection

{% hint style="info" %}
**Notes**:

* On clusters running a Kubernetes Connector version earlier than 2.0, the Realtime protection settings are disabled and cannot be edited. To change the settings, remove the existing connector deployment from the cluster and install the latest available Kubernetes connector version.
* This option is not supported for Fargate.
* Enabling Realtime protection installs the agent on your Kubernetes clusters as a DaemonSet.
  {% endhint %}

| Setting                                | Notes                                                                                                                                                                                                                                                                                                                                                                                                         |
| -------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p><strong>Agent type</strong><br></p> | Determines which Cortex agent the Kubernetes Connector deploys to your cluster Nodes for real-time protection. Select **Cloud optimized agent** for runtime and threat detection with a lower resource footprint on each Node. Select **XDR agent** for full endpoint protection, including active threat prevention and response. Both agent types deploy as a DaemonSet to every Linux Node in the cluster. |
| **Node Selector**                      | Enter node labels to run the agent only on nodes that match those labels. Leave empty to run the agent on all eligible nodes. The node's platform type (for example, Standard, Bottlerocket OS, Google Container-Optimized OS, or OpenShift) is detected automatically.                                                                                                                                       |
| **Endpoint tags**                      | Select endpoint tags with relevant context to assign to agents during installation. You can reference the full list of tags under **All endpoints**.                                                                                                                                                                                                                                                          |

5. (Optional) Click **Edit Profile** to customize the Kubernetes Connector's profile:

| Setting                         | Notes                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| ------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Profile Name**                | A profile name is automatically generated, including the date and time of creation. You can manually change the profile name.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| **Version**                     | <p>Select which version of the Kubernetes Connector to install.</p><p>Each entry in that version list now shows the correlated XDR (Linux real-time) agent version next to the bundle version.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| **Cluster Resource Identifier** | <p>(Optional) Enter the Kubernetes cluster resource identifier. If you do not specify the resource identifier, the installer will identify the cluster on its own.</p><div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p><strong>Note</strong></p><p>For Fargate, you must provide the cluster resource identifier.</p><p>The format of the identifier is <code>arn:aws:eks:\<region>:\<account-id>:cluster/\<cluster-name></code>.</p></div><p>For on-premises Kubernetes, Rancher, and self-managed OpenShift clusters, you can set a readable cluster name in the Helm values instead. For details, see <a href="https://cortex-docs.paloaltonetworks.com/kubernetes-security/onboard-and-configure/onboard-the-kubernetes-connector/set-a-custom-cluster-name.md">Set a custom name for an on-premises Kubernetes cluster.</a></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| **Namespace**                   | <p>Enter the Kubernetes namespace for the connector. The default is <code>panw</code>.</p><div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p><strong>Note: AWS Fargate</strong></p><p>Before you install, create a Fargate profile for the connector namespace. If the cluster runs only on Fargate, also create one for <code>kube-system</code>. Cortex Cloud identifies a Fargate cluster at installation by finding running pods, so a profile with no running pods isn't recognized. If you later move the cluster from EC2 to Fargate, update the connector to trigger a new scan, so the cluster is identified and monitored correctly.</p></div>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| **Proxy Gateway**               | <p>Enable this option if network traffic between Cortex Cloud and your Kubernetes cluster must route through a proxy gateway. Enter the following details:</p><ul><li><strong>Proxy IP</strong>: The full IP address and port number for your HTTP proxy server. For example: <code>192.168.1.1:8080</code></li><li><p><strong>Authentication</strong>: Select <strong>None</strong> or <strong>Basic</strong>. Enter the username and password for a proxy user account that has permission to pass traffic to the Kubernetes cluster.</p><div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p><strong>Note</strong></p><p>Basic authentication is only supported in Posture Management. If deploying Realtime Protection, select <strong>None</strong> .</p></div></li></ul>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| **Auto Upgrade**                | <p>Enable <strong>Auto Upgrade</strong> to ensure the Kubernetes Connector and its installed capabilities are automatically updated to a newer version when available. This minimizes manual maintenance and ensures continuous access to the latest features and security patches.</p><p>Select the <strong>Upgrade Strategy</strong>:</p><ul><li><strong>Latest Available Version (GA)</strong>: Automatically upgrade to the newest version as soon as it is released to gain immediate access to all new features.</li><li><p><strong>One release before the latest one (N-1)</strong>: Maintain a policy to always remain one version behind the latest available release.</p><div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p><strong>Note</strong></p><p>If you install the latest version but select the N-1 strategy, this policy will take effect starting from the next upgrade cycle (it will not immediately downgrade your current installation).</p><p>If you choose an older version and keep the latest strategy, the latest version will be installed.</p></div></li></ul><p>Select <strong>Advanced</strong> to customize the upgrade schedule. Define whether to be upgraded immediately or to delay the upgrade by a specified number of days. You can then specify the preferred day and time for the upgrade to be applied.</p> |

6. Click **Generate**, then follow the instructions to complete the deployment.
7. Verify the deployment succeeded when you see **Status: Deployed**.

   When the Kubernetes Connector is deployed, the initial discovery scan is started, and the connector appears in **Data Sources & Integrations** → **Kubernetes** → **Kubernetes Connectors**.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://cortex-docs.paloaltonetworks.com/kubernetes-security/onboard-and-configure/onboard-the-kubernetes-connector.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
