-
Notifications
You must be signed in to change notification settings - Fork 0
feat(infra): introduce public IP to node info #1
base: master
Are you sure you want to change the base?
Conversation
1abe215
to
310f715
Compare
@@ -40,6 +40,7 @@ const ( | |||
WorkingNamespace = "kube-system" | |||
RavenGlobalConfig = "raven-cfg" | |||
LabelCurrentGatewayEndpoints = "raven.openyurt.io/endpoints-name" | |||
LabelLeptonSatellitePublicIP = "lepton.ai/provider-public-ip" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe still use the openyurt namespace?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we already have this label on our edge nodes, need to rename it for all our edge nodes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc @gyuho wdyt?
@@ -177,9 +177,10 @@ func (r *ReconcileGateway) Reconcile(ctx context.Context, req reconcile.Request) | |||
err = fmt.Errorf("unable to list nodes: %s", err) | |||
return reconcile.Result{}, err | |||
} | |||
klog.V(1).Info(Format("list gateway %d node %v", len(nodeList.Items), nodeList.Items)) | |||
klog.V(1).Info(Format("list gateway %d", len(nodeList.Items))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we change this? I thought we should minimize the diff to make future merge/rebase easier
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nodeList.Items are huge... the status/annotations etc. although we want to make it easier to merge, another bigger goal (I think) is to make it suitable for production deployment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we just lower the logging level
Raven make assumptions that our setup doesn't fit into
I would say our setup is very special, therefore I can image it will be hard to convince them accept some of k our PRs, so we need to take over the codebase and close the gaps. This is the first among several. btw
make manifests
creates a bunch of unrelated stuffFor this PR, the goal is to enable satellite nodes to establish vxlan connections by introducing node public IPs. The context is that, Raven controller controls a CRD called Gateway, and it populates node info into NodeInfo CRD. Right now, it only takes the node internal IP.
Raven assumes: among 1 edge/satellite node group, nodes can communicate with each other and establish vxlan connections via their private IP addresses directly without any additional techniques and that they show up in the cluster with their private IP addresses
Our setup: nodes show up in the cluster with assigned IP ranges, so we can't easily just directly use their IPs to establish vxlan connections
cc @xiang90 @gyuho @ccding