rancher / tasks

1 stars 1 forks source link

Create kubectl + sh image to be used in Monitoring, CIS, and other charts #194

Open aiyengar2 opened 3 years ago

aiyengar2 commented 3 years ago

As investigated in https://github.com/rancher/rancher/issues/32519#issuecomment-859162408, rancher/shell is not an option since it requires root user privileges.

rancher/kubectl is also currently not an option since it builds from scratch with just a kubectl binary attached to it.

Therefore, we need to either:

  1. Update rancher/kubectl to have sh (possibly by making it based off of alpine instead of scratch?)
  2. Create a new image that can be used for these use cases
macedogm commented 2 years ago

FYI rancher/shell now runs in SLE-BCI as non-root user - https://github.com/rancher/shell/blob/4c4385ac4a17cc343f21ab348a159481027b50ef/package/Dockerfile#L28.