https://github.com/cilium/cilium
Revision e459cdb7a16ed420d81921975a45c8c16f27c418 authored by Thomas Graf on 27 January 2019, 21:18:56 UTC, committed by Ian Vernon on 29 January 2019, 16:49:19 UTC
[ upstream commit f616d20685cb638ab2fd8819d2a7e84faa7bd716 ]

Check for unmanaged kube-dns pods every 15 seconds and restart these pods
automatically. This avoids requiring to document the need to restart kube-dns
during installation and helps bring up the etcd-operator a lot smoother.

In order to avoid restarting cycles, a minimal age of the kube-dns pod is
required before restarting. This is set to 30 seconds for now.

Log example message
```
level=info msg="Restarting unmanaged kube-dns pod kube-system/coredns-cd9c8565f-tq4mc started 58.414470847s ago" subsys=cilium-operator
```

Signed-off-by: Thomas Graf <thomas@cilium.io>
Signed-off-by: Joe Stringer <joe@cilium.io>
1 parent ea14baf
History
Tip revision: e459cdb7a16ed420d81921975a45c8c16f27c418 authored by Thomas Graf on 27 January 2019, 21:18:56 UTC
operator: Automatically restart unmanaged kube-dns pods
Tip revision: e459cdb
File Mode Size
.github
.travis
Documentation
api
bpf
bugtool
cilium
cilium-health
common
contrib
daemon
envoy
examples
hack
monitor
operator
pkg
plugins
proxylib
test
tests
tools
vendor
.authors.aux -rw-r--r-- 416 bytes
.gitignore -rw-r--r-- 857 bytes
.gitmodules -rw-r--r-- 0 bytes
.mailmap -rw-r--r-- 737 bytes
.travis.yml -rw-r--r-- 424 bytes
AUTHORS -rw-r--r-- 5.6 KB
CODEOWNERS -rw-r--r-- 1.1 KB
CONTRIBUTING.md -rw-r--r-- 193 bytes
Dockerfile -rw-r--r-- 1.9 KB
Dockerfile.builder -rw-r--r-- 1.1 KB
Gopkg.lock -rw-r--r-- 33.4 KB
Gopkg.toml -rw-r--r-- 12.5 KB
Jenkinsfile.nightly -rw-r--r-- 4.7 KB
LICENSE -rw-r--r-- 11.1 KB
Makefile -rw-r--r-- 11.5 KB
Makefile.defs -rw-r--r-- 1.3 KB
Makefile.quiet -rw-r--r-- 456 bytes
NEWS.rst -rw-r--r-- 20 bytes
README.rst -rw-r--r-- 14.7 KB
VERSION -rw-r--r-- 10 bytes
Vagrantfile -rw-r--r-- 11.9 KB
cilium-docker-plugin.Dockerfile -rw-r--r-- 511 bytes
cilium-operator.Dockerfile -rw-r--r-- 507 bytes
docs.Jenkinsfile -rw-r--r-- 2.6 KB
flannel.Jenkinsfile -rw-r--r-- 3.2 KB
ginkgo-kubernetes-all.Jenkinsfile -rw-r--r-- 6.5 KB
ginkgo.Jenkinsfile -rw-r--r-- 4.2 KB
kubernetes-upstream.Jenkinsfile -rw-r--r-- 4.2 KB

README.rst

back to top