{
“Code”: 503,
“Message”: “Get http://ks-jenkins.kubesphere-devops-system.svc/api/json: dial tcp: lookup ks-jenkins.kubesphere-devops-system.svc on 169.254.25.10:53: no such host”
}
创建的时候,显示 service 不可用。然后返回的是这个。然后 devops 的 pod 列表如下:
ks-devops-db-ctrl-job-q4pzt 0/1 Completed 2 147m
ks-devops-db-init-job-7xtfl 0/1 Completed 0 147m
ks-sonarqube-postgresql-666d5bd77-q56cd 1/1 Running 0 147m
ks-sonarqube-sonarqube-f68dd5ff5-9d7sh 1/1 Running 0 147m
s2ioperator-0 1/1 Running 1 147m
uc-jenkins-update-center-b465bf4d-gqbjr 1/1 Running 0 157m
在 uc-jenkins pod 里面的日志显示 30098 端口被拒绝。
2020/07/11 11:00:54 [error] 6#6: *2 directory index of “/usr/share/nginx/html/” is forbidden, client: 192.168.1.128, server: localhost, request: “GET / HTTP/1.1″, host: “192.168.1.128:30098″
192.168.1.128 - - [11/Jul/2020:11:00:54 +0000] “GET / HTTP/1.1” 403 571 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36” “-”
2020/07/11 11:00:54 [error] 6#6: *2 open() “/usr/share/nginx/html/favicon.ico” failed (2: No such file or directory), client: 192.168.1.128, server: localhost, request: “GET /favicon.ico HTTP/1.1”, host: “192.168.1.128:30098”, referrer: “http://192.168.1.128:30098/”