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
EdgeSite working with standard K8s master #400
Conversation
A quick question, should not we treat edgesite as an independent project? |
I'd like to make sure we brand the edgesite as part of KubeEdge project. Also edgesite mainly is to build a new client side. |
@CindyXing , the idea of edge site is good . Is there some way we can avoid code duplication ? |
+1 to @rohitsardesai83 . All our settings are configuration based. I feel having a edgesite.go , conf and few changes in edge modules should do the work. I can help with it :) |
@@ -13,6 +13,8 @@ func ParseResourceEdge(resource string, operation string) (string, string, strin | |||
resourceSplits := strings.Split(resource, "/") | |||
if len(resourceSplits) == 3 { | |||
return resourceSplits[0], resourceSplits[1], resourceSplits[2], nil | |||
} else if len(resourceSplits) == 5 { |
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 need to change in https://github.com/kubeedge/beehive and then update the vendor.
Agree, kubeedge should be able to support EdgeSite scenarios as well. |
Yes, agree that we should prevent dup code. That's why most of the code is referenced from edge folder. Currently there is some change in the controller/manager that it'll only watch pods bond to the current node. There can be other change(s) needed. So, for now, let's keep separate and then adjust accordingly. |
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.
That's why we should use protobuf for the message type and not hardcode the index and length.
The design doc mentions about lightweight etcd, where does that fit here ? Or will we be using sqlite ? |
What do you mean @sids-b? Either sqlite or lightweight etcd. A lightweight etcd can be used when it is available. And it is customer's choice. |
Ohh, I get it now, so metaManager uses either sqlite or ligtweight etcd based on configurations of customer. Sounds good :) |
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.
Minor comments, thanks.
ResourceSliceLength = 5 | ||
ResourceSliceLengthQuery = 4 | ||
ResourceNodeIndex = 0 | ||
ResourceNodeIDIndex = 1 |
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.
inaccurate indent
} | ||
|
||
// In case the status stored at metadata service is outdated, update the heartbeat automatically | ||
/*for i := range nodeStatusRequest.Status.Conditions { |
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 it is period commented?
If it's intended, please describe when to uncomment this.
@kevin-wangzefeng @qizha @m1093782566 . The PR is ready for review |
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.
lgtm
Let's address the issue #531 post merging this. Thanks. |
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.
LGTM
/lgtm |
/lgtm |
metamanager: | ||
context-send-group: controller | ||
context-send-module: controller | ||
edgesite: true |
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.
No new line at end of file
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.
LGTM.
One none blocking issue is that we need version control for the component configs, which makes life easier for upgrades etc.. Let's clean it up in #525
Sure, Thanks |
EdgeSite working with standard K8s master
What type of PR is this?
/kind feature
What this PR does / why we need it:
This change enables KubeEdge agent talking to a K8s master such as K3S server.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer: