Create Project-level logging AppDeployments
![](../../__attachments/89360826/Enterprise_50%25.png?inst-v=fbc98f0a-f9ae-4d4c-828f-dc0defe966ca)
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:
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.CODEdkp get workspaces
Copy the values under the
NAME
andNAMESPACE
columns for your workspace.Export the
WORKSPACE_NAME
variable:CODEexport WORKSPACE_NAME=<WORKSPACE_NAME>
Export the
WORKSPACE_NAMESPACE
variable:CODEexport WORKSPACE_NAMESPACE=<WORKSPACE_NAMESPACE>
Execute the following command to get the namespace of your project:
CODEkubectl 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 theProject
.Export the
PROJECT_NAME
variable:CODEexport PROJECT_NAME=<PROJECT_NAME>
Copy these commands and execute them from a command line:
CODEdkp create appdeployment project-grafana-loki --app project-grafana-loki-0.48.3 --workspace ${WORKSPACE_NAME} --project ${PROJECT_NAME} dkp create appdeployment project-grafana-logging --app project-grafana-logging-6.28.0 --workspace ${WORKSPACE_NAME} --project ${PROJECT_NAME}
Then, you can Verify the Project Logging Stack Installation for multi-tenant logging.