'How to set Kubeconfig file on Rancher RKE2 UI?

I am trying to set Kubeconfig via Rancher RKE2 UI. However, I am getting an error as below.

kubectl config set-cluster cluster-name --server=...
error: open /home/shell/.kube/config: read-only file system

How can I set this file. Is there another way?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source