1
0
mirror of https://github.com/rancher/norman.git synced 2025-08-31 23:02:01 +00:00

Merge pull request #399 from StrongMonkey/log-to-file

Log k3s server logs to file
This commit is contained in:
Darren Shepherd
2021-05-13 13:47:52 -07:00
committed by GitHub

View File

@@ -48,6 +48,7 @@ func k3sServer(ctx context.Context, endpoints []string) (string, error) {
"--no-deploy=metrics-server",
"--no-deploy=local-storage",
"--node-name=local-node",
"--log=./k3s.log",
fmt.Sprintf("--datastore-endpoint=%s", strings.Join(endpoints, ",")))
cmd.SysProcAttr = &syscall.SysProcAttr{
Pdeathsig: syscall.SIGKILL,