mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
Disable watch caching, not needed for sqlite
This commit is contained in:
parent
f6e0bad953
commit
828ce5a24a
@ -156,6 +156,8 @@ func apiServer(ctx context.Context, cfg *config.Control, runtime *config.Control
|
|||||||
certDir := filepath.Join(cfg.DataDir, "tls/temporary-certs")
|
certDir := filepath.Join(cfg.DataDir, "tls/temporary-certs")
|
||||||
os.MkdirAll(certDir, 0700)
|
os.MkdirAll(certDir, 0700)
|
||||||
|
|
||||||
|
// TODO: sqlite doesn't need the watch cache, but etcd does, so make this dynamic
|
||||||
|
args = append(args, "--watch-cache=false")
|
||||||
args = append(args, "--cert-dir", certDir)
|
args = append(args, "--cert-dir", certDir)
|
||||||
args = append(args, "--allow-privileged=true")
|
args = append(args, "--allow-privileged=true")
|
||||||
args = append(args, "--authorization-mode", strings.Join([]string{modes.ModeNode, modes.ModeRBAC}, ","))
|
args = append(args, "--authorization-mode", strings.Join([]string{modes.ModeNode, modes.ModeRBAC}, ","))
|
||||||
|
Loading…
Reference in New Issue
Block a user