-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Description
The chart or more exactly volume-permissions init-container has the expectation that it runs as root.
This needs a way to not have such an expectation without the ability to disable it.
Running with the following securityContext:
securityContext:
runAsNonRoot: true
runAsUser: 568
runAsGroup: 65534
fsGroup: 65534
fsGroupChangePolicy: OnRootMismatch
'/deployed-configs/map-gen-settings.json' -> '/factorio/configs/map-gen-settings.json'
'/deployed-configs/map-settings.json' -> '/factorio/configs/map-settings.json'
'/deployed-configs/server-adminlist.json' -> '/factorio/configs/server-adminlist.json'
'/deployed-configs/server-banlist.json' -> '/factorio/configs/server-banlist.json'
'/deployed-configs/server-settings.json' -> '/factorio/configs/server-settings.json'
'/deployed-configs/server-whitelist.json' -> '/factorio/configs/server-whitelist.json'
'/rcon-pw/rconpw' -> '/factorio/configs/rconpw'
chmod: changing permissions of '/factorio/configs': Operation not permitted
chmod: changing permissions of '/factorio/configs/map-gen-settings.json': Operation not permitted
chmod: changing permissions of '/factorio/configs/map-settings.json': Operation not permitted
chmod: changing permissions of '/factorio/configs/rconpw': Operation not permitted
chmod: changing permissions of '/factorio/configs/server-adminlist.json': Operation not permitted
chmod: changing permissions of '/factorio/configs/server-banlist.json': Operation not permitted
failed to change mode of '/factorio/configs' from 2777 (rwxrwsrwx) to 2777 (rwxrwsrwx)
chmod: changing permissions of '/factorio/configs/server-whitelist.json': Operation not permitted
failed to change mode of '/factorio/configs/map-gen-settings.json' from 0777 (rwxrwxrwx) to 0777 (rwxrwxrwx)
failed to change mode of '/factorio/configs/map-settings.json' from 0777 (rwxrwxrwx) to 0777 (rwxrwxrwx)
failed to change mode of '/factorio/configs/rconpw' from 0777 (rwxrwxrwx) to 0777 (rwxrwxrwx)
failed to change mode of '/factorio/configs/server-adminlist.json' from 0777 (rwxrwxrwx) to 0777 (rwxrwxrwx)
failed to change mode of '/factorio/configs/server-banlist.json' from 0777 (rwxrwxrwx) to 0777 (rwxrwxrwx)
failed to change mode of '/factorio/configs/server-whitelist.json' from 0777 (rwxrwxrwx) to 0777 (rwxrwxrwx)
mode of '/factorio/configs/server-settings.json' changed from 0644 (rw-r--r--) to 0777 (rwxrwxrwx)
This results in the init-container exiting with non-successful status and thus the pod will not start.
Metadata
Metadata
Assignees
Labels
No labels