https://rancher.com/ logo
#rancher-desktop
Title
# rancher-desktop
m

magnificent-jackal-25711

01/12/2023, 8:33 AM
Hey folks, quick question. I set up rancher with cluster from rancher desktop and I'm importing such a .yaml file to create namespace:
Copy code
apiVersion: v1
kind: Namespace
metadata:
  name: "kafka"
  labels:
    name: "kafka"
similar with created deployments from the rancher UI level
w

wide-mechanic-33041

01/12/2023, 12:30 PM
is kubectl config current-context pointing at the correct cluster?
m

magnificent-jackal-25711

01/12/2023, 5:42 PM
Copy code
# before factory reset and after factory reset + fresh rancher + rancher desktop setup
PS C:\Users\xxx> kubectl config get-contexts
CURRENT   NAME              CLUSTER           AUTHINFO          NAMESPACE
*         rancher-desktop   rancher-desktop   rancher-desktop
PS C:\Users\xxx> kubectl config current-context
rancher-desktop
So there's version mismatch but I see only 1 cluster in kubectl config
3 Views