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 Kommander UI to enable the logging applications.
To create the AppDeployments needed for Project-level logging, follow these steps on the management cluster:
-
Set the environment variables needed for this procedure with the command:
export WORKSPACE_NAMESPACE=$(kubectl get workspace <type_your_workspace_name> -o jsonpath='{.status.namespaceRef.name}') export PROJECT_NAMESPACE=$(kubectl get project -n ${WORKSPACE_NAMESPACE} <type_your_project_name> -o jsonpath='{.status.namespaceRef.name}')
-
Copy this command and execute it from a command line:
cat <<EOF | kubectl apply -f - --- apiVersion: apps.kommander.d2iq.io/v1alpha1 kind: AppDeployment metadata: name: project-grafana-loki namespace: ${PROJECT_NAMESPACE} spec: appRef: name: project-grafana-loki-0.33.1 --- apiVersion: apps.kommander.d2iq.io/v1alpha1 kind: AppDeployment metadata: name: project-grafana-logging namespace: ${PROJECT_NAMESPACE} spec: appRef: name: project-grafana-logging-6.13.9 EOF
Then, you can verify the project logging stack installation for multi-tenant logging.