@@ -10,12 +10,19 @@ import (
10
10
func setAPIServerConfig (cs * api.ContainerService ) {
11
11
o := cs .Properties .OrchestratorProfile
12
12
staticLinuxAPIServerConfig := map [string ]string {
13
- "--admission-control" : "NamespaceLifecycle,LimitRanger,ServiceAccount,DefaultStorageClass,ResourceQuota,DenyEscalatingExec" ,
13
+ "--admission-control" : "NamespaceLifecycle,LimitRanger,ServiceAccount,DefaultStorageClass,ResourceQuota,DenyEscalatingExec,AlwaysPullImages,SecurityContextDeny " ,
14
14
"--address" : "0.0.0.0" ,
15
15
"--advertise-address" : "<kubernetesAPIServerIP>" ,
16
16
"--allow-privileged" : "true" ,
17
+ "--anonymous-auth" : "false" ,
18
+ "--audit-log-maxage" : "30" ,
19
+ "--audit-log-maxbackup" : "10" ,
20
+ "--audit-log-maxsize" : "100" ,
21
+ "--audit-log-path" : "/var/log/apiserver/audit.log" ,
22
+ "--authorization-mode" : "Node" ,
17
23
"--insecure-port" : "8080" ,
18
24
"--secure-port" : "443" ,
25
+ "--service-account-lookup" : "true" ,
19
26
"--etcd-cafile" : "/etc/kubernetes/certs/ca.crt" ,
20
27
"--etcd-certfile" : "/etc/kubernetes/certs/etcdclient.crt" ,
21
28
"--etcd-keyfile" : "/etc/kubernetes/certs/etcdclient.key" ,
@@ -24,6 +31,8 @@ func setAPIServerConfig(cs *api.ContainerService) {
24
31
"--tls-cert-file" : "/etc/kubernetes/certs/apiserver.crt" ,
25
32
"--tls-private-key-file" : "/etc/kubernetes/certs/apiserver.key" ,
26
33
"--client-ca-file" : "/etc/kubernetes/certs/ca.crt" ,
34
+ "--profiling" : "false" ,
35
+ "--repair-malformed-updates" : "false" ,
27
36
"--service-account-key-file" : "/etc/kubernetes/certs/apiserver.key" ,
28
37
"--kubelet-client-certificate" : "/etc/kubernetes/certs/client.crt" ,
29
38
"--kubelet-client-key" : "/etc/kubernetes/certs/client.key" ,
@@ -34,7 +43,7 @@ func setAPIServerConfig(cs *api.ContainerService) {
34
43
35
44
// RBAC configuration
36
45
if helpers .IsTrueBoolPointer (o .KubernetesConfig .EnableRbac ) {
37
- staticLinuxAPIServerConfig ["--authorization-mode" ] = "RBAC"
46
+ staticLinuxAPIServerConfig ["--authorization-mode" ] = "Node, RBAC"
38
47
}
39
48
40
49
// Data Encryption at REST configuration
0 commit comments