Merge pull request #41969 from wojtek-t/use_protobufs_for_self_communication_in_apiserver

Automatic merge from submit-queue (batch tested with PRs 41994, 41969, 41997, 40952, 40576)

Use protobufs for self-communication

@deads2k @liggitt
This commit is contained in:
Kubernetes Submit Queue 2017-02-26 12:57:56 -08:00 committed by GitHub
commit 1a2ec1adcb

View File

@ -130,6 +130,12 @@ func Run(s *options.ServerRunOptions) error {
return err
}
// Use protobufs for self-communication.
// Since not every generic apiserver has to support protobufs, we
// cannot default to it in generic apiserver and need to explicitly
// set it in kube-apiserver.
genericConfig.LoopbackClientConfig.ContentConfig.ContentType = "application/vnd.kubernetes.protobuf"
capabilities.Initialize(capabilities.Capabilities{
AllowPrivileged: s.AllowPrivileged,
// TODO(vmarmol): Implement support for HostNetworkSources.