-
Bug
-
Resolution: Done
-
Major
-
4.18
-
None
-
Quality / Stability / Reliability
-
False
-
-
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.
- links to