mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
Enable protobufs in etcd by default
This commit is contained in:
parent
7ee9abe447
commit
dae29625da
@ -87,6 +87,8 @@ func NewServerRunOptions() *ServerRunOptions {
|
|||||||
},
|
},
|
||||||
ServiceNodePortRange: DefaultServiceNodePortRange,
|
ServiceNodePortRange: DefaultServiceNodePortRange,
|
||||||
}
|
}
|
||||||
|
// Overwrite the default for storage data format.
|
||||||
|
s.GenericServerRunOptions.DefaultStorageMediaType = "application/vnd.kubernetes.protobuf"
|
||||||
return &s
|
return &s
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -55,6 +55,8 @@ func NewServerRunOptions() *ServerRunOptions {
|
|||||||
|
|
||||||
EventTTL: 1 * time.Hour,
|
EventTTL: 1 * time.Hour,
|
||||||
}
|
}
|
||||||
|
// Overwrite the default for storage data format.
|
||||||
|
s.GenericServerRunOptions.DefaultStorageMediaType = "application/vnd.kubernetes.protobuf"
|
||||||
return &s
|
return &s
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -37,7 +37,9 @@ type ServerRunOptions struct {
|
|||||||
AdmissionControlConfigFile string
|
AdmissionControlConfigFile string
|
||||||
AdvertiseAddress net.IP
|
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
|
DefaultStorageMediaType string
|
||||||
DeleteCollectionWorkers int
|
DeleteCollectionWorkers int
|
||||||
AuditLogPath string
|
AuditLogPath string
|
||||||
|
Loading…
Reference in New Issue
Block a user