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:
-
Execute the following command to get the namespace of your workspace
kubectl get workspaces
Copy the value under
WORKSPACE NAMESPACE
column for your workspace. This may NOT be identical to the Display Name of theWorkspace
. -
Export the
WORKSPACE_NAMESPACE
variable:export WORKSPACE_NAMESPACE=<WORKSPACE_NAMESPACE>
-
Execute the following command to get the namespace of your project
kubectl get projects -n ${WORKSPACE_NAMESPACE}
Copy the value under
PROJECT NAMESPACE
column for your project. This may NOT be identical to the Display Name of theProject
. -
Export the
PROJECT_NAMESPACE
variable:export PROJECT_NAMESPACE=<PROJECT_NAMESPACE>
-
Copy this command and execute it from a command line:
cat <<EOF | kubectl apply -f - --- apiVersion: apps.kommander.d2iq.io/v1alpha2 kind: AppDeployment metadata: name: project-grafana-loki namespace: ${PROJECT_NAMESPACE} spec: appRef: name: project-grafana-loki-0.33.2 kind: ClusterApp --- apiVersion: apps.kommander.d2iq.io/v1alpha2 kind: AppDeployment metadata: name: project-grafana-logging namespace: ${PROJECT_NAMESPACE} spec: appRef: name: project-grafana-logging-6.20.6 kind: ClusterApp EOF
Then, you can verify the project logging stack installation for multi-tenant logging.