mirror of
https://github.com/rancher/norman.git
synced 2025-09-04 00:34:39 +00:00
Merge pull request #399 from StrongMonkey/log-to-file
Log k3s server logs to file
This commit is contained in:
@@ -48,6 +48,7 @@ func k3sServer(ctx context.Context, endpoints []string) (string, error) {
|
|||||||
"--no-deploy=metrics-server",
|
"--no-deploy=metrics-server",
|
||||||
"--no-deploy=local-storage",
|
"--no-deploy=local-storage",
|
||||||
"--node-name=local-node",
|
"--node-name=local-node",
|
||||||
|
"--log=./k3s.log",
|
||||||
fmt.Sprintf("--datastore-endpoint=%s", strings.Join(endpoints, ",")))
|
fmt.Sprintf("--datastore-endpoint=%s", strings.Join(endpoints, ",")))
|
||||||
cmd.SysProcAttr = &syscall.SysProcAttr{
|
cmd.SysProcAttr = &syscall.SysProcAttr{
|
||||||
Pdeathsig: syscall.SIGKILL,
|
Pdeathsig: syscall.SIGKILL,
|
||||||
|
Reference in New Issue
Block a user