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

Adding compat subpackage for kube-proxy #30447

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Aditvil-Dev
Copy link
Contributor

@Aditvil-Dev Aditvil-Dev commented Oct 9, 2024

kube-proxy deployments assume the binary sits at
/usr/local/bin/kube-proxy (see
https://github.com/kubernetes/kubernetes/blob/a35bca903e24ea3cdbecb743c001b4c8f4db9e9c/cmd/kubeadm/app/phases/addons/proxy/manifests.go#L79). This adds a compat package based off of kube-proxy-default (which installs the binary at /usr/bin/kube-proxy) to add a symlink to /usr/local/bin.

Kube-proxy pod expects the binary at /usr/local/bin.

logs from kube-proxy-pod:
Normal Created 13s (x3 over 27s) kubelet Created container kube-proxy Warning Failed 13s (x3 over 26s) kubelet Error: failed to create containerd task: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "/usr/local/bin/kube-proxy": stat /usr/local/bin/kube-proxy: no such file or directory: unknown

@Aditvil-Dev Aditvil-Dev changed the title Kube proxy compat Adding compat subpackage for kube-proxy Oct 9, 2024
@Aditvil-Dev
Copy link
Contributor Author

@Aditvil-Dev Aditvil-Dev marked this pull request as ready for review October 9, 2024 18:42
Copy link
Member

@EyeCantCU EyeCantCU left a comment

Choose a reason for hiding this comment

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

Why do we need this? Can we please add something to the PR description? Is having this in the local path not enough? We already have a -default package for this that also creates a link

@@ -187,6 +187,19 @@ subpackages:
mkdir -p ${{targets.subpkgdir}}/usr/bin
ln -s ${{range.key}}-${{vars.kubernetes-version}} ${{targets.subpkgdir}}/usr/bin/${{range.key}}
- name: kube-proxy-${{vars.kubernetes-version}}-default-compat
Copy link
Member

Choose a reason for hiding this comment

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

Is this compat package needs to be versioned?

Copy link
Contributor Author

@Aditvil-Dev Aditvil-Dev Oct 9, 2024

Choose a reason for hiding this comment

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

Following the norm for what has been done for -default packages

@Aditvil-Dev
Copy link
Contributor Author

logs from kube-proxy-pod:
Normal Created 13s (x3 over 27s) kubelet Created container kube-proxy Warning Failed 13s (x3 over 26s) kubelet Error: failed to create containerd task: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "/usr/local/bin/kube-proxy": stat /usr/local/bin/kube-proxy: no such file or directory: unknown

@EyeCantCU
Copy link
Member

Looks good, but please update the PR description explaining why the change was made

@EyeCantCU EyeCantCU enabled auto-merge (squash) October 9, 2024 21:10
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.

4 participants