You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
k3s version v1.21.3+k3s1 (1d1f220)
go version go1.16.6
Node(s) CPU architecture, OS, and Version:
Ubuntu 20 x86_64
$ uname -a
Linux ip-172-31-30-177 5.4.0-1045-aws #47-Ubuntu SMP Tue Apr 13 07:02:25 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Same thing happens on Amazon Linux 2
Cluster Configuration:
Single node setup by running
curl -sfL https://get.k3s.io | sh -s - --write-kubeconfig-mode 644
on the host.
Describe the bug:
We run containers in non-root mode, and need to support OpenShift so we rely on Group folder permissions for writing data out from our containers. (Under OpenShift, the containers are run as a random user ID, but a group ID of 0)
When we run our containers on K3s v1.21.3+k3s1 using the local-path storage type, the mounted volume gets the permissions:
drwx------ 2 root root 4.0K Aug 13 08:13 test
So our apps cannot write to the volume (as we do not run our containers as root)
Steps To Reproduce:
Install v1.21.3+k3s1 (the latest release at time of writing)
curl -sfL https://get.k3s.io | sh -s - --write-kubeconfig-mode 644
Environmental Info:
K3s Version:
Node(s) CPU architecture, OS, and Version:
Cluster Configuration:
Describe the bug:
We run containers in non-root mode, and need to support OpenShift so we rely on Group folder permissions for writing data out from our containers. (Under OpenShift, the containers are run as a random user ID, but a group ID of 0)
When we run our containers on K3s
v1.21.3+k3s1
using the local-path storage type, the mounted volume gets the permissions:So our apps cannot write to the volume (as we do not run our containers as root)
Steps To Reproduce:
v1.21.3+k3s1
(the latest release at time of writing)/test
mount pointExpected behavior:
I expect the output (note the
/test
permissions)Actual behavior:
We actually see this, where only the root user can write to
/test
:Additional context / logs:
If I install the previous version of K3s with
It works as expected
Backporting
The text was updated successfully, but these errors were encountered: