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

[microshift] crc oc-env should take care of export KUBECONFIG=... #3591

Closed
cfergeau opened this issue Apr 11, 2023 · 2 comments
Closed

[microshift] crc oc-env should take care of export KUBECONFIG=... #3591

cfergeau opened this issue Apr 11, 2023 · 2 comments
Labels
kind/bug Something isn't working status/need triage

Comments

@cfergeau
Copy link
Contributor

General information

  • OS: Linux

After running crc start with the microshift preset:

INFO Waiting for kube-apiserver availability... [takes around 2min] 
Started the MicroShift cluster.

export KUBECONFIG="/home/teuf/.crc/machines/crc/kubeconfig"

Use the 'oc' command line interface:
  $ eval $(crc oc-env)
  $ oc COMMAND
$ crc oc-env
export PATH="/home/teuf/.crc/bin/oc:$PATH"
# Run this command to configure your shell:
# eval $(crc oc-env)

crc oc-env could also handle the export KUBECONFIG=... instead of expecting the user to do it.

@cfergeau cfergeau added kind/bug Something isn't working status/need triage labels Apr 11, 2023
@praveenkumar
Copy link
Member

Instead of making it export as part of oc-env, we should append this kubeconfig file to the user $KUBECONFIG env or ~/.kube/config and then make microshift as default context. With doing that all other tool able to use same context instead exporting and also in the podman desktop side it will able to see it in the context window.

@anjannath
Copy link
Member

fixed in #3597

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working status/need triage
Projects
None yet
Development

No branches or pull requests

3 participants