Pod 不可见

2023-12-28

我跟着Kubecon 西雅图 2018 Gitops 教程 https://github.com/bricef/gitops-tutorial一切正常,直到第四步, 但在第五步podinfo pod不可见。

观看 kubectl 获取 pod

NAME                                            READY   STATUS       RESTARTS AGE     
flux-cb9449876-mr477                            1/1     Running        0     130m    
memcached-57b897cc4-qdm9s                       1/1     Running        0     112m    
nginx-ingress-default-backend-c5449fb44-4hdsk   1/1     Running        0     117m

“kubectl get svc”的输出

NAME                            TYPE        CLUSTER-IP     EXTERNAL-IP   PORT(S)     AGE
kubernetes                      ClusterIP   10.96.0.1      <none>        443/TCP     55d
memcached                       ClusterIP   None           <none>        11211/TCP   3h8m
nginx-ingress-default-backend   ClusterIP   10.96.38.220   <none>        80/TCP      32d

podinfo 不可用

然后我查了一下日志

kubectl logs deploy/flux -n default -f

ts=2021-01-15T08:34:36.823063265Z caller=main.go:243 version=1.14.2
ts=2021-01-15T08:34:36.823163934Z caller=main.go:372 msg="using in cluster config to connect to the cluster"
ts=2021-01-15T08:34:36.855773345Z caller=main.go:457 component=cluster identity=/etc/fluxd/ssh/identity
ts=2021-01-15T08:34:36.855844999Z caller=main.go:458 component=cluster identity.pub="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDmURfuENXm4nFDeqLxPdWIlR5mxP/iuZvkAJP24+qBnXklLOW8tTSem3gWsXHiUqNYoz2H2GtnxYtE0tbC7hm2whx7sINsYScRZtbvbnbssJOOQVtqet9H8FA6mYNsB9T5OfC6z2P1XEK7meCOpyWFoX1wwfP2U7dp3B1vyilJ3m8Ye/pGp7Cc+JvDQA2h/QnHbnPmJuYSHs70viYGMMQf+iVMF8hUCcHGu+KBBmwHkuWxHnsJGgvK1ogyhTaFBnNA1uS6vZ0YWwG/YUvBDRdJweERH4GjU/r00GFrKRc4VdQtP9gZ0BeeCb/5BQI9Mv2KAtY/CMbW43XqIXIrJtFF"
ts=2021-01-15T08:34:36.855878612Z caller=main.go:463 host=https://10.96.0.1:443 version=kubernetes-v1.19.4
ts=2021-01-15T08:34:36.855945167Z caller=main.go:475 kubectl=/usr/local/bin/kubectl
ts=2021-01-15T08:34:36.857475549Z caller=main.go:487 ping=true
ts=2021-01-15T08:34:41.860632128Z caller=memcached.go:74 component=memcached err="Error setting memcache servers to 'memcached': lookup _memcached._tcp.memcached on 10.96.0.10:53: read udp 10.244.0.144:46398->10.96.0.10:53: read: connection refused"
ts=2021-01-15T08:34:41.860715996Z caller=main.go:623 [email protected] /cdn-cgi/l/email-protection:adamya21/flux-get-started user="Weave Flux" [email protected] /cdn-cgi/l/email-protection signing-key= verify-signatures=false sync-tag=flux-sync state=git readonly=false notes-ref=flux set-author=false git-secret=false
ts=2021-01-15T08:34:41.860752394Z caller=main.go:724 upstream="no upstream URL given"
ts=2021-01-15T08:34:41.860846781Z caller=main.go:753 metrics-addr=:3031
ts=2021-01-15T08:34:41.861358341Z caller=loop.go:100 component=sync-loop err="git repo not ready: git repo has not been cloned yet"
ts=2021-01-15T08:34:41.861387235Z caller=images.go:17 component=sync-loop msg="polling for new images for automated workloads"
ts=2021-01-15T08:34:41.861397564Z caller=images.go:27 component=sync-loop msg="no automated workloads"
ts=2021-01-15T08:34:41.865215548Z caller=main.go:745 addr=:3030
ts=2021-01-15T08:35:01.919748924Z caller=checkpoint.go:17 component=checkpoint err="Get https://checkpoint-api.weave.works/v1/check/weave-flux?arch=amd64&flag_cluster-version=kubernetes-v1.19.4&flag_git-configured=true&flag_kernel-version=3.10.0-1160.6.1.el7.x86_64&os=linux&signature=b616J%2FpWxkgLWhu2NhuEYNaTZMLW56FVIh0AMl3CsXw%3D&version=1.14.2: dial tcp: lookup checkpoint-api.weave.works on 10.96.0.10:53: read udp 10.244.0.144:41764->10.96.0.10:53: read: connection refused"
ts=2021-01-15T08:35:12.049527657Z caller=warming.go:154 component=warmer canonical_name=index.docker.io/fluxcd/flux auth={map[]} err="Get https://index.docker.io/v2/: context deadline exceeded"
ts=2021-01-15T08:35:32.054751173Z caller=warming.go:154 component=warmer canonical_name=quay.io/coreos/flannel auth={map[]} err="Get https://quay.io/v2/: dial tcp: lookup quay.io on 10.96.0.10:53: read udp 10.244.0.144:44141->10.96.0.10:53: read: connection refused"
ts=2021-01-15T08:35:51.869490983Z caller=memcached.go:156 component=memcached err="error updating memcache servers: lookup _memcached._tcp.memcached on 10.96.0.10:53: read udp 10.244.0.144:37208->10.96.0.10:53: i/o timeout"
ts=2021-01-15T08:36:02.055842273Z caller=warming.go:154 component=warmer canonical_name=index.docker.io/kubeless/function-controller auth={map[]} err="Get https://index.docker.io/v2/: context deadline exceeded"
ts=2021-01-15T08:36:22.062247221Z caller=warming.go:154 component=warmer canonical_name=index.docker.io/kubeless/http-trigger-controller auth={map[]} err="Get https://index.docker.io/v2/: dial tcp: lookup index.docker.io on 10.96.0.10:53: read udp 10.244.0.144:58701->10.96.0.10:53: i/o timeout"
ts=2021-01-15T08:36:37.065694566Z caller=warming.go:154 component=warmer canonical_name=index.docker.io/kubeless/cronjob-trigger-controller auth={map[]} err="Get https://index.docker.io/v2/: dial tcp: lookup index.docker.io on 10.96.0.10:53: read udp 10.244.0.144:56255->10.96.0.10:53: read: connection refused"
ts=2021-01-15T08:36:51.86884923Z caller=memcached.go:156 component=memcached err="error updating memcache servers: lookup _memcached._tcp.memcached on 10.96.0.10:53: read udp 10.244.0.144:34696->10.96.0.10:53: i/o timeout"
ts=2021-01-15T08:37:07.066591466Z caller=warming.go:154 component=warmer canonical_name=index.docker.io/fluxcd/flux auth={map[]} err="Get https://index.docker.io/v2/: context deadline exceeded"
ts=2021-01-15T08:37:22.071783513Z caller=warming.go:154 component=warmer canonical_name=index.docker.io/library/memcached auth={map[]} err="Get https://index.docker.io/v2/: dial tcp: lookup index.docker.io on 10.96.0.10:53: read udp 10.244.0.144:50783->10.96.0.10:53: read: connection refused"
ts=2021-01-15T08:37:47.255162253Z caller=warming.go:154 component=warmer canonical_name=quay.io/coreos/flannel auth={map[]} err="Get https://quay.io/v2/: dial tcp: lookup quay.io on 10.96.0.10:53: read udp 10.244.0.144:51041->10.96.0.10:53: i/o timeout"
ts=2021-01-15T08:37:51.868880178Z caller=memcached.go:156 component=memcached err="error updating memcache servers: lookup _memcached._tcp.memcached on 10.96.0.10:53: read udp 10.244.0.144:53053->10.96.0.10:53: i/o timeout"
ts=2021-01-15T08:38:07.261358033Z caller=warming.go:154 component=warmer canonical_name=index.docker.io/kubeless/function-controller auth={map[]} err="Get https://index.docker.io/v2/: dial tcp: lookup index.docker.io on 10.96.0.10:53: read udp 10.244.0.144:51588->10.96.0.10:53: read: connection refused"
ts=2021-01-15T08:38:22.266596926Z caller=warming.go:154 component=warmer canonical_name=index.docker.io/kubeless/http-trigger-controller auth={map[]} err="Get https://index.docker.io/v2/: dial tcp: lookup index.docker.io on 10.96.0.10:53: read udp 10.244.0.144:45953->10.96.0.10:53: read: connection refused"
ts=2021-01-15T08:38:47.271634599Z caller=warming.go:154 component=warmer canonical_name=index.docker.io/kubeless/cronjob-trigger-controller auth={map[]} err="Get https://index.docker.io/v2/: dial tcp: lookup index.docker.io on 10.96.0.10:53: read udp 10.244.0.144:39224->10.96.0.10:53: i/o timeout"
ts=2021-01-15T08:38:51.869713463Z caller=memcached.go:156 component=memcached err="error updating memcache servers: lookup _memcached._tcp.memcached on 10.96.0.10:53: read udp 10.244.0.144:55573->10.96.0.10:53: i/o timeout"
ts=2021-01-15T08:39:07.278346046Z caller=warming.go:154 component=warmer canonical_name=index.docker.io/fluxcd/flux auth={map[]} err="Get https://index.docker.io/v2/: dial tcp: lookup index.docker.io on 10.96.0.10:53: read udp 10.244.0.144:58529->10.96.0.10:53: read: connection refused"
ts=2021-01-15T08:39:27.284635089Z caller=warming.go:154 component=warmer canonical_name=index.docker.io/library/memcached auth={map[]} err="Get https://index.docker.io/v2/: dial tcp: lookup index.docker.io on 10.96.0.10:53: read udp 10.244.0.144:38726->10.96.0.10:53: read: connection refused"
ts=2021-01-15T08:39:41.862114925Z caller=loop.go:100 component=sync-loop err="git repo not ready: git clone --mirror: fatal: Could not read from remote repository., full output:\n Cloning into bare repository '/tmp/flux-gitclone668030573'...\nssh: Could not resolve hostname github.com: Try again\r\nfatal: Could not read from remote repository.\n\nPlease make sure you have the correct access rights\nand the repository exists.\n"
ts=2021-01-15T08:39:41.862170208Z caller=images.go:17 component=sync-loop msg="polling for new images for automated workloads"
ts=2021-01-15T08:39:41.862181078Z caller=images.go:27 component=sync-loop msg="no automated workloads"
ts=2021-01-15T08:39:51.868216785Z caller=memcached.go:156 component=memcached err="error updating memcache servers: lookup _memcached._tcp.memcached on 10.96.0.10:53: read udp 10.244.0.144:33252->10.96.0.10:53: read: connection refused"
ts=2021-01-15T08:39:52.291631976Z caller=warming.go:154 component=warmer canonical_name=index.docker.io/fluxcd/flux auth={map[]} err="Get https://index.docker.io/v2/: dial tcp: lookup index.docker.io on 10.96.0.10:53: read udp 10.244.0.144:51894->10.96.0.10:53: read: connection refused"
ts=2021-01-15T08:40:12.45973175Z caller=warming.go:154 component=warmer canonical_name=index.docker.io/library/memcached auth={map[]} err="Get https://index.docker.io/v2/: dial tcp: lookup index.docker.io on 10.96.0.10:53: read udp 10.244.0.144:51750->10.96.0.10:53: read: connection refused"
ts=2021-01-15T08:40:32.466746085Z caller=warming.go:154 component=warmer canonical_name=index.docker.io/fluxcd/flux auth={map[]} err="Get https://index.docker.io/v2/: dial tcp: lookup index.docker.io on 10.96.0.10:53: read udp 10.244.0.144:39214->10.96.0.10:53: i/o timeout"
ts=2021-01-15T08:40:51.867193019Z caller=memcached.go:156 component=memcached err="error updating memcache servers: lookup _memcached._tcp.memcached on 10.96.0.10:53: read udp 10.244.0.144:34552->10.96.0.10:53: read: connection refused"
ts=2021-01-15T08:40:57.471825512Z caller=warming.go:154 component=warmer canonical_name=quay.io/coreos/flannel auth={map[]} err="Get https://quay.io/v2/: dial tcp: lookup quay.io on 10.96.0.10:53: read udp 10.244.0.144:51462->10.96.0.10:53: read: connection refused"
ts=2021-01-15T08:41:17.480755902Z caller=warming.go:154 component=warmer canonical_name=index.docker.io/kubeless/function-controller auth={map[]} err="Get https://index.docker.io/v2/: dial tcp: lookup index.docker.io on 10.96.0.10:53: read udp 10.244.0.144:41731->10.96.0.10:53: read: connection refused"
ts=2021-01-15T08:41:37.485738783Z caller=warming.go:154 component=warmer canonical_name=index.docker.io/kubeless/http-trigger-controller auth={map[]} err="Get https://index.docker.io/v2/: dial tcp: lookup index.docker.io on 10.96.0.10:53: read udp 10.244.0.144:35485->10.96.0.10:53: i/o timeout"
ts=2021-01-15T08:41:51.869570177Z caller=memcached.go:156 component=memcached err="error updating memcache servers: lookup _memcached._tcp.memcached on 10.96.0.10:53: read udp 10.244.0.144:53611->10.96.0.10:53: read: connection refused"
ts=2021-01-15T08:42:02.492761138Z caller=warming.go:154 component=warmer canonical_name=index.docker.io/kubeless/cronjob-trigger-controller auth={map[]} err="Get https://index.docker.io/v2/: dial tcp: lookup index.docker.io on 10.96.0.10:53: read udp 10.244.0.144:54251->10.96.0.10:53: read: connection refused"
ts=2021-01-15T08:42:22.500097314Z caller=warming.go:154 component=warmer canonical_name=index.docker.io/fluxcd/flux auth={map[]} err="Get https://index.docker.io/v2/: dial tcp: lookup index.docker.io on 10.96.0.10:53: read udp 10.244.0.144:35717->10.96.0.10:53: i/o timeout"
ts=2021-01-15T08:42:37.7075323Z caller=warming.go:154 component=warmer canonical_name=index.docker.io/fluxcd/flux auth={map[]} err="Get https://index.docker.io/v2/: dial tcp: lookup index.docker.io on 10.96.0.10:53: read udp 10.244.0.144:34092->10.96.0.10:53: read: connection refused"
ts=2021-01-15T08:42:51.869000022Z caller=memcached.go:156 component=memcached err="error updating memcache servers: lookup _memcached._tcp.memcached on 10.96.0.10:53: read udp 10.244.0.144:60617->10.96.0.10:53: read: connection refused"
ts=2021-01-15T08:43:07.70982334Z caller=warming.go:154 component=warmer canonical_name=quay.io/coreos/flannel auth={map[]} err="Get https://quay.io/v2/: context deadline exceeded"
ts=2021-01-15T08:43:22.715332273Z caller=warming.go:154 component=warmer canonical_name=index.docker.io/kubeless/http-trigger-controller auth={map[]} err="Get https://index.docker.io/v2/: dial tcp: lookup index.docker.io on 10.96.0.10:53: read udp 10.244.0.144:55661->10.96.0.10:53: read: connection refused"
ts=2021-01-15T08:43:47.721153845Z caller=warming.go:154 component=warmer canonical_name=index.docker.io/kubeless/cronjob-trigger-controller auth={map[]} err="Get https://index.docker.io/v2/: dial tcp: lookup index.docker.io on 10.96.0.10:53: read udp 10.244.0.144:53155->10.96.0.10:53: i/o timeout"
ts=2021-01-15T08:43:51.868371209Z caller=memcached.go:156 component=memcached err="error updating memcache servers: lookup _memcached._tcp.memcached on 10.96.0.10:53: read udp 10.244.0.144:38345->10.96.0.10:53: read: connection refused"
ts=2021-01-15T08:44:07.725666709Z caller=warming.go:154 component=warmer canonical_name=index.docker.io/kubeless/function-controller auth={map[]} err="Get https://index.docker.io/v2/: dial tcp: lookup index.docker.io on 10.96.0.10:53: read udp 10.244.0.144:54325->10.96.0.10:53: read: connection refused"
ts=2021-01-15T08:44:27.731810955Z caller=warming.go:154 component=warmer canonical_name=index.docker.io/fluxcd/flux auth={map[]} err="Get https://index.docker.io/v2/: dial tcp: lookup index.docker.io on 10.96.0.10:53: read udp 10.244.0.144:40385->10.96.0.10:53: read: connection refused"
ts=2021-01-15T08:44:41.862497835Z caller=loop.go:100 component=sync-loop err="git repo not ready: git clone --mirror: fatal: Could not read from remote repository., full output:\n Cloning into bare repository '/tmp/flux-gitclone840919681'...\nssh: Could not resolve hostname github.com: Try again\r\nfatal: Could not read from remote repository.\n\nPlease make sure you have the correct access rights\nand the repository exists.\n"
ts=2021-01-15T08:44:41.862587482Z caller=images.go:17 component=sync-loop msg="polling for new images for automated workloads"
ts=2021-01-15T08:44:41.862600887Z caller=images.go:27 component=sync-loop msg="no automated workloads"
ts=2021-01-15T08:44:51.868365853Z caller=memcached.go:156 component=memcached err="error updating memcache servers: lookup _memcached._tcp.memcached on 10.96.0.10:53: read udp 10.244.0.144:55180->10.96.0.10:53: read: connection refused"
ts=2021-01-15T08:44:52.739621384Z caller=warming.go:154 component=warmer canonical_name=index.docker.io/library/memcached auth={map[]} err="Get https://index.docker.io/v2/: dial tcp: lookup index.docker.io on 10.96.0.10:53: read udp 10.244.0.144:57758->10.96.0.10:53: read: connection refused"
ts=2021-01-15T08:45:12.950133572Z caller=warming.go:154 component=warmer canonical_name=index.docker.io/fluxcd/flux auth={map[]} err="Get https://index.docker.io/v2/: dial tcp: lookup index.docker.io on 10.96.0.10:53: read udp 10.244.0.144:54777->10.96.0.10:53: read: connection refused"
ts=2021-01-15T08:45:32.954843685Z caller=warming.go:154 component=warmer canonical_name=index.docker.io/fluxcd/flux auth={map[]} err="Get https://index.docker.io/v2/: dial tcp: lookup index.docker.io on 10.96.0.10:53: read udp 10.244.0.144:35571->10.96.0.10:53: i/o timeout"
ts=2021-01-15T08:45:52.961057124Z caller=warming.go:154 component=warmer canonical_name=quay.io/coreos/flannel auth={map[]} err="Get https://quay.io/v2/: dial tcp: lookup quay.io on 10.96.0.10:53: read udp 10.244.0.144:56311->10.96.0.10:53: read: connection refused"
ts=2021-01-15T08:45:56.869193985Z caller=memcached.go:156 component=memcached err="error updating memcache servers: lookup _memcached._tcp.memcached on 10.96.0.10:53: read udp 10.244.0.144:37618->10.96.0.10:53: i/o timeout"
ts=2021-01-15T08:46:12.967348301Z caller=warming.go:154 component=warmer canonical_name=index.docker.io/kubeless/function-controller auth={map[]} err="Get https://index.docker.io/v2/: dial tcp: lookup index.docker.io on 10.96.0.10:53: read udp 10.244.0.144:55825->10.96.0.10:53: read: connection refused"
ts=2021-01-15T08:46:32.973536104Z caller=warming.go:154 component=warmer canonical_name=index.docker.io/kubeless/http-trigger-controller auth={map[]} err="Get https://index.docker.io/v2/: dial tcp: lookup index.docker.io on 10.96.0.10:53: read udp 10.244.0.144:45545->10.96.0.10:53: read: connection refused"
ts=2021-01-15T08:46:56.868726966Z caller=memcached.go:156 component=memcached err="error updating memcache servers: lookup _memcached._tcp.memcached on 10.96.0.10:53: read udp 10.244.0.144:45892->10.96.0.10:53: i/o timeout"
ts=2021-01-15T08:46:57.981027132Z caller=warming.go:154 component=warmer canonical_name=index.docker.io/kubeless/cronjob-trigger-controller auth={map[]} err="Get https://index.docker.io/v2/: dial tcp: lookup index.docker.io on 10.96.0.10:53: read udp 10.244.0.144:40489->10.96.0.10:53: read: connection refused"
ts=2021-01-15T08:47:17.986703183Z caller=warming.go:154 component=warmer canonical_name=index.docker.io/library/memcached auth={map[]} err="Get https://index.docker.io/v2/: dial tcp: lookup index.docker.io on 10.96.0.10:53: read udp 10.244.0.144:48203->10.96.0.10:53: read: connection refused"
ts=2021-01-15T08:47:38.155044126Z caller=warming.go:154 component=warmer canonical_name=index.docker.io/fluxcd/flux auth={map[]} err="Get https://index.docker.io/v2/: dial tcp: lookup index.docker.io on 10.96.0.10:53: read udp 10.244.0.144:42154->10.96.0.10:53: read: connection refused"
ts=2021-01-15T08:47:51.868894269Z caller=memcached.go:156 component=memcached err="error updating memcache servers: lookup _memcached._tcp.memcached on 10.96.0.10:53: read udp 10.244.0.144:51534->10.96.0.10:53: read: connection refused"
ts=2021-01-15T08:48:03.160403195Z caller=warming.go:154 component=warmer canonical_name=quay.io/coreos/flannel auth={map[]} err="Get https://quay.io/v2/: dial tcp: lookup quay.io on 10.96.0.10:53: read udp 10.244.0.144:35888->10.96.0.10:53: read: connection refused"
ts=2021-01-15T08:48:23.165321296Z caller=warming.go:154 component=warmer canonical_name=index.docker.io/kubeless/cronjob-trigger-controller auth={map[]} err="Get https://index.docker.io/v2/: dial tcp: lookup index.docker.io on 10.96.0.10:53: read udp 10.244.0.144:51039->10.96.0.10:53: i/o timeout"
ts=2021-01-15T08:48:38.169858629Z caller=warming.go:154 component=warmer canonical_name=index.docker.io/kubeless/function-controller auth={map[]} err="Get https://index.docker.io/v2/: dial tcp: lookup index.docker.io on 10.96.0.10:53: read udp 10.244.0.144:34557->10.96.0.10:53: read: connection refused"
ts=2021-01-15T08:48:51.870002998Z caller=memcached.go:156 component=memcached err="error updating memcache servers: lookup _memcached._tcp.memcached on 10.96.0.10:53: read udp 10.244.0.144:57020->10.96.0.10:53: read: connection refused"
ts=2021-01-15T08:49:08.170398368Z caller=warming.go:154 component=warmer canonical_name=index.docker.io/kubeless/http-trigger-controller auth={map[]} err="Get https://index.docker.io/v2/: context deadline exceeded"
ts=2021-01-15T08:49:08.176751205Z caller=warming.go:154 component=warmer canonical_name=index.docker.io/fluxcd/flux auth={map[]} err="Get https://index.docker.io/v2/: dial tcp: lookup index.docker.io on 10.96.0.10:53: read udp 10.244.0.144:54320->10.96.0.10:53: read: connection refused"
ts=2021-01-15T08:49:23.181095889Z caller=warming.go:154 component=warmer canonical_name=index.docker.io/library/memcached auth={map[]} err="Get https://index.docker.io/v2/: dial tcp: lookup index.docker.io on 10.96.0.10:53: read udp 10.244.0.144:52173->10.96.0.10:53: read: connection refused"
ts=2021-01-15T08:49:41.863283527Z caller=loop.go:100 component=sync-loop err="git repo not ready: git clone --mirror: fatal: Could not read from remote repository., full output:\n Cloning into bare repository '/tmp/flux-gitclone961961173'...\nssh: Could not resolve hostname github.com: Try again\r\nfatal: Could not read from remote repository.\n\nPlease make sure you have the correct access rights\nand the repository exists.\n"
ts=2021-01-15T08:49:41.863399735Z caller=images.go:17 component=sync-loop msg="polling for new images for automated workloads"
ts=2021-01-15T08:49:41.863413661Z caller=images.go:27 component=sync-loop msg="no automated workloads"
ts=2021-01-15T08:49:43.352663841Z caller=warming.go:154 component=warmer canonical_name=index.docker.io/fluxcd/flux auth={map[]} err="Get https://index.docker.io/v2/: dial tcp: lookup index.docker.io on 10.96.0.10:53: read udp 10.244.0.144:58389->10.96.0.10:53: read: connection refused"
ts=2021-01-15T08:49:56.869838102Z caller=memcached.go:156 component=memcached err="error updating memcache servers: lookup _memcached._tcp.memcached on 10.96.0.10:53: read udp 10.244.0.144:36917->10.96.0.10:53: i/o timeout"
ts=2021-01-15T08:50:08.359806772Z caller=warming.go:154 component=warmer canonical_name=index.docker.io/library/memcached auth={map[]} err="Get https://index.docker.io/v2/: dial tcp: lookup index.docker.io on 10.96.0.10:53: read udp 10.244.0.144:55293->10.96.0.10:53: i/o timeout"
ts=2021-01-15T08:50:23.364739403Z caller=warming.go:154 component=warmer canonical_name=index.docker.io/fluxcd/flux auth={map[]} err="Get https://index.docker.io/v2/: dial tcp: lookup index.docker.io on 10.96.0.10:53: read udp 10.244.0.144:37486->10.96.0.10:53: read: connection refused"
ts=2021-01-15T08:50:43.369517581Z caller=warming.go:154 component=warmer canonical_name=quay.io/coreos/flannel auth={map[]} err="Get https://quay.io/v2/: dial tcp: lookup quay.io on 10.96.0.10:53: read udp 10.244.0.144:54391->10.96.0.10:53: read: connection refused"
ts=2021-01-15T08:50:56.869860958Z caller=memcached.go:156 component=memcached err="error updating memcache servers: lookup _memcached._tcp.memcached on 10.96.0.10:53: read udp 10.244.0.144:37425->10.96.0.10:53: i/o timeout"
ts=2021-01-15T08:51:08.374763101Z caller=warming.go:154 component=warmer canonical_name=index.docker.io/kubeless/function-controller auth={map[]} err="Get https://index.docker.io/v2/: dial tcp: lookup index.docker.io on 10.96.0.10:53: read udp 10.244.0.144:33253->10.96.0.10:53: i/o timeout"
ts=2021-01-15T08:51:23.381632821Z caller=warming.go:154 component=warmer canonical_name=index.docker.io/kubeless/http-trigger-controller auth={map[]} err="Get https://index.docker.io/v2/: dial tcp: lookup index.docker.io on 10.96.0.10:53: read udp 10.244.0.144:54799->10.96.0.10:53: read: connection refused"
ts=2021-01-15T08:51:43.391650301Z caller=warming.go:154 component=warmer canonical_name=index.docker.io/kubeless/cronjob-trigger-controller auth={map[]} err="Get https://index.docker.io/v2/: dial tcp: lookup index.docker.io on 10.96.0.10:53: read udp 10.244.0.144:45664->10.96.0.10:53: read: connection refused"
ts=2021-01-15T08:51:56.922228566Z caller=memcached.go:156 component=memcached err="error updating memcache servers: lookup _memcached._tcp.memcached on 10.96.0.10:53: read udp 10.244.0.144:39847->10.96.0.10:53: i/o timeout"
ts=2021-01-15T08:52:08.577116075Z caller=warming.go:154 component=warmer canonical_name=index.docker.io/fluxcd/flux auth={map[]} err="Get https://index.docker.io/v2/: dial tcp: lookup index.docker.io on 10.96.0.10:53: read udp 10.244.0.144:34241->10.96.0.10:53: read: connection refused"
ts=2021-01-15T08:52:23.583223599Z caller=warming.go:154 component=warmer canonical_name=quay.io/coreos/flannel auth={map[]} err="Get https://quay.io/v2/: dial tcp: lookup quay.io on 10.96.0.10:53: read udp 10.244.0.144:46500->10.96.0.10:53: read: connection refused"
ts=2021-01-15T08:52:48.589070754Z caller=warming.go:154 component=warmer canonical_name=index.docker.io/kubeless/cronjob-trigger-controller auth={map[]} err="Get https://index.docker.io/v2/: dial tcp: lookup index.docker.io on 10.96.0.10:53: read udp 10.244.0.144:45452->10.96.0.10:53: i/o timeout"
ts=2021-01-15T08:52:56.870406732Z caller=memcached.go:156 component=memcached err="error updating memcache servers: lookup _memcached._tcp.memcached on 10.96.0.10:53: read udp 10.244.0.144:45356->10.96.0.10:53: i/o timeout"
ts=2021-01-15T08:53:08.598299259Z caller=warming.go:154 component=warmer canonical_name=index.docker.io/kubeless/function-controller auth={map[]} err="Get https://index.docker.io/v2/: dial tcp: lookup index.docker.io on 10.96.0.10:53: read udp 10.244.0.144:49505->10.96.0.10:53: read: connection refused"
ts=2021-01-15T08:53:28.603596415Z caller=warming.go:154 component=warmer canonical_name=index.docker.io/kubeless/http-trigger-controller auth={map[]} err="Get https://index.docker.io/v2/: dial tcp: lookup index.docker.io on 10.96.0.10:53: read udp 10.244.0.144:48330->10.96.0.10:53: i/o timeout"
ts=2021-01-15T08:53:53.611489439Z caller=warming.go:154 component=warmer canonical_name=index.docker.io/fluxcd/flux auth={map[]} err="Get https://index.docker.io/v2/: dial tcp: lookup index.docker.io on 10.96.0.10:53: read udp 10.244.0.144:56748->10.96.0.10:53: read: connection refused"
ts=2021-01-15T08:53:56.868358268Z caller=memcached.go:156 component=memcached err="error updating memcache servers: lookup _memcached._tcp.memcached on 10.96.0.10:53: read udp 10.244.0.144:45665->10.96.0.10:53: i/o timeout"
ts=2021-01-15T08:54:13.61821865Z caller=warming.go:154 component=warmer canonical_name=index.docker.io/library/memcached auth={map[]} err="Get https://index.docker.io/v2/: dial tcp: lookup index.docker.io on 10.96.0.10:53: read udp 10.244.0.144:36012->10.96.0.10:53: read: connection refused"
ts=2021-01-15T08:54:33.77844023Z caller=warming.go:154 component=warmer canonical_name=quay.io/coreos/flannel auth={map[]} err="Get https://quay.io/v2/: dial tcp: lookup quay.io on 10.96.0.10:53: read udp 10.244.0.144:51428->10.96.0.10:53: i/o timeout"
ts=2021-01-15T08:54:41.864143047Z caller=loop.go:100 component=sync-loop err="git repo not ready: git clone --mirror: fatal: Could not read from remote repository., full output:\n Cloning into bare repository '/tmp/flux-gitclone112489833'...\nssh: Could not resolve hostname github.com: Try again\r\nfatal: Could not read from remote repository.\n\nPlease make sure you have the correct access rights\nand the repository exists.\n"
ts=2021-01-15T08:54:41.864242844Z caller=images.go:17 component=sync-loop msg="polling for new images for automated workloads"
ts=2021-01-15T08:54:41.86426189Z caller=images.go:27 component=sync-loop msg="no automated workloads"
ts=2021-01-15T08:54:56.8692891Z caller=memcached.go:156 component=memcached err="error updating memcache servers: lookup _memcached._tcp.memcached on 10.96.0.10:53: read udp 10.244.0.144:60678->10.96.0.10:53: i/o timeout"
ts=2021-01-15T08:54:58.785614576Z caller=warming.go:154 component=warmer canonical_name=index.docker.io/kubeless/cronjob-trigger-controller auth={map[]} err="Get https://index.docker.io/v2/: dial tcp: lookup index.docker.io on 10.96.0.10:53: read udp 10.244.0.144:55230->10.96.0.10:53: read: connection refused"
ts=2021-01-15T08:55:18.792003267Z caller=warming.go:154 component=warmer canonical_name=index.docker.io/kubeless/function-controller auth={map[]} err="Get https://index.docker.io/v2/: dial tcp: lookup index.docker.io on 10.96.0.10:53: read udp 10.244.0.144:46652->10.96.0.10:53: read: connection refused"
ts=2021-01-15T08:55:38.797160671Z caller=warming.go:154 component=warmer canonical_name=index.docker.io/kubeless/http-trigger-controller auth={map[]} err="Get https://index.docker.io/v2/: dial tcp: lookup index.docker.io on 10.96.0.10:53: read udp 10.244.0.144:54356->10.96.0.10:53: read: connection refused"
ts=2021-01-15T08:55:56.869788329Z caller=memcached.go:156 component=memcached err="error updating memcache servers: lookup _memcached._tcp.memcached on 10.96.0.10:53: read udp 10.244.0.144:39315->10.96.0.10:53: i/o timeout"
ts=2021-01-15T08:56:03.804094799Z caller=warming.go:154 component=warmer canonical_name=index.docker.io/fluxcd/flux auth={map[]} err="Get https://index.docker.io/v2/: dial tcp: lookup index.docker.io on 10.96.0.10:53: read udp 10.244.0.144:37297->10.96.0.10:53: read: connection refused"
ts=2021-01-15T08:56:23.808771074Z caller=warming.go:154 component=warmer canonical_name=index.docker.io/library/memcached auth={map[]} err="Get https://index.docker.io/v2/: dial tcp: lookup index.docker.io on 10.96.0.10:53: read udp 10.244.0.144:52093->10.96.0.10:53: read: connection refused"
ts=2021-01-15T08:56:38.813264438Z caller=warming.go:154 component=warmer canonical_name=index.docker.io/fluxcd/flux auth={map[]} err="Get https://index.docker.io/v2/: dial tcp: lookup index.docker.io on 10.96.0.10:53: read udp 10.244.0.144:48563->10.96.0.10:53: read: connection refused"
ts=2021-01-15T08:56:56.869490937Z caller=memcached.go:156 component=memcached err="error updating memcache servers: lookup _memcached._tcp.memcached on 10.96.0.10:53: read udp 10.244.0.144:46779->10.96.0.10:53: i/o timeout"
ts=2021-01-15T08:57:08.958860392Z caller=warming.go:154 component=warmer canonical_name=index.docker.io/fluxcd/flux auth={map[]} err="Get https://index.docker.io/v2/: context deadline exceeded"

那么到底是什么导致了这个问题呢?是因为日志中连接被拒绝吗?


正如已经注意到的,您看到的错误意味着集群中的 DNS 配置存在问题。为了调试它,我建议使用调试 DNS 解析 https://kubernetes.io/docs/tasks/administer-cluster/dns-debugging-resolution/:

此页面提供有关诊断 DNS 问题的提示。

在那里您会发现一些需要检查的事项,以缩小问题范围。这些包括:

  • 检查本地DNS配置 https://kubernetes.io/docs/tasks/administer-cluster/dns-debugging-resolution/#check-the-local-dns-configuration-first

  • 检查 DNS Pod 是否正在运行 https://kubernetes.io/docs/tasks/administer-cluster/dns-debugging-resolution/#check-if-the-dns-pod-is-running

  • 检查 DNS pod 中是否有错误 https://kubernetes.io/docs/tasks/administer-cluster/dns-debugging-resolution/#check-for-errors-in-the-dns-pod

  • 检查DNS服务是否启动 https://kubernetes.io/docs/tasks/administer-cluster/dns-debugging-resolution/#is-dns-service-up

  • DNS 端点是否暴露? https://kubernetes.io/docs/tasks/administer-cluster/dns-debugging-resolution/#are-dns-endpoints-exposed

  • 是否正在接收/处理 DNS 查询? https://kubernetes.io/docs/tasks/administer-cluster/dns-debugging-resolution/#are-dns-queries-being-received-processed

  • and the 已知的问题 https://kubernetes.io/docs/tasks/administer-cluster/dns-debugging-resolution/#known-issues

有时只需重新启动 coredns 部署即可:

kubectl -n kube-system rollout restart deployment coredns

Or 安装 https://kubernetes.io/docs/tasks/administer-cluster/coredns/很新鲜。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Pod 不可见 的相关文章

  • 中止 `git stash apply` [重复]

    这个问题在这里已经有答案了 我很遗憾应用了存储 错误的分支 我如何撤消此操作并将我的存储返回到我的存储列表 以便稍后将其应用到正确的分支 如果你还没有承诺 你应该能够git stash再次 可能与git reset HEAD first A
  • Gitolite 与 LDAP 不工作

    我是 gitolite 的新手 我正在尝试用 gitolite 进行一个非常简单的测试 我已经设置了名为 test repo 的存储库 请注意 除了下面所述之外 我没有修改任何其他内容 我可以在 gitweb 中看到这个仓库 这是仓库配置
  • 使用 git filter-branch 然后 git push --force 清除大文件后,远程(Gitlab)上的 Git 存储库大小仍然很大

    我已按照 Gitlab 文档中有关 使用 Git 减少存储库大小 的说明进行操作 通过从历史记录中清除大文件 https docs gitlab com ee user project repository reducing the rep
  • 使用 Git 处理 subversion:忽略对跟踪文件的修改

    我目前正在使用 subversion 存储库 但我正在使用 git 在我的计算机上本地工作 它使工作变得更加容易 但也使 subversion 存储库中发生的一些不良行为变得非常明显 这给我带来了问题 拉取代码后 有一个有点复杂的本地构建过
  • 无法在 minikube 和 haproxy loadBalancer 中导出 IP

    我对 kubernetes 比较陌生 我已经在 virtualbox VM ubuntu 19 10 中安装了 minikube v1 5 2 我想创建一个可以从主机和访客访问的 Web 服务器 但是 我无法访问它或公开 IP 你可以帮帮我
  • 为什么 git 无法识别我的本地存储库?

    我刚刚回到一个我已经使用 Git 大约 6 个月的项目 看到了这个 cd d DEVELOP BlenderAe My repo root git status fatal not a git repository or any of th
  • 永久删除 git 提交历史记录

    我需要永久且完全删除 git 存储库的提交历史记录并继续使用文件的当前版本 旧版本 提交不得以任何方式访问 我尝试创建一个新的主分支 删除所有其他分支 但是当我在 git bash 中尝试 git show xxxx 时 旧的提交继续显示
  • github Diff 截断错误

    在 github 中发出拉取请求并审查更改时 我们收到了 Diff Truncated 错误 如下所示 任何人都可以帮助解决这个问题 拉取请求可能会触发以下提到的限制之一GitHub 支持 https stackoverflow com a
  • 使 .git 目录 web 不可访问

    我有一个网站 我使用 github 闭源 来跟踪更改和更新网站 唯一的问题是 git 目录似乎可以通过网络访问 我怎样才能停止这个并且仍然能够使用 git 我应该使用 htaccess 吗 我应该更改 git 的权限吗 把这个放在一个 ht
  • 仅将单个文件放入 git 子模块/存储库中

    我在 git 源代码存储库中有一个特定文件 其中包含生产设置 密码 我想限制此文件 以便只有制作团队的成员才能看到它 但是 我想控制它的变化 我考虑过在 git 中使用子模块 然后限制对新存储库的访问 然而 git 似乎需要子模块的整个子目
  • 套接字编程-listen() 和accept() 有什么区别?

    我一直在读本教程 http www cs rpi edu moorthy Courses os98 Pgms socket html了解套接字编程 看来listen and accept 系统调用都做同样的事情 即阻塞并等待客户端连接到使用
  • 如何将更改提交到另一个预先存在的分支

    我刚刚对一个分支进行了更改 如何将更改提交到另一个分支 我正在尝试使用 git checkout the commmit to the changed branch b the other branch 但是 我认为这不是正确的做法 因为在
  • 使用 SourceTree 克隆存储库

    有人可以给我一个简单的使用 SourceTree 克隆存储库的快速演练吗 在书签中 我单击克隆存储库 对于源路径 我粘贴如下所示的 URL 电子邮件受保护 cdn cgi l email protection 客户端 应用程序名称 ios
  • git update-index --no-assume-unchanged 不起作用

    我设置了assume unchanged咬了几个文件 现在我想取消它们 但这不起作用 gt git update index no assume unchanged Gemfile gt git ls files v grep Gemfil
  • 如何在没有本地存储库的情况下在远程运行 git 命令

    我有一个名为 git export 的脚本 它可以帮助我导出远程存储库 它是这样运行的 git export http host com git repo lt t tag or b branch or c commit gt local
  • git 的精简包是什么?

    我还没有找到太多关于瘦包的信息 并且手册页的信息对此相当含糊 我知道这与连接速度慢有关 但是什么是 连接速度慢 它的优点和缺点是什么 什么时候应该使用它 什么时候不应该使用它 根据记录 手册页 index pack https www gi
  • 如何与其他用户共享 bitbucket 存储库?

    我正在使用 Bit 存储桶 并且我想与一位朋友分享我的存储库 我用的是免费的个人账户 似乎有一个选项可以在位桶中创建团队 但它说它将把我的帐户从个人帐户转换为团队帐户 我不要那个 我如何授予其他用户访问此存储库的权限 有一个共享链接选项 如
  • 在 git 中记录前 10 个

    两个问题 如何从头到尾显示 git 中的前 10 个提交 无分行 如何指定提交索引并记录它 显示第二个或第三个 我知道 git 使用父级来链接提交 很容易从头到尾记录提交 喜欢 git log HEAD 10 但我需要从头到尾查询 可以吗
  • 如何防止克隆我的 github 存储库?

    我正在尝试找到一种方法来防止从 github 存储库克隆 例如 我有一个私有存储库 有些人在该存储库中工作 在公司计算机中 团队中的每个人都设置了授权级别 当我在 github 上为某个用户设置授权时 该存储库可在他 她自己的 github
  • Kubectl 推出重启以实现有状态集

    根据kubectl 文档 https kubernetes io docs reference generated kubectl kubectl commands rollout kubectl rollout restart适用于部署

随机推荐

  • 如何修复 Vim 中的 Home 和 End?

    我在 gnome terminal 2 26 0 中使用 vim 虽然我 95 的时间使用 导航到 EOL 使用 0 导航到相反的位置 但时不时地我会点击 Home 或 结尾 当我使用 Home 时 当前行中的文本会向下移动 使当前行处于插
  • Vim 中的合成视图和分割视图处理

    最近 我开始使用 syntastic 因为它大大简化了开发 唯一真正困扰我的是它如何处理分裂视图 我也使用 NERDtree 插件 每当我在 vsplit 视图中打开另一个文件时 就会发生以下情况 NERDTree file file
  • Webpack:如何在客户端(浏览器)端注入 process.env 运行时,使构建独立于环境

    简短问题 我正在寻找某种方式告诉 Webpack 不要做任何事情process变量 就像任何其他全局变量一样对待 因此它引用客户端捆绑包中的 window process 如果不可能 那么有一种方法可以注入变量process env在客户端
  • 用户和团队之间的关联和迁移(rails)

    我有这个用户和团队模型 它具有以下关联 user rb class User lt ActiveRecord Base belongs to team team rb class Team lt ActiveRecord Base has
  • 如何在其内部使用 lambda 函数?

    我有这段代码 不知道我想要实现的目标是否可能 acceptor async accept connections back gt socket this const boost system error code ec connection
  • \xdef\@fontenc@load@list{\@fontenc@load@list Rmarkdown 中未定义的控制序列

    我尝试编写一个非常简单的 Rmarkdown 文件来呈现为 pdf 但出现错误未定义的控制序列 文件 title Untitled author author date 3 2 2020 output pdf document whatev
  • 串口不工作?

    我编写了一个程序 将数据发送到我的arduino 它检测发送的内容 然后根据按下的键打开正确的引脚 当在我的 Windows 计算机上使用 arduino 软件时 arduino 草图工作正常 我可以通过发送 W A S 或 D 来打开和关
  • 找不到 com.android.tools.build:gradle:7.3.1

    我第一次安装 Android Studio 2021 3 1 17 并继续导入我的 Eclipse ADT 项目 项目本身的导入似乎进展顺利 但我收到以下错误 Could not find com android tools build g
  • Angular/Ionic 2 - 什么是提供者以及“static getparameters()”的作用是什么?

    我正在学习 Angular 2 使用 Ionic 2 有两个概念无法与 Angular 1 联系起来 我有一堂课如下 import App Platform from ionic angular import RegisterPage fr
  • 错误:当前上下文中不存在名称“Name”

    我已经去编辑代码了 gt 这绝不是一件好事 该代码用于 MVC 中的文件上传器 问题是我一次上传两个文件 这意味着它们被插入到数据库中的单独行中 这是原始代码 public ActionResult Index ViewData Messa
  • 双 SIM 卡中的 getAllCellInfo

    有谁知道列表中的单元格索引是否从返回TelephonyManager getAllCellInfo 与SIM卡槽号有关吗 我正在使用 Android API 24 经过一番实验 似乎运行该方法updateCellInfo 如下所述 始终返回
  • 添加新参考后如何查看工具箱中的组件?

    在我的项目中 我添加了对 WPFToolkit 程序集的引用 重新启动 Visual Studio 但在 VS ToolBox 窗口中没有看到 WPFToolkit 组件 我做错了什么 Toolbox 不会自动拾取引用程序集中的组件 控件
  • 是否可以强制 JavaScript 在使用变量之前声明变量?

    如果在没有先声明的情况下使用变量 是否可以通过在 JavaScript 代码中使用某些指令来引发警告或错误 如果这是不可能的 是否有一些插件可以强制 Eclipse 或任何其他 IDE 检测未声明的变量 是的 可以使用以下方法来做到这一点严
  • php < 5.3 的 finfo() 替代方案

  • VBA - 打开Excel,查找和替换,删除行,另存为csv

    我正在尝试用VBA编写一个程序 以便我可以从SAS 一种统计编程软件 远程操作excel文件 我希望该程序能够完成以下任务 打开指定的excel文件 查找标题行中的所有空白并将其替换为空 例如 测试名称 变为 测试名称 如果行中的第一个单元
  • 如何统计语料库文档中的字数

    我想知道计算文档中字数的最佳方法 如果我有自己的 corp txt 语料库设置 并且我想知道 students trust ayre 在文件 corp txt 中出现的频率 我可以用什么 会是以下之一吗 full nltk Text myc
  • 处理 Socket.ReceiveFrom 超时而不发送垃圾邮件控制台

    我正在编写一个 ServerLocator 它基本上广播一个端口来查找将使用 IPEndPoint 进行响应的服务器 并且如果在当前 IPHost 上找不到任何内容 我需要搜索能够超时 然后继续进行下一个 现在我正在做这样的事情 我已经删除
  • 我如何调用构造函数初始值设定项、base() 和 this()?

    这很容易解决 但我只是好奇我是否可以使用某种语言功能 或者该语言不允许它意味着我在类设计中犯了逻辑错误 我正在对我的代码进行自我审查 以帮助 强化 它以供重复使用 我刚刚遇到 public partial class TrackTyped
  • Htaccess 重定向具有匹配字符串的 url

    需要有关 oldtoys 中所有与 start 参数匹配的字符串的 301 重定向帮助 生成的 URL 不正确 http www abc com index php option com oldtoys view category Item
  • Pod 不可见

    我跟着Kubecon 西雅图 2018 Gitops 教程 https github com bricef gitops tutorial一切正常 直到第四步 但在第五步podinfo pod不可见 观看 kubectl 获取 pod NA