简体   繁体   English

无法从管理器访问节点应用程序Kubernetes集群

[英]Not access from manager to node application Kubernetes cluster

Before ask my question I have to say that I am very new to Kubernetes :) 在问我的问题之前,我必须说我对Kubernetes非常陌生:)

I have a created a cluster in a Bare metal cloud with two Centos machines (the manager and one worker) and I used Calico pod network. 我在裸机云中使用两台Centos机器(经理和一名工人)创建了一个集群,并且使用了Calico pod网络。 Both nodes are ready and I have deployed the helloworld application of kubernetes (I have followed this tutorial step by step): https://kubernetes.io/docs/tutorials/stateless-application/expose-external-ip-address/ 两个节点都准备就绪,并且我已经部署了kubernetes的helloworld应用程序(我已按照本教程逐步进行操作): https ://kubernetes.io/docs/tutorials/stateless-application/expose-external-ip-address/

I can't access from my manager machine to this application, because is deployed on the worker. 我无法从管理器计算机访问此应用程序,因为它已部署在工作器上。 How could I do it? 我该怎么办?

Thanks! 谢谢!

Have you tried accessing the master using the NodePort? 您是否尝试过使用NodePort访问主机? It should forward the traffic to the worker. 它应该将流量转发给工作人员。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何从运行在同一集群上的节点内的容器化应用程序访问 Kubernetes 集群? - How to get access to kubernetes cluster from containerized application running inside node hosted on same cluster? 从外部访问 Kubernetes 集群/节点 - Access the Kubernetes cluster/node from outside 从集群外的应用程序访问 kube.netes 中的 postgres - access postgres in kubernetes from an application outside the cluster 访问运行在 Kubernetes 集群上的应用程序 - Access application running on Kubernetes cluster 如何从 kubernetes 集群中注销 kubernetes 节点 - How to deregister a kubernetes node from a kubernetes cluster 无法访问在 kubernetes pod 上运行的应用程序(使用 Docker-Desktop:单节点集群) - Not able to access application running on kubernetes pod (Using Docker-Desktop: Single-node cluster) 如何从同一集群中的另一个节点访问kubernetes节点上的服务? - How do I access a service on a kubernetes node from another node on the same cluster? 无法使用kubernetes游乐场访问部署在kubernetes集群上的应用程序 - unable to access the application deployed on kubernetes cluster using kubernetes playground 从kubernetes集群安全关闭节点 - Securely shutdown a node from kubernetes cluster 从 docker 容器内访问 Kubernetes 集群 - Access to a kubernetes cluster from inside a docker container
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM