ZBLOG

how to use this instruction to set up to use a local k3s?

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:

  1. Install Skaffold if you haven’t already done so.

  2. Open a terminal window and run the following command to set up the KUBECONFIG environment variable to point to the k3s configuration file:

export KUBECONFIG=$HOME/.kube/config
  1. 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
  1. 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.

本站部分文章来源于网络,版权归原作者所有,如有侵权请联系站长删除。
转载请注明出处:https://golang.0voice.com/?id=6233

分享:
扫描分享到社交APP
上一篇
下一篇
发表列表
游客 游客
此处应有掌声~
评论列表

还没有评论,快来说点什么吧~

联系我们

在线咨询: 点击这里给我发消息

微信号:3007537140

上班时间: 10:30-22:30

关注我们
x

注册

已经有帐号?