Enable protobufs in etcd by default

pull/6/head
Wojciech Tyczynski 2017-01-30 15:57:43 +01:00
parent 7ee9abe447
commit dae29625da
3 changed files with 7 additions and 1 deletions

View File

@ -87,6 +87,8 @@ func NewServerRunOptions() *ServerRunOptions {
},
ServiceNodePortRange: DefaultServiceNodePortRange,
}
// Overwrite the default for storage data format.
s.GenericServerRunOptions.DefaultStorageMediaType = "application/vnd.kubernetes.protobuf"
return &s
}

View File

@ -55,6 +55,8 @@ func NewServerRunOptions() *ServerRunOptions {
EventTTL: 1 * time.Hour,
}
// Overwrite the default for storage data format.
s.GenericServerRunOptions.DefaultStorageMediaType = "application/vnd.kubernetes.protobuf"
return &s
}

View File

@ -37,7 +37,9 @@ type ServerRunOptions struct {
AdmissionControlConfigFile string
AdvertiseAddress net.IP
CorsAllowedOriginList []string
CorsAllowedOriginList []string
// To enable protobuf as storage format, it is enough
// to set it to "application/vnd.kubernetes.protobuf".
DefaultStorageMediaType string
DeleteCollectionWorkers int
AuditLogPath string