diff --git a/cns/service/main.go b/cns/service/main.go index 20050c9a9..5d0855b39 100644 --- a/cns/service/main.go +++ b/cns/service/main.go @@ -1245,6 +1245,8 @@ func InitializeCRDState(ctx context.Context, httpRestService cns.HTTPService, cn return errors.Wrap(err, "failed to get kubeconfig") } kubeConfig.UserAgent = fmt.Sprintf("azure-cns-%s", version) + kubeConfig.AcceptContentTypes = "application/vnd.kubernetes.protobuf,application/json" + kubeConfig.ContentType = "application/vnd.kubernetes.protobuf" clientset, err := kubernetes.NewForConfig(kubeConfig) if err != nil {