mirror of
https://git.vectorsigma.ru/public/k3s.git
synced 2026-08-01 00:19:49 +00:00
Add anonymous-auth=false and remove NodeRestriction
This commit is contained in:
@@ -56,7 +56,6 @@ func kubelet(cfg *config.Agent) {
|
||||
argsMap := map[string]string{
|
||||
"healthz-bind-address": "127.0.0.1",
|
||||
"read-only-port": "0",
|
||||
"allow-privileged": "true",
|
||||
"cluster-domain": cfg.ClusterDomain,
|
||||
"kubeconfig": cfg.KubeConfigKubelet,
|
||||
"eviction-hard": "imagefs.available<5%,nodefs.available<5%",
|
||||
@@ -65,6 +64,7 @@ func kubelet(cfg *config.Agent) {
|
||||
//"cgroup-root": "/k3s",
|
||||
"cgroup-driver": "cgroupfs",
|
||||
"authentication-token-webhook": "true",
|
||||
"anonymous-auth": "false",
|
||||
"authorization-mode": modes.ModeWebhook,
|
||||
}
|
||||
if cfg.RootDir != "" {
|
||||
|
||||
@@ -182,7 +182,7 @@ func apiServer(ctx context.Context, cfg *config.Control, runtime *config.Control
|
||||
argsMap["requestheader-group-headers"] = "X-Remote-Group"
|
||||
argsMap["requestheader-username-headers"] = "X-Remote-User"
|
||||
argsMap["client-ca-file"] = runtime.ClientCA
|
||||
argsMap["enable-admission-plugins"] = "NodeRestriction"
|
||||
argsMap["anonymous-auth"] = "false"
|
||||
|
||||
args := config.GetArgsList(argsMap, cfg.ExtraAPIArgs)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user