Skip to main content
Skip table of contents

Create Project-level Logging AppDeployments

How to create Project-level AppDeployments for use in multi-tenant logging

You must create AppDeployments in the Project namespace to enable and deploy the logging stack to all clusters within a Project. You can use the CLI to do this, or use the DKP UI to enable the logging applications.

To create the AppDeployments needed for Project-level logging, follow these steps on the management cluster:

  1. Determine the name and namespace of the workspace that your project is in. You can use the dkp get workspaces command to see the list of workspace names and their corresponding namespaces.

    CODE
    dkp get workspaces

    Copy the values under the NAME and NAMESPACE columns for your workspace.

  2. Export the WORKSPACE_NAME variable:

    CODE
    export WORKSPACE_NAME=<WORKSPACE_NAME>
  3. Export the WORKSPACE_NAMESPACE variable:

    CODE
    export WORKSPACE_NAMESPACE=<WORKSPACE_NAMESPACE>
  4. Execute the following command to get the namespace of your project:

    CODE
    kubectl get projects -n ${WORKSPACE_NAMESPACE}

    Copy the value under the NAME column for your project. This may NOT be identical to the Display Name of the Project.

  5. Export the PROJECT_NAME variable:

    CODE
    export PROJECT_NAME=<PROJECT_NAME>
  6. Copy these commands and execute them from a command line:

    CODE
    dkp create appdeployment project-grafana-loki --app project-grafana-loki-0.48.6 --workspace ${WORKSPACE_NAME} --project ${PROJECT_NAME}
    dkp create appdeployment project-grafana-logging --app project-grafana-logging-6.38.1 --workspace ${WORKSPACE_NAME} --project ${PROJECT_NAME}

Then, you can Verify the Project Logging Stack Installation for multi-tenant logging.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.