diff --git a/cmd/kops/util/factory.go b/cmd/kops/util/factory.go index f74d4c56e0f8f..68d4de0d06b5b 100644 --- a/cmd/kops/util/factory.go +++ b/cmd/kops/util/factory.go @@ -24,6 +24,7 @@ import ( "strings" "sync" + "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/util/validation/field" "k8s.io/cli-runtime/pkg/genericclioptions" "k8s.io/client-go/dynamic" @@ -200,6 +201,8 @@ func configureRESTConfig(restConfig *rest.Config) { restConfig.UserAgent = "kops" restConfig.Burst = 50 restConfig.QPS = 20 + restConfig.AcceptContentTypes = runtime.ContentTypeProtobuf + restConfig.ContentType = runtime.ContentTypeProtobuf } func (f *Factory) HTTPClient(restConfig *rest.Config) (*http.Client, error) {