启用项目网关
本节介绍如何启用项目网关。
Prerequisites
-
KubeSphere 平台需要安装并启用 KubeSphere 网关扩展组件。
-
You should join a project and have the 项目网关管理 permission within the project. For more information, refer to "Project Members" and "Project Roles".
Steps
-
Log in to the KubeSphere web console with a user who has the 项目网关管理 permission, and access your project.
-
Click 项目设置 > 网关设置 in the left navigation pane.
-
在页面右侧点击启用网关。
-
在弹出的对话框,设置网关的参数,然后点击确定。
参数 描述 Nginx Ingress 版本
Nginx Ingress 的版本。KubeSphere 网关扩展组件基于 Nginx Ingress 提供网关管理功能。
IngressClassName
IngressClass 的名称。
容器组副本数量
期望的容器组副本数量。
访问模式
网关服务的外部访问模式。
-
NodePort: The system maps the ports of nodes to the service ports, and the service can be accessed through the node IP address and node port.
-
LoadBalancer: On the basis of a NodePort service, the system assigns an external IP address to the service and binds the external IP address to an external load balancer. The external load balancer listens on the node port corresponding to the service, allowing access to the service through the external IP address. To achieve this, LoadBalancer-type services need support from load balancer plugins and the infrastructure environment, and relevant annotations need to be set. For more information, please contact your infrastructure environment provider.
链路追踪
是否对网关启用链路追踪功能。如需使用链路追踪功能,KubeSphere平台需要安装并启用 KubeSphere 服务网格扩展组件。
配置选项
网关的配置选项。KubeSphere的网关功能底层基于 Nginx Ingress Controller 实现,您可以设置网关的配置选项控制网关的行为。有关更多信息,请参阅 Nginx Ingress Controller 官方文档。
负载均衡器提供商
网关的负载均衡器提供商。网关的外部访问模式为 LoadBalancer 时,您需要根据负载均衡器插件和基础设施环境设置网关服务的注解以创建所需的负载均衡器。选择负载均衡器提供商后,设置网关服务注解时系统将提供注解提示。仅在网关服务的外部访问模式为 LoadBalancer 时可用。
注解
网关服务的注解。如果已选择负载均衡器提供商,点击键文本框时系统将在下拉列表中显示注解提示。仅在网关服务的外部访问模式为 LoadBalancer 时可用。有关更多信息,请联系您的基础设施环境提供商。
-
Feedback
Was this page Helpful?
Receive the latest news, articles and updates from KubeSphere
Thanks for the feedback. If you have a specific question about how to use KubeSphere, ask it on Slack. Open an issue in the GitHub repo if you want to report a problem or suggest an improvement.