我多次遇到问题,通过重新创建问题应用程序修复它,但我仍然想知道如何调试以及导致此问题的原因。
例如: 我在我的主人中创建了一个新的应用程序jenkins持久应用程序,我能够在Node / Master中卷曲端点IP地址,但无法卷曲应用程序暴露的IP /主机名地址。有时,我只需要删除应用程序然后重新创建,这个问题将得到解决,但这次我真的想知道如何修复它而不重新创建,按照https://docs.openshift.com/enterprise/3.1/admin_guide/sdn_troubleshooting.html中的文章进行调试,而且我很确定DNS正在运行,如果我需要在这里提供更多信息,请告诉我。谢谢。
这是我的svc描述输出:
# oc describe svc/jenkins
Name: jenkins
Namespace: developer
Labels: app=jenkins-persistent
template=jenkins-persistent-template
Selector: name=jenkins
Type: ClusterIP
IP: 172.30.78.168
Port: web 80/TCP
Endpoints: 10.128.0.97:8080
Session Affinity: None
No events.
# oc get svc
NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE
jenkins 172.30.78.168 <none> 80/TCP 1h
jenkins-jnlp 172.30.87.38 <none> 50000/TCP 1h
# curl http://10.128.0.97:8080
<html><head><meta http-equiv='refresh' content='1;url=/securityRealm/commenceLogin?from=%2F'/><script>window.location.replace('/securityRealm/commenceLogin?from=%2F');</script></head><body style='background-color:white; color:white;'>
Authentication required
<!--
You are authenticated as: anonymous
Groups that you are in:
Permission you need to have (but didn't): hudson.model.Hudson.Read
... which is implied by: hudson.security.Permission.GenericRead
... which is implied by: hudson.model.Hudson.Administer
-->
</body></html>
# oc get oauthclient
NAME SECRET WWW-CHALLENGE REDIRECT URIS
cockpit-oauth-client user7IjHLvwuclbrHeVmi2pslHpSbmQuI3ePqjAHbLSS0aNBekio2aqDM3iBbx33Qwwp FALSE https://registry-console-default.com.cn,https://jenkins-developer.com.cn
# curl 172.30.78.168:8080
curl: (7) Failed connect to 172.30.78.168:8080; No route to host
# curl 172.30.78.168
<html><head><meta http-equiv='refresh' content='1;url=/securityRealm/commenceLogin?from=%2F'/><script>window.location.replace('/securityRealm/commenceLogin?from=%2F');</script></head><body style='background-color:white; color:white;'>
Authentication required
<!--
You are authenticated as: anonymous
Groups that you are in:
Permission you need to have (but didn't): hudson.model.Hudson.Read
... which is implied by: hudson.security.Permission.GenericRead
... which is implied by: hudson.model.Hudson.Administer
# curl jenkins-developer.com.cn
curl: (7) Failed connect to jenkins-developer.com.cn:80; Connection refused
# oc describe route
Name: jenkins
Namespace: developer
Created: 2 days ago
Labels: app=jenkins-persistent
template=jenkins-persistent-template
Annotations: <none>
Requested Host: jenkins-developer.paas.com.cn
exposed on router ose-router 2 days ago
Path: <none>
TLS Termination: <none>
Insecure Policy: <none>
Endpoint Port: web
Service: jenkins
Weight: 100 (100%)
Endpoints: 10.128.0.97:8080