Skip to content

Commit

Permalink
Merge pull request #399 from StrongMonkey/log-to-file
Browse files Browse the repository at this point in the history
Log k3s server logs to file
  • Loading branch information
ibuildthecloud authored May 13, 2021
2 parents 7b74a9f + 986dd5b commit e48df26
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/kwrapper/k8s/k3s_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit e48df26

Please sign in to comment.