k3s version v1.26.3+k3s1
Docker version 23.0.3
Traefik 2.9.4
default installation with traefik
curl -sfL https://get.k3s.io | sh -
Check for Ready node, takes ~30 seconds
sudo k3s kubectl get node
adding configuration according to k3s instructions and traefik commands
https://docs.k3s.io/helm
apiVersion: helm.cattle.io/v1
kind: HelmChartConfig
metadata:
name: traefik
namespace: kube-system
spec:
valuesContent: |-
additionalArguments:
--accesslog=true
--global.checknewversion
--providers.docker=true
--providers.docker.exposedByDefault=false
--entrypoints.web.http.redirections.entryPoint.to=:443
--entrypoints.web.http.redirections.entryPoint.scheme=https
I also used such a command , the result is the same
--providers.docker.endpoint=unix:///var/run/docker.sock
level=error msg="Provider connection error Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?, retrying in 1.642087069s" providerName=docker
the user is a member of the docker group and executes docker commands , just like root
What did you see instead?
Provider connection error Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
What version of Traefik are you using?
Traefik 2.9.4
What is your environment & configuration?
apiVersion: helm.cattle.io/v1
kind: HelmChartConfig
metadata:
name: traefik
namespace: kube-system
spec:
valuesContent: |-
additionalArguments:
- --accesslog=true
- --global.checknewversion
- --providers.docker=true
- --providers.docker.exposedByDefault=false
- --entrypoints.web.http.redirections.entryPoint.to=:443
- --entrypoints.web.http.redirections.entryPoint.scheme=https
If applicable, please paste the log output in DEBUG level
level=error msg="Provider connection error Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?, retrying in 1.642087069s" providerName=docker