Fully working oc-k8s
This commit is contained in:
@@ -34,7 +34,7 @@ func Install_K3S() error {
|
||||
}
|
||||
|
||||
func Create_K3S() error {
|
||||
utils.Exec("yes | sudo cp -rf /etc/rancher/k3s/k3s.yaml ~/.kube/config")
|
||||
utils.Exec("sudo cp -rf /etc/rancher/k3s/k3s.yaml ~/.kube/config")
|
||||
utils.Exec("chmod 700 /home/mr/.kube")
|
||||
return utils.Exec("chmod 600 ~/.kube/config")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user