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 tag --contains 如何工作?

    从几天前开始 我一直在尝试确定在哪个版本 由标签指定 中部署了特定修复 由提交指定 这里的一些帖子发布了这一点git tag contains是收集这些信息的方法 但是选项的文档 https git scm com docs git tag
  • 将主分支的提交合并到另一个分支,但不合并两个分支

    我有 git 存储库和一个主分支 我决定开发新功能 并且创建了新分支 new branch 我已经在 new branch 中创建了一些提交 但我还没有完成新功能 我决定修复 master 分支中的一些错误 因此我切换到 master 分支
  • GKE 上的 Ingress 仍处于“后端不健康”状态

    Given 一个运行 nginx 的简单 pod 节点端口服务 一个入口 当拨打电话时pod从集群内部我们得到 200 响应代码 当拨打电话时service从集群内部我们得到 200 响应代码 入口显示为注释 ingress kuberne
  • gitattributes 中的`* text=auto eol=lf` 会做什么?

    我们的 gitattributes 文件中有这样的内容 text auto eol lf 我想准确理解这是做什么的 第一部分是text auto 来自文档 http git scm com docs gitattributes 这确保了所有
  • 如何摆脱 gerrit 中的错误依赖关系

    看起来 当使用 gerrit 时 默认情况下所有更改都依赖于前一个更改 我不会分支进行新的更改 我只是在主分支上工作 然后将提交的更改推送到远程源 主分支 即使两次提交彼此无关 每次都会创建依赖关系 我遇到了一些问题 这让我认为我没有正确地
  • 如何使用 LoadBalancer 服务从 Azure Kubernetes 内部获取客户端 IP 地址

    我正在获取节点 IP 地址而不是客户端 IP 地址 是否可以使用 type 的服务获取客户端 IPLoadBalancer 或者我需要使用入口控制器吗 apiVersion v1 kind Service metadata name app
  • 将远程更改合并到非当前分支的分支中

    我有多个分支 我想将远程更改合并到一个分支中不是我当前的分支 例如 git merge remote branch some other branch 仅当本地分支可以快速转发到远程头时 这才是可行的 在任何分支中 要从源获取远程分支并更新
  • 更改 Windows 安装的 Git Bash 中 ~ 目录的位置

    我什至不确定我问的是正确的问题 让我解释一下我的情况 这是关于 Windows 7 上的 Git 我的公司在网络驱动器上设置 Windows 用户目录 而不是在本地硬盘驱动器上 用于备份和超出本问题范围的其他目的 我无法改变这项政策 然而
  • 如何更改全局 git 设置以在拉取期间进行 git 合并

    目前 我的全局设置设置为在 git pull 期间执行变基操作 我希望它默认将其更改为 git merge 如何更改此设置 TL DR git config global pull rebase false 有点细节 Git 使用配置pul
  • 使用 JWT 的 Istio Origin 身份验证不起作用

    我一直在使用 JWT 将身份验证策略应用于我的测试服务 我已关注本指南 https istio io docs tasks security authn policy end user authentication它确实按预期工作了 但是
  • Git 和重定向

    我注意到 当 git html 项目页面如下所示 https github com fruux sabre dav 被克隆 以这种方式 git clone https github com fruux sabre dav 实际生成的远程 U
  • 为什么 cmake 在 git commit 后编译所有内容

    假设我有时在 Linux 上使用 cmake 2 8 编译一段代码 我更改了一个文件 my changed file 运行 cmake 并且只构建了这个文件 到目前为止 一切都很好 现在我想提交这个 git add my changed f
  • 如何在 pod 之间或 kubernetes 集群中的节点之间复制文件?

    在 kubernetes 集群中可以这样做吗 我发现的所有示例都是从本地磁盘复制到 Pod 反之亦然 或者是从一个节点复制到另一个节点的唯一选项 例如通过 SSH SCP 或使用其他实用程序 无法进行集群到集群的复制 你需要使用kubect
  • Eclipse git checkout(又名恢复)

    是否可以做相当于git checkout在 Eclipse 中使用 Egit 插件 我有一个已修改的文件 我想放弃更改并将文件恢复到源存储库中的内容 在 Subversion 中 这称为恢复 在 git 中 相当于 checkout 我在团
  • 是否有 git-merge --dry-run 选项?

    我正在合并一个可能有很多冲突的远程分支 我怎么知道它是否会发生冲突 我没有看到任何类似的东西 dry run on git merge 如前所述 传入 no commit标志 但为了避免快进提交 也传入 no ff 像这样 git merg
  • 是否可以使用“最小”算法进行交互式添加?

    当从快照计算变更集时 Git 并不总是正确选择块边界 git diff has a diff algorithm允许在这方面进行一些调整的选项 git diff minimal有时会给出比git diff alone 有没有办法获得相同的优
  • 获取 Pod 处于挂起状态的平均时间

    我正在尝试使用 prometheus 计算 pod 在 grafana 中处于挂起状态的平均时间 我可以使用此查询生成一个图表 以获取一段时间内处于挂起状态的 Pod 数量 sum kube pod status phase phase P
  • 获取 git 存储库中每个文件的提交计数

    我正在寻找一种方法来查看有关 git 存储库中每个文件更改频率的统计信息 基本上 文件提交的频率实际上与以前的版本不同 此外 有没有办法获取文件上次更改的日期 我是一个 git 新手 还没有发现任何关于此的信息 任何帮助将不胜感激 这里有两
  • Visual Studio 2017 - 无法将提交的更改推送到本地存储库

    我在 Win 10 Enterprise 上运行 VS 2017 Enterprise 15 7 3 我的本地硬盘上有一个 git 存储库 我在其中进行了一些更改 现在希望使用 VS 将这些更改 提交并推送 到我们位于网络文件共享之一的中央
  • 如何将 tfvc 迁移到 Git(包括历史记录)

    我们计划从 tfvc 迁移到 Git 版本控制 我们有一些 GB 的代码和数千个变更集 我阅读了一些文章并浏览了 Microsoft 文档 发现了 2 个选项 提示迁移 我可以在其中使用 Azure Devops 内置工具 导入存储库 它有

随机推荐

  • 如何修复 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