diff --git a/pkg/cloud/metadata/k8s.go b/pkg/cloud/metadata/k8s.go index a85e6d8f14..c57a220417 100644 --- a/pkg/cloud/metadata/k8s.go +++ b/pkg/cloud/metadata/k8s.go @@ -84,6 +84,8 @@ func DefaultKubernetesAPIClient(kubeconfig string) KubernetesAPIClient { } } } + config.AcceptContentTypes = "application/vnd.kubernetes.protobuf,application/json" + config.ContentType = "application/vnd.kubernetes.protobuf" // creates the clientset clientset, err = kubernetes.NewForConfig(config) if err != nil {