您好,安装报错,能指导一下吗?

[root@kube-master1 c7nctl-0.20.0]# ./c7nctl install -c config.yml --no-timeout --version=0.21 --debug
2020/03/18 10:13:59 [INFO] getting resource https://file.choerodon.com.cn/choerodon-install/version.yml
2020/03/18 10:14:00 [INFO] getting resource https://file.choerodon.com.cn/choerodon-install/0.21/install.yml
2020/03/18 10:14:00 [INFO] namespace c7n-system already exists
2020/03/18 10:14:00 [DEBUG] ignore create pv because specify storage class and no other persistence config
2020/03/18 10:14:01 [INFO] waiting slaver running…
2020/03/18 10:14:02 [INFO] waiting slaver running…
2020/03/18 10:14:02 [INFO] clean history jobs…
2020/03/18 10:14:02 [INFO] start install postgresql
2020/03/18 10:14:02 [DEBUG] ignore create pv because specify storage class and no other persistence config
2020/03/18 10:14:02 [INFO] using exist release postgresql
2020/03/18 10:14:02 [INFO] start install mysql
2020/03/18 10:14:02 [DEBUG] ignore create pv because specify storage class and no other persistence config
2020/03/18 10:14:02 [INFO] using exist release mysql
2020/03/18 10:14:02 [INFO] start install redis
2020/03/18 10:14:02 [INFO] using exist release redis
2020/03/18 10:14:02 [INFO] start install gitlab
2020/03/18 10:14:02 [DEBUG] ignore create pv because specify storage class and no other persistence config
2020/03/18 10:14:03 [INFO] Waiting postgresql running
2020/03/18 10:14:03 [DEBUG] postgresql: resource password is changeme123
2020/03/18 10:14:03 [DEBUG] checking postgresql-postgresql:5432
2020/03/18 10:14:03 [INFO] Waiting redis running
2020/03/18 10:14:03 [DEBUG] PreValue GITLAB_BASE_DOMAIN: gitlab.ume.choerodon.io, checking: clusterdomain
2020/03/18 10:14:03 [DEBUG] send request to slaver 0
2020/03/18 10:14:03 [DEBUG] Get status code: 200 of 195.168.233.192
2020/03/18 10:14:03 [DEBUG] send request to slaver 1
2020/03/18 10:14:03 [DEBUG] Get status code: 200 of 195.168.53.193
2020/03/18 10:14:03 [DEBUG] send request to slaver 2
2020/03/18 10:14:03 [DEBUG] Get status code: 200 of 195.168.195.1
2020/03/18 10:14:03 [DEBUG] send request to slaver 3
2020/03/18 10:14:03 [DEBUG] Get status code: 200 of 195.168.119.129
2020/03/18 10:14:03 [DEBUG] send request to slaver 4
2020/03/18 10:14:03 [DEBUG] Get status code: 200 of 195.168.9.65
2020/03/18 10:14:03 [DEBUG] send request to slaver 5
2020/03/18 10:14:03 [DEBUG] Get status code: 200 of 195.168.102.66
2020/03/18 10:14:03 [DEBUG] send request to slaver 6
2020/03/18 10:14:03 [DEBUG] Get status code: 200 of 195.168.169.65
2020/03/18 10:14:03 [INFO] request http://gitlab.ume.choerodon.io/c7n/acme-challenge
2020/03/18 10:14:05 [INFO] request http://gitlab.ume.choerodon.io/c7n/acme-challenge
2020/03/18 10:14:07 [INFO] request http://gitlab.ume.choerodon.io/c7n/acme-challenge
2020/03/18 10:14:09 [INFO] request http://gitlab.ume.choerodon.io/c7n/acme-challenge
2020/03/18 10:14:11 [INFO] request http://gitlab.ume.choerodon.io/c7n/acme-challenge
2020/03/18 10:14:13 [INFO] request http://gitlab.ume.choerodon.io/c7n/acme-challenge
2020/03/18 10:14:15 [INFO] request http://gitlab.ume.choerodon.io/c7n/acme-challenge
2020/03/18 10:14:17 [INFO] request http://gitlab.ume.choerodon.io/c7n/acme-challenge
2020/03/18 10:14:19 [INFO] request http://gitlab.ume.choerodon.io/c7n/acme-challenge
2020/03/18 10:14:21 [INFO] request http://gitlab.ume.choerodon.io/c7n/acme-challenge
2020/03/18 10:14:23 [INFO] request http://gitlab.ume.choerodon.io/c7n/acme-challenge
2020/03/18 10:14:23 [Error] 请检查您的域名: gitlab.ume.choerodon.io 已正确解析到集群
2020/03/18 10:14:23 [Error] install failed
Error: resp code 404 not is 2xx or 3xx
Usage:
c7nctl install [flags]

Flags:
-c, --config-file string User Config file to read from, User define config by this file
–debug enable debug output
-h, --help help for install
–no-timeout disable install job timeout
–prefix string add prefix to all helm release
-r, --resource-file string Resource file to read from, It provide which app should be installed
–skip-input use default username and password to avoid user input
–version string specify a version

Global Flags:
–config string config file (default is $HOME/.c7n.yaml)
-o, --orgCode string org code
-p, --proCode string pro code

resp code 404 not is 2xx or 3xx

你在集群服务器上可以ping 这个域名吗?

如果可以,将 coredns 重启试一下。

可以ping通这个域名,coredns也重启过,但是安装时还是会报这个错。

首先确认集群的所有服务器都可以 ping 通这个域名;

如果都可以,验证集群 pods 是否可以 ping 通,运行一个 busybox,进入了容器ping 这个域名

kubectl run busybox --image=busybox --command -- sleep 360000
kubectl exec -it busybox-xxx sh
------------
# ping gitlab.ume.choerodon.io

最后贴一下你的 coredns 的 configmap

coredns的configmap配置:
apiVersion: v1
kind: ConfigMap
metadata:
name: coredns
namespace: kube-system
labels:
addonmanager.kubernetes.io/mode: EnsureExists
data:
Corefile: |
.:53 {
errors
health
kubernetes cluster.local in-addr.arpa ip6.arpa {
pods insecure
upstream
fallthrough in-addr.arpa ip6.arpa
}
prometheus :9153
proxy . /etc/resolv.conf
cache 30
loop
reload
loadbalance
}
ume.choerodon.io:53 {
errors
cache 30
proxy . 10.221.8.67
}

您好:
[root@kube-master1 ~]# kubectl get po
NAME READY STATUS RESTARTS AGE
busybox-7c4cd75b8-sv6ck 1/1 Running 0 20s
nfs-client-provisioner-666957674-zmkt4 1/1 Running 0 8d
[root@kube-master1 ~]# kubectl exec -it busybox-7c4cd75b8-sv6ck sh
/ # ping gitlab.ume.choerodon.io
PING gitlab.ume.choerodon.io (10.221.8.61): 56 data bytes
64 bytes from 10.221.8.61: seq=0 ttl=63 time=0.355 ms
64 bytes from 10.221.8.61: seq=1 ttl=63 time=0.357 ms
64 bytes from 10.221.8.61: seq=2 ttl=63 time=0.312 ms
64 bytes from 10.221.8.61: seq=3 ttl=63 time=0.384 ms
64 bytes from 10.221.8.61: seq=4 ttl=63 time=0.316 ms
^C
gitlab.ume.choerodon.io ping statistics —
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 0.312/0.344/0.384 ms
/ #

集群的所有服务器都可以ping通
[root@kube-master1 ~]# ansible all -m shell -a ‘ping gitlab.ume.choerodon.io -c 4’
10.221.8.65 | SUCCESS | rc=0 >>
PING gitlab.ume.choerodon.io (10.221.8.61) 56(84) bytes of data.
64 bytes from kube-master1 (10.221.8.61): icmp_seq=1 ttl=64 time=0.301 ms
64 bytes from kube-master1 (10.221.8.61): icmp_seq=2 ttl=64 time=0.298 ms
64 bytes from kube-master1 (10.221.8.61): icmp_seq=3 ttl=64 time=0.257 ms
64 bytes from kube-master1 (10.221.8.61): icmp_seq=4 ttl=64 time=0.210 ms

gitlab.ume.choerodon.io ping statistics —
4 packets transmitted, 4 received, 0% packet loss, time 3000ms
rtt min/avg/max/mdev = 0.210/0.266/0.301/0.040 ms
10.221.8.66 | SUCCESS | rc=0 >>
PING gitlab.ume.choerodon.io (10.221.8.61) 56(84) bytes of data.
64 bytes from kube-master1 (10.221.8.61): icmp_seq=1 ttl=64 time=0.305 ms
64 bytes from kube-master1 (10.221.8.61): icmp_seq=2 ttl=64 time=0.273 ms
64 bytes from kube-master1 (10.221.8.61): icmp_seq=3 ttl=64 time=0.289 ms
64 bytes from kube-master1 (10.221.8.61): icmp_seq=4 ttl=64 time=0.259 ms

gitlab.ume.choerodon.io ping statistics —
4 packets transmitted, 4 received, 0% packet loss, time 3000ms
rtt min/avg/max/mdev = 0.259/0.281/0.305/0.024 ms
10.221.8.64 | SUCCESS | rc=0 >>
PING gitlab.ume.choerodon.io (10.221.8.61) 56(84) bytes of data.
64 bytes from kube-master1 (10.221.8.61): icmp_seq=1 ttl=64 time=0.275 ms
64 bytes from kube-master1 (10.221.8.61): icmp_seq=2 ttl=64 time=0.250 ms
64 bytes from kube-master1 (10.221.8.61): icmp_seq=3 ttl=64 time=0.209 ms
64 bytes from kube-master1 (10.221.8.61): icmp_seq=4 ttl=64 time=0.234 ms

gitlab.ume.choerodon.io ping statistics —
4 packets transmitted, 4 received, 0% packet loss, time 3000ms
rtt min/avg/max/mdev = 0.209/0.242/0.275/0.024 ms
10.221.8.61 | SUCCESS | rc=0 >>
PING gitlab.ume.choerodon.io (10.221.8.61) 56(84) bytes of data.
64 bytes from kube-master1 (10.221.8.61): icmp_seq=1 ttl=64 time=0.090 ms
64 bytes from kube-master1 (10.221.8.61): icmp_seq=2 ttl=64 time=0.061 ms
64 bytes from kube-master1 (10.221.8.61): icmp_seq=3 ttl=64 time=0.079 ms
64 bytes from kube-master1 (10.221.8.61): icmp_seq=4 ttl=64 time=0.061 ms

gitlab.ume.choerodon.io ping statistics —
4 packets transmitted, 4 received, 0% packet loss, time 2999ms
rtt min/avg/max/mdev = 0.061/0.072/0.090/0.016 ms
10.221.8.63 | SUCCESS | rc=0 >>
PING gitlab.ume.choerodon.io (10.221.8.61) 56(84) bytes of data.
64 bytes from kube-master1 (10.221.8.61): icmp_seq=1 ttl=64 time=0.272 ms
64 bytes from kube-master1 (10.221.8.61): icmp_seq=2 ttl=64 time=0.217 ms
64 bytes from kube-master1 (10.221.8.61): icmp_seq=3 ttl=64 time=0.218 ms
64 bytes from kube-master1 (10.221.8.61): icmp_seq=4 ttl=64 time=0.276 ms

gitlab.ume.choerodon.io ping statistics —
4 packets transmitted, 4 received, 0% packet loss, time 3000ms
rtt min/avg/max/mdev = 0.217/0.245/0.276/0.034 ms
10.221.8.68 | SUCCESS | rc=0 >>
PING gitlab.ume.choerodon.io (10.221.8.61) 56(84) bytes of data.
64 bytes from kube-master1 (10.221.8.61): icmp_seq=1 ttl=64 time=0.307 ms
64 bytes from kube-master1 (10.221.8.61): icmp_seq=2 ttl=64 time=0.273 ms
64 bytes from kube-master1 (10.221.8.61): icmp_seq=3 ttl=64 time=0.257 ms
64 bytes from kube-master1 (10.221.8.61): icmp_seq=4 ttl=64 time=0.253 ms

gitlab.ume.choerodon.io ping statistics —
4 packets transmitted, 4 received, 0% packet loss, time 3000ms
rtt min/avg/max/mdev = 0.253/0.272/0.307/0.026 ms
10.221.8.67 | SUCCESS | rc=0 >>
PING gitlab.ume.choerodon.io (10.221.8.61) 56(84) bytes of data.
64 bytes from kube-master1 (10.221.8.61): icmp_seq=1 ttl=64 time=0.249 ms
64 bytes from kube-master1 (10.221.8.61): icmp_seq=2 ttl=64 time=0.241 ms
64 bytes from kube-master1 (10.221.8.61): icmp_seq=3 ttl=64 time=0.240 ms
64 bytes from kube-master1 (10.221.8.61): icmp_seq=4 ttl=64 time=0.237 ms

gitlab.ume.choerodon.io ping statistics —
4 packets transmitted, 4 received, 0% packet loss, time 3000ms
rtt min/avg/max/mdev = 0.237/0.241/0.249/0.019 ms

我看见 10.221.8.67 是节点服务器,也是dns服务器吗?

ume.choerodon.io:53 {
  errors
  cache 30
  proxy . 10.221.8.67
}

您好,10.221.8.67是外部DNS的地址,指向集群的。

你好,我这边在本地复现了你配置进行安装,并没有出现域名解析的问题。

你进入c7n-system 命令空间下的 c7n-slaver-* 试一下是否能 ping 通域名。

如果 ping ·不通 ,问题就在这里了。将这些 pods 都重启应该就可以解决这个问题了。

您好,进入c7n-system 命令空间下的 c7n-slaver-* 试一下可以ping 通域名,但是安装时还是会报域名解析的错误。

[root@kube-master1 ~]# kubectl logs -f c7n-slaver-22wzs -n c7n-system
2020/03/27 04:22:24 [INFO] server starting on :9000
2020/03/27 04:23:29 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:23:29 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:23:40 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:23:40 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:23:51 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:23:51 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:24:02 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:24:02 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:24:13 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:24:13 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:24:24 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:24:24 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:24:35 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:24:35 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:24:46 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:24:46 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:24:57 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:24:57 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:25:08 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:25:08 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:25:19 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:25:19 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:25:30 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:25:30 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:25:41 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:25:41 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:25:52 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:25:52 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:26:03 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:26:03 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:26:14 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:26:14 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:26:25 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:26:25 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:26:36 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:26:36 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:26:47 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:26:47 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:26:58 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:26:58 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:27:09 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:27:09 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:27:20 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:27:20 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:27:31 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:27:31 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:27:42 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:27:42 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:27:53 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:27:53 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:28:04 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:28:04 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:28:15 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:28:15 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:28:26 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:28:26 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:28:37 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:28:37 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:28:48 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:28:48 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:28:59 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:28:59 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:29:10 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:29:10 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:29:21 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:29:21 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:29:32 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:29:32 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:29:43 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:29:43 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:29:54 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:29:54 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:30:05 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:30:05 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:30:16 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:30:16 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:30:27 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:30:27 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:30:38 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:30:38 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:30:49 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:30:49 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:31:00 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:31:00 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:31:11 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:31:11 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:31:22 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:31:22 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:31:33 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:31:33 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:31:44 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:31:44 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:31:55 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:31:55 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:32:06 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:32:06 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:32:17 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:32:17 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:32:28 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:32:28 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:32:39 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:32:39 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:32:50 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:32:50 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:33:01 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:33:01 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:33:12 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:33:12 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:33:23 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:33:23 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:33:34 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:33:34 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:33:45 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:33:45 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:33:56 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:33:56 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:34:07 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:34:07 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:34:18 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:34:18 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:34:29 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:34:29 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:34:40 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:34:40 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:34:51 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:34:51 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:35:02 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:35:02 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:35:13 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:35:13 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:35:24 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:35:24 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:35:35 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:35:35 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:35:46 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:35:46 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:35:57 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:35:57 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:36:08 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:36:08 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:36:19 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:36:19 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:36:30 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:36:30 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:36:41 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:36:41 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:36:52 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:36:52 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:37:03 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:37:03 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:37:14 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:37:14 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:37:25 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:37:25 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:37:36 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:37:36 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:37:47 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:37:47 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:37:58 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:37:58 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:38:09 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:38:09 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:38:20 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:38:20 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:38:31 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:38:31 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:38:41 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:38:42 [INFO] POST: http://195.168.233.192:9000/c7n/acme-challenge
2020/03/27 04:38:42 [INFO] add domain map: gitlab.ume.choerodon.io => 3hh2lrV7Hr5D2dBisV6I4j3g3P
2020/03/27 04:38:42 [INFO] POST: http://195.168.53.193:9000/c7n/acme-challenge
2020/03/27 04:38:42 [INFO] POST: http://195.168.102.64:9000/c7n/acme-challenge
2020/03/27 04:38:42 [INFO] POST: http://195.168.119.128:9000/c7n/acme-challenge
2020/03/27 04:38:42 [INFO] POST: http://195.168.169.66:9000/c7n/acme-challenge
2020/03/27 04:38:42 [INFO] POST: http://195.168.9.65:9000/c7n/acme-challenge
2020/03/27 04:38:42 [INFO] POST: http://195.168.195.0:9000/c7n/acme-challenge
2020/03/27 05:11:53 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 05:11:53 [INFO] POST: http://195.168.233.192:9000/c7n/acme-challenge
2020/03/27 05:11:53 [INFO] add domain map: gitlab.ume.choerodon.io => PM2OIrA8F82j15tSOofmxcTO0M
2020/03/27 05:11:53 [INFO] POST: http://195.168.53.193:9000/c7n/acme-challenge
2020/03/27 05:11:54 [INFO] POST: http://195.168.102.64:9000/c7n/acme-challenge
2020/03/27 05:11:54 [INFO] POST: http://195.168.119.128:9000/c7n/acme-challenge
2020/03/27 05:11:54 [INFO] POST: http://195.168.169.66:9000/c7n/acme-challenge
2020/03/27 05:11:54 [INFO] POST: http://195.168.9.65:9000/c7n/acme-challenge
2020/03/27 05:11:54 [INFO] POST: http://195.168.195.0:9000/c7n/acme-challenge
2020/03/27 05:11:54 [Error] Get http://gitlab.ume.choerodon.io/c7n/acme-challenge: dial tcp 10.221.8.61:80: getsockopt: connection refused
2020/03/27 05:11:56 [Error] Get http://gitlab.ume.choerodon.io/c7n/acme-challenge: dial tcp 10.221.8.61:80: getsockopt: connection refused
2020/03/27 05:11:58 [Error] Get http://gitlab.ume.choerodon.io/c7n/acme-challenge: dial tcp 10.221.8.61:80: getsockopt: connection refused
2020/03/27 05:12:00 [Error] Get http://gitlab.ume.choerodon.io/c7n/acme-challenge: dial tcp 10.221.8.61:80: getsockopt: connection refused
2020/03/27 05:12:02 [Error] Get http://gitlab.ume.choerodon.io/c7n/acme-challenge: dial tcp 10.221.8.61:80: getsockopt: connection refused
2020/03/27 05:12:04 [Error] Get http://gitlab.ume.choerodon.io/c7n/acme-challenge: dial tcp 10.221.8.61:80: getsockopt: connection refused
2020/03/27 05:12:06 [Error] Get http://gitlab.ume.choerodon.io/c7n/acme-challenge: dial tcp 10.221.8.61:80: getsockopt: connection refused
2020/03/27 05:12:08 [Error] Get http://gitlab.ume.choerodon.io/c7n/acme-challenge: dial tcp 10.221.8.61:80: getsockopt: connection refused
2020/03/27 05:12:10 [Error] Get http://gitlab.ume.choerodon.io/c7n/acme-challenge: dial tcp 10.221.8.61:80: getsockopt: connection refused
2020/03/27 05:12:12 [Error] Get http://gitlab.ume.choerodon.io/c7n/acme-challenge: dial tcp 10.221.8.61:80: getsockopt: connection refused
2020/03/27 05:12:14 [Error] Get http://gitlab.ume.choerodon.io/c7n/acme-challenge: dial tcp 10.221.8.61:80: getsockopt: connection refused
2020/03/27 05:12:16 [Error] Get http://gitlab.ume.choerodon.io/c7n/acme-challenge: dial tcp 10.221.8.61:80: getsockopt: connection refused
2020/03/27 05:12:18 [Error] Get http://gitlab.ume.choerodon.io/c7n/acme-challenge: dial tcp 10.221.8.61:80: getsockopt: connection refused
2020/03/27 05:12:20 [Error] Get http://gitlab.ume.choerodon.io/c7n/acme-challenge: dial tcp 10.221.8.61:80: getsockopt: connection refused
2020/03/27 05:12:22 [Error] Get http://gitlab.ume.choerodon.io/c7n/acme-challenge: dial tcp 10.221.8.61:80: getsockopt: connection refused
2020/03/27 05:12:24 [Error] Get http://gitlab.ume.choerodon.io/c7n/acme-challenge: dial tcp 10.221.8.61:80: getsockopt: connection refused
2020/03/27 05:19:37 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 05:19:38 [INFO] POST: http://195.168.233.192:9000/c7n/acme-challenge
2020/03/27 05:19:38 [INFO] add domain map: gitlab.ume.choerodon.io => RpuumP722PIKj13yN3JhqO8MjF
2020/03/27 05:19:38 [INFO] POST: http://195.168.53.193:9000/c7n/acme-challenge
2020/03/27 05:19:38 [INFO] POST: http://195.168.102.64:9000/c7n/acme-challenge
2020/03/27 05:19:38 [INFO] POST: http://195.168.119.128:9000/c7n/acme-challenge
2020/03/27 05:19:38 [INFO] POST: http://195.168.169.66:9000/c7n/acme-challenge
2020/03/27 05:19:38 [INFO] POST: http://195.168.9.65:9000/c7n/acme-challenge
2020/03/27 05:19:38 [INFO] POST: http://195.168.195.0:9000/c7n/acme-challenge
2020/03/27 05:19:38 [Error] Get http://gitlab.ume.choerodon.io/c7n/acme-challenge: dial tcp 10.221.8.61:80: getsockopt: connection refused
2020/03/27 05:19:40 [Error] Get http://gitlab.ume.choerodon.io/c7n/acme-challenge: dial tcp 10.221.8.61:80: getsockopt: connection refused
2020/03/27 05:19:42 [Error] Get http://gitlab.ume.choerodon.io/c7n/acme-challenge: dial tcp 10.221.8.61:80: getsockopt: connection refused
2020/03/27 05:19:44 [Error] Get http://gitlab.ume.choerodon.io/c7n/acme-challenge: dial tcp 10.221.8.61:80: getsockopt: connection refused
2020/03/27 05:19:46 [Error] Get http://gitlab.ume.choerodon.io/c7n/acme-challenge: dial tcp 10.221.8.61:80: getsockopt: connection refused
2020/03/27 05:19:48 [Error] Get http://gitlab.ume.choerodon.io/c7n/acme-challenge: dial tcp 10.221.8.61:80: getsockopt: connection refused
2020/03/27 05:19:50 [Error] Get http://gitlab.ume.choerodon.io/c7n/acme-challenge: dial tcp 10.221.8.61:80: getsockopt: connection refused
2020/03/27 05:19:52 [Error] Get http://gitlab.ume.choerodon.io/c7n/acme-challenge: dial tcp 10.221.8.61:80: getsockopt: connection refused
2020/03/27 05:19:54 [Error] Get http://gitlab.ume.choerodon.io/c7n/acme-challenge: dial tcp 10.221.8.61:80: getsockopt: connection refused
2020/03/27 05:19:56 [Error] Get http://gitlab.ume.choerodon.io/c7n/acme-challenge: dial tcp 10.221.8.61:80: getsockopt: connection refused
2020/03/27 05:19:58 [Error] Get http://gitlab.ume.choerodon.io/c7n/acme-challenge: dial tcp 10.221.8.61:80: getsockopt: connection refused
2020/03/27 05:20:00 [Error] Get http://gitlab.ume.choerodon.io/c7n/acme-challenge: dial tcp 10.221.8.61:80: getsockopt: connection refused
2020/03/27 05:20:02 [Error] Get http://gitlab.ume.choerodon.io/c7n/acme-challenge: dial tcp 10.221.8.61:80: getsockopt: connection refused
2020/03/27 05:20:04 [Error] Get http://gitlab.ume.choerodon.io/c7n/acme-challenge: dial tcp 10.221.8.61:80: getsockopt: connection refused
2020/03/27 05:20:06 [Error] Get http://gitlab.ume.choerodon.io/c7n/acme-challenge: dial tcp 10.221.8.61:80: getsockopt: connection refused
2020/03/27 05:20:08 [Error] Get http://gitlab.ume.choerodon.io/c7n/acme-challenge: dial tcp 10.221.8.61:80: getsockopt: connection refused

贴一下 c7n-slaver 的日志

[root@kube-master1 ~]# kubectl logs -f c7n-slaver-22wzs -n c7n-system
2020/03/27 04:22:24 [INFO] server starting on :9000
2020/03/27 04:23:29 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:23:29 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:23:40 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:23:40 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:23:51 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:23:51 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:24:02 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:24:02 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:24:13 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:24:13 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:24:24 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:24:24 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:24:35 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:24:35 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:24:46 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:24:46 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:24:57 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:24:57 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:25:08 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:25:08 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:25:19 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:25:19 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:25:30 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:25:30 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:25:41 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:25:41 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:25:52 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:25:52 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:26:03 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:26:03 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:26:14 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:26:14 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:26:25 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:26:25 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:26:36 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:26:36 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:26:47 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:26:47 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:26:58 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:26:58 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:27:09 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:27:09 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:27:20 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:27:20 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:27:31 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:27:31 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:27:42 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:27:42 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:27:53 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:27:53 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:28:04 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:28:04 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:28:15 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:28:15 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:28:26 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:28:26 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:28:37 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:28:37 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:28:48 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:28:48 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:28:59 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:28:59 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:29:10 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:29:10 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:29:21 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:29:21 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:29:32 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:29:32 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:29:43 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:29:43 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:29:54 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:29:54 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:30:05 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:30:05 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:30:16 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:30:16 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:30:27 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:30:27 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:30:38 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:30:38 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:30:49 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:30:49 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:31:00 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:31:00 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:31:11 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:31:11 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:31:22 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:31:22 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:31:33 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:31:33 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:31:44 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:31:44 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:31:55 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:31:55 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:32:06 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:32:06 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:32:17 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:32:17 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:32:28 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:32:28 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:32:39 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:32:39 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:32:50 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:32:50 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:33:01 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:33:01 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:33:12 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:33:12 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:33:23 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:33:23 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:33:34 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:33:34 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:33:45 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:33:45 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:33:56 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:33:56 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:34:07 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:34:07 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:34:18 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:34:18 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:34:29 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:34:29 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:34:40 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:34:40 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:34:51 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:34:51 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:35:02 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:35:02 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:35:13 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:35:13 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:35:24 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:35:24 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:35:35 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:35:35 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:35:46 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:35:46 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:35:57 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:35:57 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:36:08 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:36:08 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:36:19 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:36:19 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:36:30 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:36:30 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:36:41 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:36:41 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:36:52 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:36:52 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:37:03 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:37:03 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:37:14 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:37:14 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:37:25 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:37:25 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:37:36 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:37:36 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:37:47 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:37:47 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:37:58 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:37:58 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:38:09 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:38:09 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:38:20 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:38:20 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:38:31 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:38:31 [INFO] Connection error: dial tcp 166.166.26.18:5432: getsockopt: connection refused
2020/03/27 04:38:41 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 04:38:42 [INFO] POST: http://195.168.233.192:9000/c7n/acme-challenge
2020/03/27 04:38:42 [INFO] add domain map: gitlab.ume.choerodon.io => 3hh2lrV7Hr5D2dBisV6I4j3g3P
2020/03/27 04:38:42 [INFO] POST: http://195.168.53.193:9000/c7n/acme-challenge
2020/03/27 04:38:42 [INFO] POST: http://195.168.102.64:9000/c7n/acme-challenge
2020/03/27 04:38:42 [INFO] POST: http://195.168.119.128:9000/c7n/acme-challenge
2020/03/27 04:38:42 [INFO] POST: http://195.168.169.66:9000/c7n/acme-challenge
2020/03/27 04:38:42 [INFO] POST: http://195.168.9.65:9000/c7n/acme-challenge
2020/03/27 04:38:42 [INFO] POST: http://195.168.195.0:9000/c7n/acme-challenge
2020/03/27 05:11:53 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 05:11:53 [INFO] POST: http://195.168.233.192:9000/c7n/acme-challenge
2020/03/27 05:11:53 [INFO] add domain map: gitlab.ume.choerodon.io => PM2OIrA8F82j15tSOofmxcTO0M
2020/03/27 05:11:53 [INFO] POST: http://195.168.53.193:9000/c7n/acme-challenge
2020/03/27 05:11:54 [INFO] POST: http://195.168.102.64:9000/c7n/acme-challenge
2020/03/27 05:11:54 [INFO] POST: http://195.168.119.128:9000/c7n/acme-challenge
2020/03/27 05:11:54 [INFO] POST: http://195.168.169.66:9000/c7n/acme-challenge
2020/03/27 05:11:54 [INFO] POST: http://195.168.9.65:9000/c7n/acme-challenge
2020/03/27 05:11:54 [INFO] POST: http://195.168.195.0:9000/c7n/acme-challenge
2020/03/27 05:11:54 [Error] Get http://gitlab.ume.choerodon.io/c7n/acme-challenge: dial tcp 10.221.8.61:80: getsockopt: connection refused
2020/03/27 05:11:56 [Error] Get http://gitlab.ume.choerodon.io/c7n/acme-challenge: dial tcp 10.221.8.61:80: getsockopt: connection refused
2020/03/27 05:11:58 [Error] Get http://gitlab.ume.choerodon.io/c7n/acme-challenge: dial tcp 10.221.8.61:80: getsockopt: connection refused
2020/03/27 05:12:00 [Error] Get http://gitlab.ume.choerodon.io/c7n/acme-challenge: dial tcp 10.221.8.61:80: getsockopt: connection refused
2020/03/27 05:12:02 [Error] Get http://gitlab.ume.choerodon.io/c7n/acme-challenge: dial tcp 10.221.8.61:80: getsockopt: connection refused
2020/03/27 05:12:04 [Error] Get http://gitlab.ume.choerodon.io/c7n/acme-challenge: dial tcp 10.221.8.61:80: getsockopt: connection refused
2020/03/27 05:12:06 [Error] Get http://gitlab.ume.choerodon.io/c7n/acme-challenge: dial tcp 10.221.8.61:80: getsockopt: connection refused
2020/03/27 05:12:08 [Error] Get http://gitlab.ume.choerodon.io/c7n/acme-challenge: dial tcp 10.221.8.61:80: getsockopt: connection refused
2020/03/27 05:12:10 [Error] Get http://gitlab.ume.choerodon.io/c7n/acme-challenge: dial tcp 10.221.8.61:80: getsockopt: connection refused
2020/03/27 05:12:12 [Error] Get http://gitlab.ume.choerodon.io/c7n/acme-challenge: dial tcp 10.221.8.61:80: getsockopt: connection refused
2020/03/27 05:12:14 [Error] Get http://gitlab.ume.choerodon.io/c7n/acme-challenge: dial tcp 10.221.8.61:80: getsockopt: connection refused
2020/03/27 05:12:16 [Error] Get http://gitlab.ume.choerodon.io/c7n/acme-challenge: dial tcp 10.221.8.61:80: getsockopt: connection refused
2020/03/27 05:12:18 [Error] Get http://gitlab.ume.choerodon.io/c7n/acme-challenge: dial tcp 10.221.8.61:80: getsockopt: connection refused
2020/03/27 05:12:20 [Error] Get http://gitlab.ume.choerodon.io/c7n/acme-challenge: dial tcp 10.221.8.61:80: getsockopt: connection refused
2020/03/27 05:12:22 [Error] Get http://gitlab.ume.choerodon.io/c7n/acme-challenge: dial tcp 10.221.8.61:80: getsockopt: connection refused
2020/03/27 05:12:24 [Error] Get http://gitlab.ume.choerodon.io/c7n/acme-challenge: dial tcp 10.221.8.61:80: getsockopt: connection refused
2020/03/27 05:19:37 [INFO] socket checking postgresql-postgresql:5432
2020/03/27 05:19:38 [INFO] POST: http://195.168.233.192:9000/c7n/acme-challenge
2020/03/27 05:19:38 [INFO] add domain map: gitlab.ume.choerodon.io => RpuumP722PIKj13yN3JhqO8MjF
2020/03/27 05:19:38 [INFO] POST: http://195.168.53.193:9000/c7n/acme-challenge
2020/03/27 05:19:38 [INFO] POST: http://195.168.102.64:9000/c7n/acme-challenge
2020/03/27 05:19:38 [INFO] POST: http://195.168.119.128:9000/c7n/acme-challenge
2020/03/27 05:19:38 [INFO] POST: http://195.168.169.66:9000/c7n/acme-challenge
2020/03/27 05:19:38 [INFO] POST: http://195.168.9.65:9000/c7n/acme-challenge
2020/03/27 05:19:38 [INFO] POST: http://195.168.195.0:9000/c7n/acme-challenge
2020/03/27 05:19:38 [Error] Get http://gitlab.ume.choerodon.io/c7n/acme-challenge: dial tcp 10.221.8.61:80: getsockopt: connection refused
2020/03/27 05:19:40 [Error] Get http://gitlab.ume.choerodon.io/c7n/acme-challenge: dial tcp 10.221.8.61:80: getsockopt: connection refused
2020/03/27 05:19:42 [Error] Get http://gitlab.ume.choerodon.io/c7n/acme-challenge: dial tcp 10.221.8.61:80: getsockopt: connection refused
2020/03/27 05:19:44 [Error] Get http://gitlab.ume.choerodon.io/c7n/acme-challenge: dial tcp 10.221.8.61:80: getsockopt: connection refused
2020/03/27 05:19:46 [Error] Get http://gitlab.ume.choerodon.io/c7n/acme-challenge: dial tcp 10.221.8.61:80: getsockopt: connection refused
2020/03/27 05:19:48 [Error] Get http://gitlab.ume.choerodon.io/c7n/acme-challenge: dial tcp 10.221.8.61:80: getsockopt: connection refused
2020/03/27 05:19:50 [Error] Get http://gitlab.ume.choerodon.io/c7n/acme-challenge: dial tcp 10.221.8.61:80: getsockopt: connection refused
2020/03/27 05:19:52 [Error] Get http://gitlab.ume.choerodon.io/c7n/acme-challenge: dial tcp 10.221.8.61:80: getsockopt: connection refused
2020/03/27 05:19:54 [Error] Get http://gitlab.ume.choerodon.io/c7n/acme-challenge: dial tcp 10.221.8.61:80: getsockopt: connection refused
2020/03/27 05:19:56 [Error] Get http://gitlab.ume.choerodon.io/c7n/acme-challenge: dial tcp 10.221.8.61:80: getsockopt: connection refused
2020/03/27 05:19:58 [Error] Get http://gitlab.ume.choerodon.io/c7n/acme-challenge: dial tcp 10.221.8.61:80: getsockopt: connection refused
2020/03/27 05:20:00 [Error] Get http://gitlab.ume.choerodon.io/c7n/acme-challenge: dial tcp 10.221.8.61:80: getsockopt: connection refused
2020/03/27 05:20:02 [Error] Get http://gitlab.ume.choerodon.io/c7n/acme-challenge: dial tcp 10.221.8.61:80: getsockopt: connection refused
2020/03/27 05:20:04 [Error] Get http://gitlab.ume.choerodon.io/c7n/acme-challenge: dial tcp 10.221.8.61:80: getsockopt: connection refused
2020/03/27 05:20:06 [Error] Get http://gitlab.ume.choerodon.io/c7n/acme-challenge: dial tcp 10.221.8.61:80: getsockopt: connection refused
2020/03/27 05:20:08 [Error] Get http://gitlab.ume.choerodon.io/c7n/acme-challenge: dial tcp 10.221.8.61:80: getsockopt: connection refused

你看一下 c7n-slaverchecker 这个ingress 是否正常

# kubectl get ing -n c7n-system  c7n-slaverchecker -o yaml
-----------------
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  annotations:
    ingress.kubernetes.io/ssl-redirect: "false"
    nginx.ingress.kubernetes.io/ssl-redirect: "false"
  creationTimestamp: "2020-03-27T03:07:41Z"
  generation: 7
  labels:
    c7n-usage: c7n-installer
  name: c7n-slaverchecker
  namespace: c7n-system
  resourceVersion: "1992427"
  selfLink: /apis/extensions/v1beta1/namespaces/c7n-system/ingresses/c7n-slaverchecker
  uid: 8a441bda-0f7e-492e-8a3c-ecc55a363887
spec:
  rules:
  - host: gitlab.example.com
    http:
      paths:
      - backend:
          serviceName: c7n-slaver
          servicePort: http
        path: /c7n/acme-challenge
  - host: minio.example.com
    http:
      paths:
      - backend:
          serviceName: c7n-slaver
          servicePort: http
        path: /c7n/acme-challenge
  - host: harbor.example.com
    http:
      paths:
      - backend:
          serviceName: c7n-slaver
          servicePort: http
        path: /c7n/acme-challenge
  - host: chart.example.com
    http:
      paths:
      - backend:
          serviceName: c7n-slaver
          servicePort: http
        path: /c7n/acme-challenge
  - host: notify.example.com
    http:
      paths:
      - backend:
          serviceName: c7n-slaver
          servicePort: http
        path: /c7n/acme-challenge
  - host: api.example.com
    http:
      paths:
      - backend:
          serviceName: c7n-slaver
          servicePort: http
        path: /c7n/acme-challenge
  - host: devops.example.com
    http:
      paths:
      - backend:
          serviceName: c7n-slaver
          servicePort: http
        path: /c7n/acme-challenge
status:
  loadBalancer:
    ingress:
    - ip: 10.244.73.115

[root@kube-master1 deploy]# kubectl get ing -n c7n-system c7n-slaverchecker -o yaml
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
annotations:
ingress.kubernetes.io/ssl-redirect: “false”
nginx.ingress.kubernetes.io/ssl-redirect: “false”
creationTimestamp: “2020-03-27T04:38:42Z”
generation: 1
labels:
app: c7n-slaver
c7n-usage: c7n-installer
name: c7n-slaverchecker
namespace: c7n-system
resourceVersion: “5807”
selfLink: /apis/extensions/v1beta1/namespaces/c7n-system/ingresses/c7n-slaverchecker
uid: d5eb0790-6fe4-11ea-b1e0-90b11c127601
spec:
rules:

  • host: gitlab.ume.choerodon.io
    http:
    paths:
    • backend:
      serviceName: c7n-slaver
      servicePort: http
      path: /c7n/acme-challenge
      status:
      loadBalancer: {}

看一下你的这个svc是什么

kubectl get svc -n ingress-controller -o yaml

麻烦贴的时候注意一下格式

[root@kube-master1 traefik]# kubectl get svc -n ingress-controller
No resources found.

你不是用的猪齿鱼的k8s安装脚本?

你安装的 ingress-controller 代理 10.221.8.61 的 80 端口吗?

k8s是之前自己以二进制的方式搭建的