Permanently set the kubectl cache directory Permanently set the kubectl cache directory kubernetes kubernetes

Permanently set the kubectl cache directory


Best way for you is move the whole home directory to fast drive.

But if you don't want moving the whole directory you can set Powershell alias for your command like PS> Set-Alias -Name kubectl -Value "Path\to\kubectl --kubeconfig=PLACE_FOR_YOUR_CONFIG"