Asking for help? Comment out what you need so we can get more information to help you!
Cluster information:
Kubernetes version: v.17.3
Cloud being used: (put bare-metal if not on a public cloud) No
Installation method: kubeadm
Host OS: RedHat 7.7
CNI and version: flannel
CRI and version:
You can format your yaml by highlighting it and pressing Ctrl-Shift-C, it will make your output easier to read.
kube-system coredns-6955765f44-tblgj 0/1 Running 0 5d9h
kube-system coredns-6955765f44-x9fwc 0/1 Running 0 5d9h
kube-system etcd-podaac-testk8s 1/1 Running 1 5d9h
kube-system kube-apiserver-podaac-testk8s 1/1 Running 1 5d9h
kube-system kube-controller-manager-podaac-testk8s 1/1 Running 1 5d9h
kube-system kube-flannel-ds-amd64-8tfc5 1/1 Running 0 5d9h
kube-system kube-flannel-ds-amd64-dwf29 1/1 Running 1 5d9h
kube-system kube-flannel-ds-amd64-zvr82 1/1 Running 0 5d9h
kube-system kube-proxy-gz65p 1/1 Running 1 5d9h
kube-system kube-proxy-kg8xd 1/1 Running 0 5d9h
kube-system kube-proxy-xjlgp 1/1 Running 0 5d9h
kube-system kube-scheduler-podaac-testk8s 1/1 Running 1 5d9h
kubectl get service kube-dns --namespace=kube-system
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
kube-dns ClusterIP 10.96.0.10 53/UDP,53/TCP,9153/TCP 5d9h
But no endpoint:
kubectl get ep kube-dns --namespace=kube-system
NAME ENDPOINTS AGE
kube-dns 5d9h
Error Log
E0220 02:30:26.768407 1 reflector.go:125] pkg/mod/k8s.io/client-go@v0.0.0-20190620085101-78d2af792bab/tools/cache/reflector.go:98: Failed to list *v1.Service: Get https://10.96.0.1:443/api/v1/services?limit=500&resourceVersion=0: dial tcp 10.96.0.1:443: i/o timeout
E0220 02:30:26.768407 1 reflector.go:125] pkg/mod/k8s.io/client-go@v0.0.0-20190620085101-78d2af792bab/tools/cache/reflector.go:98: Failed to list *v1.Service: Get https://10.96.0.1:443/api/v1/services?limit=500&resourceVersion=0: dial tcp 10.96.0.1:443: i/o timeout
Here is the output from iptables
iptables -L INPUT
Chain INPUT (policy ACCEPT)
target prot opt source destination
KUBE-SERVICES all – anywhere anywhere ctstate NEW /* kubernetes service portals /
KUBE-EXTERNAL-SERVICES all – anywhere anywhere ctstate NEW / kubernetes externally-visible service portals */
-A INPUT -m conntrack --ctstate NEW -m comment --comment “kubernetes service portals” -j KUBE-SERVICES
-A INPUT -m conntrack --ctstate NEW -m comment --comment “kubernetes externally-visible service portals” -j KUBE-EXTERNAL-SERVICES
it’s conntrack only. Not accept
Good evening, good morning,
Sorry for digging up the topic, but I have the same problem, as a bonus, I have a calico pod that is not on the IP pool, try to do:
E0403 13:54:46.663175 1 reflector.go:140] k8s.io/client-go@v0.26.0/tools/cache/reflector.go:169: Failed to watch *v1.Secret: failed to list *v1.Secret: Get "https://10.43.0.1:443/api/v1/namespaces/cert-manager/secrets?fieldSelector=metadata.name%3Dcert-manager-webhook-ca&resourceVersion=49236": dial tcp 10.43.0.1:443: i/o timeout