NP-756: multinode ovn-kubernetes#1637
Conversation
pkg/config/node.go
Outdated
There was a problem hiding this comment.
What populates the list of workers? Does the user need to know them in advance?
There was a problem hiding this comment.
I should probably remove it in this commit. I was thinking to use it for generating kubelet kubeconfig for each extra worker node. It could be handled in a follow up PR if needed when adding multi worker nodes support in microshift main binary.
There was a problem hiding this comment.
removed Workers and move the Multinode structure to a separate file pkg/config/multinode.go
|
Can we call this “controlplane” instead of “master”, a language that Red Hat (and the K8s community) try to deprecate? Also, how about we revert to the original |
I will use control plane.
sounds good, will update to use |
We talked about using the standard kubelet binary for the worker. If we do that, do we need MicroShift to have separate roles? |
Looking at the previous implementation, I think
If we use standard kubelet binary for extra worker nodes, |
e38a5bd to
9a3e581
Compare
|
Still needs to fix the assets structure in scripts/auto-rebase/assets.yaml which causes ci/prow/verify job fail. |
9a3e581 to
692c1ce
Compare
updated manually. |
b9ffdca to
7038459
Compare
7038459 to
fc7db3b
Compare
pkg/config/multinode.go
Outdated
There was a problem hiding this comment.
@pacevedom This overrides the advertiseAddress IP of APIServer for multi-node since the service cdir cannot be accessed by extra worker nodes. Do you see any issue with API certificate by doing so?
There was a problem hiding this comment.
Yes, we do need some changes for this to work. Let me create the PR.
There was a problem hiding this comment.
I checked and everything is already there, so no additional changes required.
fc7db3b to
52a95b5
Compare
|
/jira refresh |
|
@zshi-redhat: This pull request references NP-756 which is a valid jira issue. DetailsIn response to this:
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. |
|
@zshi-redhat: This pull request references NP-756 which is a valid jira issue. DetailsIn response to this:
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. |
dhellmann
left a comment
There was a problem hiding this comment.
A couple of small suggestions, but there's nothing to hold this up.
I'll leave this for @pacevedom to approve.
/assign @pacevedom
pkg/cmd/run.go
Outdated
There was a problem hiding this comment.
If we're not doing "modes" this can be "multinode" instead of "controlplane".
There was a problem hiding this comment.
changed to "multinode"
etcd/vendor/github.com/openshift/microshift/pkg/config/multinode.go
Outdated
Show resolved
Hide resolved
aa78a6e to
be23535
Compare
fd09d8d to
060a5a0
Compare
|
/retest-required Remaining retests: 0 against base HEAD a45ce75 and 2 for PR HEAD 060a5a07f923355fcefd2d8bca6e27a2f0e63106 in total |
060a5a0 to
48b4911
Compare
|
seeing permission denied failures in the CI job: rebased against master. |
That's a problem in our CI configuration, which manifests itself in all the PRs. |
This commit is the first step to introduce multinode capability in microshift, focusing on networking part. - add a hidden flag --controlplane - split ovnk manifests to common, single-node and multi-node - apply multi-node manifests for ovnk - change cluster mtu based on --controlplane flag To run microshift in multinode mode: $ microshift run --controlplane Signed-off-by: Zenghui Shi <zshi@redhat.com> Co-authored-by: Doug Hellmann <dhellmann@redhat.com>
48b4911 to
bc3a956
Compare
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ggiguash, pacevedom, zshi-redhat The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@zshi-redhat: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions 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. I understand the commands that are listed here. |
This commit is the first step to introduce multinode capability in microshift, focusing on networking part.
To run microshift in multinode mode:
$ microshift run --controlplane