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

read-only file system in kubernetes environments #5

Open
horacimacias opened this issue Jan 15, 2020 · 0 comments
Open

read-only file system in kubernetes environments #5

horacimacias opened this issue Jan 15, 2020 · 0 comments

Comments

@horacimacias
Copy link

horacimacias commented Jan 15, 2020

first of all, thanks for sharing!

I'm testing this in a kubernetes environment.
My pod uses secrets which I believe end up mounted in a readonly file system which makes the copy operation fail:

copying [36/39]: sbin
copying [37/39]: srv
copying [38/39]: usr
copying [39/39]: var
panic: Error response from daemon: Error processing tar file(exit status 1): remove /var/run/secrets/kubernetes.io/serviceaccount/..data: read-only file system

This is the 'df' output inside my pod:

# df
Filesystem           1K-blocks      Used Available Use% Mounted on
overlay              102044664  64268072  33513944  66% /
tmpfs                    65536         0     65536   0% /dev
tmpfs                  8132592         0   8132592   0% /sys/fs/cgroup
/dev/mapper/vg_os-lv_root
                     102044664  64268072  33513944  66% /dev/termination-log
/dev/mapper/vg_os-lv_root
                     102044664  64268072  33513944  66% /etc/resolv.conf
/dev/mapper/vg_os-lv_root
                     102044664  64268072  33513944  66% /etc/hostname
/dev/mapper/vg_os-lv_root
                     102044664  64268072  33513944  66% /etc/hosts
shm                      65536         0     65536   0% /dev/shm
tmpfs                  8132592        12   8132580   0% /var/run/secrets/kubernetes.io/serviceaccount
tmpfs                  8132592         0   8132592   0% /proc/acpi
tmpfs                    65536         0     65536   0% /proc/kcore
tmpfs                    65536         0     65536   0% /proc/keys
tmpfs                    65536         0     65536   0% /proc/timer_list
tmpfs                    65536         0     65536   0% /proc/timer_stats
tmpfs                    65536         0     65536   0% /proc/sched_debug
tmpfs                  8132592         0   8132592   0% /proc/scsi
tmpfs                  8132592         0   8132592   0% /sys/firmware

still, I'm lucky the other files (outside /var) have been successfully copied but may be worth to think about this edge case.

@horacimacias horacimacias changed the title read-only file system read-only file system in kubernetes environments Jan 15, 2020
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

No branches or pull requests

1 participant