Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-54613

Missing documentaion to download KUBECONFIG

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 4.20
    • 4.18
    • Documentation
    • None
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • 5
    • Important
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      In the openshift CLI documentation https://docs.redhat.com/en/documentation/openshift_container_platform/4.18/html/cli_tools/openshift-cli-oc#installing-openshift-cli there is no correct mention about how to download KUBECONFIG using "oc" command.

       

      The correct process is:

      oc login <server_url> -u <username> -p <password>

      then,

      oc config view --raw > kubeconfig 

      Set the KUBECONFIG environment variable and access using kubectl tool.

      export KUBECONFIG=kubeconfig

      Now you can use kubectl to access the kubernetes resources. For example

      kubectl get nodes

      Its very hard for a new user who has worked extensively on other cloud platforms to know how to access the kubernetes cluster given the access to the OpenShift UI.

      Google Gemini uses third party documentation when asked "How to download kubeconfig in openshift". Its incorrectly asks the user to use console URL instead of the server URL. 

              rhn-support-stk Subhashini T K (Inactive)
              rh-ee-ngopalak Neeraj Krishna Gopalakrishna
              None
              None
              Ying Zhou Ying Zhou
              None
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: