mirror of https://github.com/k3s-io/k3s
Add anonymous-auth=false and remove NodeRestriction
parent
b24f214a50
commit
a51a2eaaad
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue