Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use protobuf content type instead of json for k8s client #131

Merged
merged 2 commits into from
Oct 18, 2024

Conversation

bhavi-koduru
Copy link
Member

@bhavi-koduru bhavi-koduru commented Sep 12, 2024

What type of PR is this?

Which issue does this PR fix:

What does this PR do / Why do we need it:

This MR is a part of effort to elevate single eks cluster performance by migrating the EKS components to use protobuf instead of json.

Modify kubeconfig type to use content type application/vnd.kubernetes.protobuf instead of json for performance gain.

If an issue # is not available please add steps to reproduce and the controller logs:

Testing done on this change:

Automation added to e2e:

Will this PR introduce any new dependencies?:

Will this break upgrades or downgrades. Has updating a running cluster been tested?:

Does this PR introduce any user-facing change?:

No


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@bhavi-koduru bhavi-koduru requested a review from a team as a code owner September 12, 2024 06:00
@hakuna-matatah
Copy link

/lgtm

yash97
yash97 previously approved these changes Sep 13, 2024
Copy link
Contributor

@yash97 yash97 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm 🚀

Copy link

@hakuna-matatah hakuna-matatah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

Copy link

@mengqiy mengqiy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@yash97
Copy link
Contributor

yash97 commented Sep 26, 2024

Apparently api server does not fall back if type does not support CRD. Here is issue in k/k kubernetes/kubernetes#86253.

@bhavi-koduru
Copy link
Member Author

bhavi-koduru commented Sep 27, 2024

I believe the network policy controller e2e covers CRD creation as well which were passing after the latest commit. In the previous commit, the same restcfg is used by the client created by client-go and by controller runtime. This is causing the issue. Hence, created a seperate config for client-go.
The issue might be stale, most of the core components (apiserver <-> etcd and apiserver <-> kube-controller-manager, scheduler, kubelet) use protobuf as default. Some discussion around this - kubernetes-sigs/aws-ebs-csi-driver#2138 (comment)

Copy link
Contributor

@jaydeokar jaydeokar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@jaydeokar jaydeokar merged commit 23447ae into aws:main Oct 18, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants