> ## Documentation Index
> Fetch the complete documentation index at: https://docs.plerion.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Validate Helm release

> Verify that Plerion's collector manager has been installed successfully and is running with the correct configuration.

## Steps to validate Helm release

<Steps>
  <Step title="Check Helm release status">
    Confirm that the Helm release deployed successfully:

    ```shell theme={"system"}
    helm status plerion-collector-manager -n plerion-system
    ```

    **Example output**:

    ```
    NAME: plerion-collector-manager
    LAST DEPLOYED: Tue Nov 21 09:18:00 2023
    NAMESPACE: plerion-system
    STATUS: deployed
    REVISION: 1
    ```
  </Step>

  <Step title="Verify collector manager pods are running">
    Ensure the pods are in the `Running` state and not stuck in `Pending` or `CrashLoopBackOff`:

    ```shell theme={"system"}
    kubectl get pods -n plerion-system
    ```

    **Example output**:

    ```
    NAME                                         READY   STATUS    RESTARTS   AGE
    plerion-collector-manager-ccbc55c5d-dr27w    1/1     Running   0          10m
    plerion-collector-manager-ccbc55c5d-x255n    1/1     Running   0          10m
    ```

    #### Common issues

    * **CrashLoopBackOff**: Inspect pod logs for configuration or dependency errors.
      ```shell theme={"system"}
      kubectl logs <pod-name> -n plerion-system
      ```

    * **Pending**: Check node resources and pod scheduling constraints (e.g., CPU/memory, nodeSelector, or taints).
  </Step>

  <Step title="Confirm tenant and integration IDs">
    Verify that the values in the collector manager secret match those shown on the Plerion platform:

    * **TENANT\_ID**: [Settings page](https://app.plerion.com/settings)
    * **INTEGRATION\_ID**: [Kubernetes integration page](https://app.plerion.com/settings/integrations/Kubernetes/integration)

    To view the secret values:

    <Warning>
      Running this command will display secrets in plain text. Use with caution.
    </Warning>

    ```shell theme={"system"}
    kubectl get secret plerion-collector-manager -n plerion-system \
      -o go-template='{{range $key, $value := .data}}{{printf "%s: %s\n" $key ($value | base64decode )}}{{end}}'
    ```

    **Example output**:

    ```
    INTEGRATION_ID: [redacted]
    INTEGRATION_KEY: [redacted]
    TENANT_ID: [redacted]
    ```

    To view the applied configmap:

    ```shell theme={"system"}
    kubectl get configmap plerion-collector-manager -n plerion-system \\
      -o go-template='{{range $key, $value := .data}}{{printf "%s: %s\\n" $key $value }}{{end}}'
    ```

    **Example output**:

    ```
    APP_URL: https://au.app.plerion.com
    CLIENT_BURST: 10
    CLIENT_QPS: 5
    HEALTH_PROBE_BIND_ADDRESS: :8081
    HTTP_MAX_RETRY_ATTEMPTS: 3
    HTTP_MAX_RETRY_BACKOFF: 30s
    HTTP_MIN_RETRY_BACKOFF: 1s
    LEADER_ELECTION: true
    METRICS_BIND_ADDRESS: :8080
    ```
  </Step>
</Steps>
