Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat | Add AlibabaCloud-NLB network plugin #134

Closed
chrisliu1995 opened this issue Apr 7, 2024 · 2 comments
Closed

Feat | Add AlibabaCloud-NLB network plugin #134

chrisliu1995 opened this issue Apr 7, 2024 · 2 comments

Comments

@chrisliu1995
Copy link
Member

chrisliu1995 commented Apr 7, 2024

Plugin name

AlibabaCloud-NLB

Cloud Provider

AlibabaCloud

Plugin description

  • AlibabaCloud-NLB enables game servers to be accessed from the Internet by using Layer 4 Network Load Balancer (NLB) of Alibaba Cloud. AlibabaCloud-NLB uses different ports of the same NLB instance to forward Internet traffic to different game servers. The NLB instance only forwards traffic, but does not implement load balancing.

  • This network plugin supports network isolation.

Network parameters

NlbIds

  • Meaning: the NLB instance ID. You can fill in multiple ids.
  • Value: in the format of nlbId-0,nlbId-1,... An example value can be "nlb-ji8l844c0qzii1x6mc,nlb-26jbknebrjlejt5abu"
  • Configuration change supported or not: yes. You can add new nlbIds at the end. However, it is recommended not to change existing nlbId that is in use.

PortProtocols

  • Meaning: the ports in the pod to be exposed and the protocols. You can specify multiple ports and protocols.
  • Value: in the format of port1/protocol1,port2/protocol2,... The protocol names must be in uppercase letters.
  • Configuration change supported or not: yes.

Fixed

  • Meaning: whether the mapping relationship is fixed. If the mapping relationship is fixed, the mapping relationship remains unchanged even if the pod is deleted and recreated.
  • Value: false or true.
  • Configuration change supported or not: yes.

AllowNotReadyContainers

  • Meaning: the container names that are allowed not ready when inplace updating, when traffic will not be cut.
  • Value: {containerName_0},{containerName_1},... Example:sidecar
  • Configuration change supported or not: It cannot be changed during the in-place updating process.

Plugin configuration

[alibabacloud]
enable = true
[alibabacloud.nlb]
# Specify the range of available ports of the NLB instance. Ports in this range can be used to forward Internet traffic to pods. In this example, the range includes 500 ports.
max_port = 1500
min_port = 1000

插件名称/类型

AlibabaCloud-NLB

Cloud Provider

AlibabaCloud

插件说明

  • AlibabaCloud-NLB 使用阿里云网络型四层负载均衡(NLB)作为对外服务的承载实体,在此模式下,不同游戏服将使用同一NLB的不同端口,此时NLB只做转发,并未均衡流量。
  • 该网络类型支持网络隔离

网络参数

NlbIds

  • 含义:填写nlb的id。可填写多个。
  • 填写格式:各个nlbId用,分割。例如:nlb-ji8l844c0qzii1x6mc,nlb-26jbknebrjlejt5abu,...
  • 是否支持变更:支持。可追加填写NLB实例id。建议不要更换正在被使用的实例id。

PortProtocols

  • 含义:pod暴露的端口及协议,支持填写多个端口/协议
  • 格式:port1/protocol1,port2/protocol2,...(协议需大写)
  • 是否支持变更:支持

Fixed

  • 含义:是否固定访问IP/端口。若是,即使pod删除重建,网络内外映射关系不会改变
  • 格式:false / true
  • 是否支持变更:支持

AllowNotReadyContainers

  • 含义:在容器原地升级时允许不断流的对应容器名称,可填写多个
  • 格式:{containerName_0},{containerName_1},... 例如:sidecar
  • 是否支持变更:在原地升级过程中不可变更。

插件配置

[alibabacloud]
enable = true
[alibabacloud.nlb]
#填写nlb可使用的空闲端口段,用于为pod分配外部接入端口,范围为500
max_port = 1500
min_port = 1000

The schematic diagram

image

@ringtail
Copy link
Member

/close

@kruise-bot
Copy link

@ringtail: Closing this issue.

In response to this:

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants