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 a command to setup KubeSphere #96

Open
LinuxSuRen opened this issue Mar 31, 2021 · 2 comments
Open

Add a command to setup KubeSphere #96

LinuxSuRen opened this issue Mar 31, 2021 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@LinuxSuRen
Copy link
Contributor

case 1

Sometimes we need multiple environments for development and testing purposes. It's hard to memorize the address of those KubeSphere clusters. Even worse, part of those environments might be temporary. Give that, it would be good to have a simple way to set up a remote kubeclt connection locally, open the console of the KubeSphere cluster.

You can consider the following usage:

ks config add --cluster dev --host 192.168.0.3

The above command will get the token of the default serviceAccount, then add it to ~/.kube/config as dev. Secondly, create a configMap to store the address of the cluster. It could be like:

kind: ConfigMap
apiVersion: v1
data:
  externalAddress: http://192.168.0.3:30880

If you want to open it in your browser, just need to type: ks open dev.

@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 Mar 31, 2021
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