From version 1.1
edited by matto
on 2018/06/03 04:49
To version 2.1
edited by matto
on 2018/06/13 17:10
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,4 +2,3 @@
1 -
2 2  
3 3  
4 4  Note: 1. and 2. Apply for master and all workers
... ... @@ -243,4 +243,38 @@
243 243  )))
244 244  
245 245  
245 +== Issue with kubernetes DNS: ==
246 +
247 +when running this command:
248 +
249 +(% class="box" %)
250 +(((
251 +kubectl get pods ~-~-namespace=kube-system -l k8s-app=kube-dns
252 +)))
253 +
254 +kubernetes DNS has been crashing:
255 +
256 +
257 +(% class="box" %)
258 +(((
259 +root@master:~~# kubectl get pods ~-~-namespace=kube-system -l k8s-app=kube-dns
260 +NAME READY STATUS RESTARTS AGE
261 +kube-dns-86f4d74b45-tr5jk 2/3 **CrashLoopBackOff** 1313 7d
262 +)))
263 +
264 +This is what actually helped to restart the DNS:
265 +
266 +(% class="box" %)
267 +(((
268 +systemctl stop kubelet
269 +systemctl stop docker
270 +iptables ~-~-flush
271 +iptables -tnat ~-~-flush
272 +iptables -P FORWARD ACCEPT
273 +systemctl start docker
274 +systemctl start kubelet
275 +kubectl delete pods -n kube-system -l k8s-app=kube-dns
276 +)))
277 +
278 +
246 246  
CodeGravity.com ©
Web
Analytics Made Easy - StatCounter