traefik: 1.1.0 kubernetes panic: send on closed channel
This has happened twice (2) in the last hour since i upgraded to 1.1.0 in our development cluster.
The last log message before the panic was:
time="2016-11-22T14:43:00Z" level=error msg="Kubernetes connection error failed to decode watch event: GET \"https://127.0.0.1:9443/apis/extensions/v1beta1/ingresses\" : unexpected EOF, retrying in 639.617334ms"
panic: send on closed channel
goroutine 4420 [running]:
panic(0xd292c0, 0xc4203f96a0)
/usr/local/go/src/runtime/panic.go:500 +0x1a1
github.com/containous/traefik/provider/k8s.(*clientImpl).watch.func1.1(0xc42050e900, 0xc420141260, 0xc420221080, 0x26, 0xc420141200)
/go/src/github.com/containous/traefik/provider/k8s/client.go:280 +0x33f
created by github.com/containous/traefik/provider/k8s.(*clientImpl).watch.func1
/go/src/github.com/containous/traefik/provider/k8s/client.go:286 +0xbf
I run traefik like this:
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: traefik-ingress-controller
namespace: kube-system
labels:
app: traefik-ingress-lb
spec:
template:
metadata:
labels:
k8s-app: traefik-ingress-lb
name: traefik-ingress-lb
spec:
terminationGracePeriodSeconds: 30
hostNetwork: true
containers:
- image: traefik:v1.1.0
name: traefik-ingress-lb
imagePullPolicy: Always
resources:
limits:
cpu: 1000m
memory: 500Mi
requests:
cpu: 200m
memory: 100Mi
ports:
- containerPort: 80
hostPort: 80
- containerPort: 8081
args:
- --retry.attempts=8
- --retry
- --web
- --web.address=:8081
- --kubernetes
- --kubernetes.endpoint=https://127.0.0.1:9443
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 20 (15 by maintainers)
Fixed by #900 Thanks @jonaz @thaume for your help 😃