By default Traefik access log level is set to WARNING. When troubleshooting access issues, for instance access to the DKP dashboard, the operator may need to increase the verbosity in Traefik logs so in this article we explain how to achieve this in DKP 2.4.
In DKP 2.4.0, Traefik default configuration is stored in the configmap “traefik-10.30.1-d2iq-defaults”. To override the default configuration, we should first identify which configmap should be modified with the values we’re looking to change. To do so we check the traefik appdeployment, specifically the value of the spec.configOverrides field:
kubectl --kubeconfig <kubeconfig> -n kommander get appdeployment traefik -ojsonpath='{.spec.configOverrides}'
{"name":"traefik-overrides"}
Then we have to edit the traefik-overrides configmap:
kubectl --kubeconfig <kubeconfig> -n kommander edit cm traefik-overrides
And add the following values to increase the traefik access log verbosity:
logs:
general:
level: DEBUG
access:
enabled: true
This is how the correct format looks like:
apiVersion: v1
data:
values.yaml: |
logs:
general:
level: DEBUG
access:
enabled: true
service:
annotations:
service.beta.kubernetes.io/aws-load-balancer-internal: "true"
kind: ConfigMap
metadata:
name: traefik-overrides
namespace: kommander