Closed datho7561 closed 1 year ago
@datho7561 This looks like your kubeconfig doesn't updated correctly or you are using a different context from the kubeconfig. Can you check oc config get-contexts
and make sure microshift
is selected?
The current context is microshift
in the .kube/config
, and this is also reported when running oc config get-contexts
. The cluster entry for microshift
has the server set to https://localhost:6443
. I'm pretty sure that this entry was created by crc
, but I want to double check. What is the best way to regenerate the .kube/config
? I'll try deleting the cluster (crc delete
) and kubeconfig file, then recreate the cluster.
I tried deleting the microshift cluster and my .kube/config
, then regenerating the cluster, and I got the same cluster entry, where the cluster URL is set to https://localhost:6443
@datho7561 can you try following and let me know if that works?
$ crc delete
$ crc cleanup
$ crc config set network-mode user
$ crc setup
$ crc start
$ oc get pods -A
That worked. Thanks! I'm able to access pods and deployments now.
@datho7561 Great, looks like there is some change around how kubeconfig file is generated for alternative domain and we need to use the api.crc.testing
one https://github.com/openshift/microshift/blob/main/docs/howto_kubeconfig.md
General information
crc setup
before starting it YesCRC version
CRC status
CRC config
Host Operating System
Steps to reproduce
crc setup
crc start
oc get deployment
Expected
A list of the deployments on the current namespace in the cluster (or a "permission denied" error).
Actual
If I switch the cluster server address to the IP that's output as a part of
crc start
, then try running,oc get deployment
, I get this instead:Logs
https://gist.github.com/datho7561/62661d08feb48a5431346308752a743c