无法使用NodePort访问ibm ICP kubernetes上已部署的应用程序URL

时间:2020-01-31 07:10:13

标签: kubernetes deployment ibm-cloud-private

无法使用nodeport访问ibm ICP kubernetes上已部署的应用程序URL。

应用程序成功运行,但启动该应用程序时无法在浏览器上访问。

日志运行命令-docker run

日志-

kubectl describe pods <podname>

访问应用程序网址- roar-app: Container ID: docker://c3ac3059f493a9567fd79d76879dc7fa230a6790969e2f8ea6c922ed37300480 Image: mycluster.icp:8500/ibmcom/roartomcat:2 Image ID: docker- pullable://mycluster.icp:8500/ibmcom/roartomcat@sha256:c85353bc1cba104940e8f008752decc38b2191af06af7e0bc7fa7c4b83138570 Port: <none> Host Port: <none> State: Running Started: Fri, 31 Jan 2020 06:33:50 +0000 Ready: True Restart Count: 0 Limits: cpu: 500m memory: 2Gi Requests: cpu: 100m memory: 128Mi Environment: <none> Mounts: /var/run/secrets/kubernetes.io/serviceaccount from default-token-kb5vk (ro) Conditions: Type Status Initialized True Ready True ContainersReady True PodScheduled True Volumes: default-token-kb5vk: Type: Secret (a volume populated by a Secret) SecretName: default-token-kb5vk Optional: false QoS Class: Burstable Node-Selectors: <none> Tolerations: node.kubernetes.io/memory-pressure:NoSchedule node.kubernetes.io/not-ready:NoExecute for 300s node.kubernetes.io/unreachable:NoExecute for 300s Events: Type Reason Age From Message ---- ------ ---- ---- ------- Normal Scheduled 9m45s default-scheduler Successfully assigned default/roar-app-7d68649546-xwx6p to 10.99.15.21 Normal Pulling 9m28s kubelet, 10.99.15.21 pulling image "mycluster.icp:8500/ibmcom/roartomcat:2" Normal Pulled 9m22s kubelet, 10.99.15.21 Successfully pulled image "mycluster.icp:8500/ibmcom/roartomcat:2" Normal Created 9m22s kubelet, 10.99.15.21 Created container Normal Started 9m21s kubelet, 10.99.15.21 Started container

<ip>:<nodeport>/<mapping url>

错误-无法访问此网站http://10.99.15.26:31762/ne ,响应时间太长。

10.99.15.26

如果不是正确的方法,如无法使用节点端口访问IBM ICP kubernetes上已部署的应用程序URL,那么任何人都可以帮助解决此问题的方法。 应用程序运行成功,但是启动应用程序时无法在浏览器上访问。

0 个答案:

没有答案