Customizing Logging Stack Applications
This page provides instructions on how you can customize the Logging Stack Applications in DKP.
Retrieve the Workspace Namespace
On the Management Cluster, execute the following command to get the namespace of your workspace:
CODEdkp get workspaces
Copy the value under the
NAMESPACE
column for your workspace.Set the
WORKSPACE_NAMESPACE
variable to the namespace copied in the previous step
How to customize Logging Stack Applications
On the Attached or Managed Cluster, retrieve the kubeconfig for the cluster.
Apply the ConfigMap directly to the managed/attached cluster using the name,
logging-operator-logging-overrides
:CODEcat <<EOF | kubectl apply -f - apiVersion: v1 kind: ConfigMap metadata: name: logging-operator-logging-overrides namespace: ${WORKSPACE_NAMESPACE} data: values.yaml: | <insert config here> EOF
Customized ConfigMap Example
This is an example of an ConfigMap that contains customized resource request and limit values for fluentd
:
apiVersion: v1
kind: ConfigMap
metadata:
name: logging-operator-logging-overrides
namespace: kommander
data:
values.yaml: |
fluentd:
resources:
limits:
cpu: 1
memory: 2000Mi
requests:
cpu: 1
memory: 1500Mi