> ## Documentation Index
> Fetch the complete documentation index at: https://coralogix-193a2008-facade-sync-4ab5cdd.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Setup kubernetes complete observability integration

# Use case: Setup Kubernetes Complete Observability integration

Coralogix’s Kubernetes Complete Observability provides a comprehensive solution for full-stack observability in your Kubernetes environment. View all of your nodes, pods and cluster metrics, pod logs, and k8s events, as well as your distributed traces pipeline. Take advantage of our Kubernetes Dashboard using our pre-configured OpenTelemetry Collector.

## Prerequisites

* A Coralogix **Send-Your-Data API key**
* **Helm v3.9+** installed and configured
* Your [Coralogix domain](https://coralogix.com/docs/user-guides/account-management/account-settings/coralogix-domain/) (e.g., `eu2.coralogix.com`)
* A Kubernetes secret named `coralogix-keys`, that includes the key `PRIVATE_KEY`.

  If not already created, run:

```json theme={null}
kubectl create secret generic coralogix-keys --from-literal=PRIVATE_KEY="<private_key>"
```

## Steps

**Step 1: Install the Helm Chart for the Integration**

```json theme={null}
helm repo add coralogix https://cgx.jfrog.io/artifactory/coralogix-charts-virtual
helm repo update
```

Run the following command to deploy the integration. Make sure that you replace the `<cluster name>` with your cluster name and `<coralogix_domain>` with your Coralogix domain.

```json theme={null}
helm upgrade --install otel-coralogix-integration coralogix/otel-integration --version=0.0.166 --render-subchart-notes --set global.domain="<domain_name>" --set global.clusterName="<cluster_name>"
```

**Step 2: Obtain your API key ID**

Navigate to **Settings → Keys** to download the details of the Send-Your-Data API key you choose to use for this integration.

<img src="https://mintlify.s3.us-west-1.amazonaws.com/coralogix-193a2008-facade-sync-4ab5cdd/images/api_key_details.png" alt="api_key_details.png" />

Open the downloaded file and extract the `keyId` field value.

**Step 3: Register the Integration via API**

Use the following HTTP request to persist the integration metadata:

**POST** `/v1/integrations/metadata`

**Request Body**

```json theme={null}
{
    
    "integrationKey": "otel-agent-k8s",
    "version": "0.0.166",
    "specificData": {
        "$case": "integrationParameters",
        "integrationParameters": {
            "parameters": [
                {
                    "key": "CollectorName",
                    "value": {
                        "$case": "stringValue",
                        "stringValue": "otel-collector-for-k8s"
                    }
                },
                {
                    "key": "ApplicationName",
                    "value": {
                        "$case": "stringValue",
                        "stringValue": "otel"
                    }
                },
                {
                    "key": "SubsystemName",
                    "value": {
                        "$case": "stringValue",
                        "stringValue": "integration"
                    }
                },
                {
                    "key": "PrivateKey",
                    "value": {
                        "$case": "apiKey",
                        "apiKey": {
                            "id": "<api_key_id>"
                        }
                    }
                },
                {
                    "key": "LogsCollection",
                    "value": {
                        "$case": "booleanValue",
                        "booleanValue": true
                    }
                }
            ]
        }
    }
    
}
```

**Sample response**

```json theme={null}
{
    "integrationId": "07867979-55e5-4c73-8c54-474cd2f54124"
}
```
