-
Notifications
You must be signed in to change notification settings - Fork 12
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
Unpack cni_plugins, crictl & etcd to folders in /opt and use symlinks #96
base: master
Are you sure you want to change the base?
Unpack cni_plugins, crictl & etcd to folders in /opt and use symlinks #96
Conversation
6770129
to
f7dd164
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As a thought, wouldn't it be simpler to store all these things under /opt/k8s
?
With a /opt/k8s/archives
for archives in general, and then - for example - /opt/k8s/1.28.6/
for Kubernetes itself, /opt/k8s/cni-1.5.0/
for CNI, /opt/k8s/etcd-3.3.25/
for etcd, /opt/k8s/crictl-1.26.0/
for crictl, etc.
f7dd164
to
0cab643
Compare
I didn't want to use |
Technically every single component of Kubernetes can be installed independently, and as a note the CNI plugins are also used by podman and other CRI-compliant container runtimes. Now, I don't want to make it sound like a dealbreaker to keep them separate, but they really need to be under some kind of path that will keep them from colliding with their default names - since Kubernetes has historically involved lots of loose components being stored under paths with default names. ( |
Not a dealbreaker for me either 🙂 I will update the PR today with a new commit where all the components are stored under |
Makes the installation of cni_plugins, crictl & etcd similar to the way the main k8s binaries are installed. The archives are unpacked to folders in /opt and symlinked to /usr/local/bin . The target folder is unique per version, making it possible to update these components. Fixes voxpupuli#95.
0cab643
to
306dbaf
Compare
aa22c30
to
c9e4f2e
Compare
I have updated the PR, so all the files are under |
Can this be merged now? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, been kept busy so I haven't had time to test the change, I still have some concerns on the CNI plugins though - not entirely sure how to best solve them either.
Going to see about getting this merged before the next release, since it's going to be marked as backwards-incompatible anyway (because of #104) |
Pull Request (PR) description
Makes the installation of cni_plugins, crictl & etcd similar to the way the main k8s binaries are installed. The archives are unpacked to folders in /opt and symlinked to /usr/local/bin . The target folder is unique per version, making it possible to update these components.
This Pull Request (PR) fixes the following issues
Fixes #95.