我正在按照以下文档创建服务。此pod正在两个节点上运行。当我使用主节点IP发出请求时,没有得到任何响应。
@SpringBootApplication
@EnableAutoConfiguration
@ComponentScan({"com.leycarno.base", "com.leycarno.rest"}) // now we're listen to all the nice components :-)
@EnableJpaRepositories("com.leycarno.base.repositories")
@EntityScan("com.leycarno.base.models")
public class Application {
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
}
https://kubernetes.io/docs/tasks/access-application-cluster/service-access-application-cluster/
curl http://192.168.15.101:30534
系统/服务/ KUBE-DNS
这是我的路线
> # kubectl cluster-info Kubernetes master is running at https://192.168.15.101:6443 KubeDNS is running at
> https://192.168.15.101:6443/api/v1/proxy/namespaces/kube-
我检查iptables规则,为集群IP设置NAT。
如何解决此连接问题?
由于 -SR