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:
-
Execute the following command to get the namespace of your workspace
kubectl get workspacesCopy the value under
WORKSPACE NAMESPACEcolumn for your workspace. This may NOT be identical to the Display Name of theWorkspace. -
Export the
WORKSPACE_NAMESPACEvariable: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 NAMESPACEcolumn for your project. This may NOT be identical to the Display Name of theProject. -
Export the
PROJECT_NAMESPACEvariable: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.1 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.13.9 kind: ClusterApp EOF
Then, you can verify the project logging stack installation for multi-tenant logging.
Kommander Documentation