https://github.com/ImDevinC/traefik-k8s-secret-header/issues/3 This error is expected if the service is not running in Kubernetes. Not sure if there's a better way to handle this to not trigger the error though