Re-add "Change the generated image to bci-busybox:15.6
(#252)" with additional fixes
#311
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
rancher/rancher#46100
This PR includes:
bci-busybox:15.6
#252More information about the node-driver-downloading issue:
When provisioning an RKE2/K3s node-driver cluster in Rancher, Rancher deploys a Job that runs the
rancher-machine
container. This container first downloads the external node driver, then invokes therancher-machine
binary to create the VM in the cloud (code). The container runs with a security context configured asrunAsUser: 1000
andrunAsGroup: 1000
. In the original PR, the Job fails to move the downloaded node driver to /usr/local/bin/ due to a permissions issue.The fix for this issue involves changing the ownership of
/usr/local/bin
to themachine
user (UID 1000). This allows the running container to move the node driver to/usr/local/bin
while being unable to modify any existing binaries which are owned byroot
. Additionally, the security context set on the container ensures that the process runs as a non-root user.Dev validate
We can use
-e CATTLE_MACHINE_PROVISION_IMAGE=$IMAGE
in thedocker run
command to override therancher-machine
image used by the v1 provisioning framework.The Docker image built from this PR was tested in Rancher by provisioning a node-driver Linode K3s cluster, and the cluster was successfully provisioned.
Below are the pod logs: