Search code examples
kubernetesrancherrke

How to create .kube directory inside the Home directory on Mac?


We usually add the Kubernetes configuration file inside the .kube directory in our Home directory when we use either Windows or Linux operating systems. But when I try to create a .kube directory on Mac OS, it says,

You can't use a name that begins with the dot because these names are reserved for the system. Please choose another name.

How can I do this to put the k8s configuration file into it?


Solution

  • I created the .kube directory using the terminal app on Mac and also noticed that the .kube directory can be created at any location on your Mac.

    Even though you created it, it will not display in Finder. You have to open the Terminal and check its' availability using ls or ls -la commands.