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 support to set federal cluster #99

Open
LinuxSuRen opened this issue Apr 1, 2021 · 3 comments
Open

Add support to set federal cluster #99

LinuxSuRen opened this issue Apr 1, 2021 · 3 comments
Labels
help wanted Extra attention is needed

Comments

@LinuxSuRen
Copy link
Contributor

KubeSphere support the federal cluster. It can set a Kubernetes cluster to be a member or host role. So, the first feature that I want to have is making a cluster to be a member or host.

Second, support to add a cluster to be a member of the host cluster. It can be a direct connection or agent mode.

See also the official document here.

@LinuxSuRen
Copy link
Contributor Author

/help

@linuxsuren-bot
Copy link
Collaborator

@LinuxSuRen:
This request has been marked as needing help from a contributor.

Please ensure the request meets the requirements listed here.

If this request no longer meets these requirements, the label can be removed
by commenting with the /remove-help command.

In response to this:

/help

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 jenkins-x/lighthouse repository.

@linuxsuren-bot linuxsuren-bot added the help wanted Extra attention is needed label Apr 1, 2021
@LinuxSuRen
Copy link
Contributor Author

LinuxSuRen commented Apr 6, 2021

Steps for adding a member cluster:

  • Create or have a cluster as host role
  • Get jwtSecret from the host cluster via kubectl -n kubesphere-system get cm kubesphere-config -o yaml | grep -v "apiVersion" | grep jwtSecret
  • Setup the member cluster via ks com enable -e
    • spec.multicluster.clusterRole as member
    • spec.authentication.jwtSecret as the host jwtSecret value
  • Check the status of member cluter via ks com log installer
  • Add a cluster resource on the host cluster

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants