[英]IP address for ingress controller on bare metal
I have a cluster with two nodes.我有一个有两个节点的集群。 I want to publish some services to internet.
我想在互联网上发布一些服务。 So I need to pin my domains to some address.
所以我需要将我的域固定到某个地址。 Basically I understand, that I need to install ingress controller.
基本上我明白,我需要安装入口 controller。 But, am I right I need to glue ingress controller to the particular node?
但是,我是否需要将入口 controller 粘合到特定节点?
Ingress controller helps to manage the ingress resources in the cluster. Ingress controller 帮助管理集群中的入口资源。 So along with the controller you need to create the ingress resources which will be the "glue" between the domain and the services(target application).
因此,与 controller 一起,您需要创建入口资源,这将是域和服务(目标应用程序)之间的“粘合剂”。
Please read here for more.请阅读此处了解更多信息。
One sample from the documentation:文档中的一个示例:
foo.bar.com/bar -> service1 foo.bar.com/bar -> service1
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: ingress-wildcard-host
spec:
rules:
- host: "foo.bar.com"
http:
paths:
- pathType: Prefix
path: "/bar"
backend:
service:
name: service1
port:
number: 80
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.