openyurtio / raven

provide layer 3 and layer 7 network connectivity among pods in different physical regions
Apache License 2.0
57 stars 37 forks source link

[Question] How to avoid entering nodes manually? #89

Closed batthebee closed 1 year ago

batthebee commented 1 year ago

If I understand the documentation correctly, nodes must be both labeled and entered into the gateway spec. The labeling of the nodes can be done when registering a node. After that I have to manually adjust the gateway spec. This makes automation very difficult.

Are there currently other ways to do this, e.g. only via the labels? What is the reason for the double entry?

njucjc commented 1 year ago

Only candidate gateway nodes need to be entered into the gateway spec, other nodes only need to be labeled.

batthebee commented 1 year ago

Instead of entering these manually, this could also be solved via a label, for example?

njucjc commented 1 year ago

for new node added to gw-wlcb gateway,just run: kubectl label nodes $(nodeName) raven.openyurt.io/gateway=gw-wlcb if this node is not a candidate gateway node, you do not need to enter it to gateway spec