To use a local k3s cluster with Skaffold, you need to have k3s installed on your machine and running. You can then follow these steps:
Install Skaffold if you haven’t already done so.
Open a terminal window and run the following command to set up the
KUBECONFIGenvironment variable to point to the k3s configuration file:
export KUBECONFIG=$HOME/.kube/config
- Run the following command to make sure that Skaffold is configured to use the correct context in your Kubernetes configuration file:
kubectl config use-context default
- Finally, run this command to set the global configuration for Skaffold to use your local k3s cluster:
skaffold config set --global local-cluster true
Now when you run any Skaffold commands, it will assume that you have a k3s cluster running locally and will deploy your application there.




