Skip to content
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

Merged

Conversation

zhujian7
Copy link
Member

@zhujian7 zhujian7 commented Dec 29, 2022

Signed-off-by: zhujian [email protected]

issue reference: open-cluster-management-io/ocm#194

@mikeshng
Copy link
Member

CC @qiujian16 @morvencao

4. Switch to management cluster and deploy hub components.

```shell
kubectl config use-context {management-context}
Copy link
Member

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}
Copy link
Member

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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/s/variable/variables/

Comment on lines 156 to 157
kind get kubeconfig --name {kind-hub-cluster-name} --internal > {HUB_KUBECONFIG_PATH}
kind get kubeconfig --name {kind-managed-cluster-name} --internal > {MANAGED_KUBECONFIG_PATH}
Copy link
Member

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/

@zhujian7
Copy link
Member Author

/hold

@zhujian7
Copy link
Member Author

/cc @xuezhaojun @zhiweiyin318 @qiujian16 @ycyaoxdu
/unhold

kubectl config use-context kind-management
clusteradm join --hub-token <tokenID.tokenSecret> \
--hub-apiserver <hub_apiserver_url> \
--cluster-name cluster1 \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

--cluster-name managed

Copy link
Member

@qiujian16 qiujian16 left a 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.

@zhujian7
Copy link
Member Author

I think we can focus on deploy klusterlet in hosted mode

@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:

image image

Copy link
Member

@qiujian16 qiujian16 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve
/lgtm

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 22, 2023

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit 2d9e48b into open-cluster-management-io:main Sep 22, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants