From 986dd5b2e4b12a69f9366c38934d87f4dc5dfb20 Mon Sep 17 00:00:00 2001 From: Daishan Date: Thu, 13 May 2021 13:43:45 -0700 Subject: [PATCH] Log k3s server logs to file --- pkg/kwrapper/k8s/k3s_linux.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/kwrapper/k8s/k3s_linux.go b/pkg/kwrapper/k8s/k3s_linux.go index c6f9ee38..e6adfea1 100644 --- a/pkg/kwrapper/k8s/k3s_linux.go +++ b/pkg/kwrapper/k8s/k3s_linux.go @@ -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,