mirror of
https://github.com/rancher/rke.git
synced 2025-07-17 00:41:12 +00:00
add admission control config file arg, enable plugin
This commit is contained in:
parent
c31ee1eb4b
commit
b649664af8
@ -267,6 +267,11 @@ func (c *Cluster) BuildKubeAPIProcess(host *hosts.Host, prefixPath string, svcOp
|
|||||||
CommandArgs[admissionControlOptionName] = CommandArgs[admissionControlOptionName] + ",AlwaysPullImages"
|
CommandArgs[admissionControlOptionName] = CommandArgs[admissionControlOptionName] + ",AlwaysPullImages"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if c.Services.KubeAPI.EventRateLimit != nil && c.Services.KubeAPI.EventRateLimit.Enabled {
|
||||||
|
CommandArgs[KubeAPIArgAdmissionControlConfigFile] = DefaultKubeAPIArgAdmissionControlConfigFileValue
|
||||||
|
CommandArgs[admissionControlOptionName] = CommandArgs[admissionControlOptionName] + ",EventRateLimit"
|
||||||
|
}
|
||||||
|
|
||||||
if c.Services.KubeAPI.AuditLog != nil {
|
if c.Services.KubeAPI.AuditLog != nil {
|
||||||
if alc := c.Services.KubeAPI.AuditLog.Configuration; alc != nil {
|
if alc := c.Services.KubeAPI.AuditLog.Configuration; alc != nil {
|
||||||
CommandArgs[KubeAPIArgAuditLogPath] = alc.Path
|
CommandArgs[KubeAPIArgAuditLogPath] = alc.Path
|
||||||
|
Loading…
Reference in New Issue
Block a user