k8s v1.15.0
修改日志级别
k edit ds kube-proxy -n kube-system
增加kube-system命名空间下coredns Pod
k get endpoints kube-dns -n kube-system -oyaml
持续输出kube-proxy日志
docker logs -f `docker ps | grep kube-proxy | grep -v pause | awk '{print $1}'`
pkg/proxy/config/config.go
NewEndpointsConfig函数
kube-proxy监听endpoints变化
handleUpdateEndpoints函数
k get cm kube-proxy -n kube-system -oyaml | grep mode
pkg/proxy/ipvs/proxier.go
OnEndpointsUpdate函数
pkg/proxy/endpoints.go
endpointsToEndpointsMap函数
输出最新endpoints列表
标签:kube,system,endpoint,proxy,日志,endpoints,pkg From: https://www.cnblogs.com/WJQ2017/p/17410524.html