-
Notifications
You must be signed in to change notification settings - Fork 69
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
Add doc for hosted mode #317
Add doc for hosted mode #317
Conversation
4. Switch to management cluster and deploy hub components. | ||
|
||
```shell | ||
kubectl config use-context {management-context} |
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.
s/{management-context}/kind-management/
|
||
3. Switch to management context and deploy agent components on management cluster. | ||
```shell | ||
kubectl config use-context {management-context} |
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.
s/{management-context}/kind-management/
|
||
1. Make sure there are 3 clusters, management, hub and managed cluster, and the cluster manager is deployed in Default | ||
or Hosted mode successfully. | ||
2. Set the env variable HUB_KUBECONFIG and EXTERNAL_MANAGED_KUBECONFIG. |
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.
/s/variable/variables/
kind get kubeconfig --name {kind-hub-cluster-name} --internal > {HUB_KUBECONFIG_PATH} | ||
kind get kubeconfig --name {kind-managed-cluster-name} --internal > {MANAGED_KUBECONFIG_PATH} |
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.
s/{kind-hub-cluster-name}/kind-hub/
s/{kind-managed-cluster-name}/kind-managed/
Signed-off-by: zhujian <jiazhu@redhat.com>
/hold |
/cc @xuezhaojun @zhiweiyin318 @qiujian16 @ycyaoxdu |
kubectl config use-context kind-management | ||
clusteradm join --hub-token <tokenID.tokenSecret> \ | ||
--hub-apiserver <hub_apiserver_url> \ | ||
--cluster-name cluster1 \ |
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.
--cluster-name managed
Signed-off-by: zhujian <jiazhu@redhat.com>
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.
I think we can focus on deploy klusterlet in hosted mode. We do not need to talk about clustermanager in hosted mode in this doc.
Signed-off-by: zhujian <jiazhu@redhat.com>
@qiujian16 PTAL, since there are some duplicates between the previous commit and the installation section, I moved the klusterlet mode description into installation, after that, it looks like: |
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.
/approve
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: qiujian16, zhujian7 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
2d9e48b
into
open-cluster-management-io:main
Signed-off-by: zhujian jiazhu@redhat.com
issue reference: open-cluster-management-io/ocm#194