mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
Cache self-signed loopback cert on startup
This commit is contained in:
parent
af96c908da
commit
5e1ce4aa42
@ -153,6 +153,10 @@ func apiServer(ctx context.Context, cfg *config.Control, runtime *config.Control
|
||||
}
|
||||
}
|
||||
|
||||
certDir := filepath.Join(cfg.DataDir, "tls/temporary-certs")
|
||||
os.MkdirAll(certDir, 0700)
|
||||
|
||||
args = append(args, "--cert-dir", certDir)
|
||||
args = append(args, "--allow-privileged=true")
|
||||
args = append(args, "--authorization-mode", strings.Join([]string{modes.ModeNode, modes.ModeRBAC}, ","))
|
||||
args = append(args, "--service-account-signing-key-file", runtime.ServiceKey)
|
||||
|
Loading…
Reference in New Issue
Block a user