lucky-sideburn/kubeinvaders

Pods not starting in OpenShift

CharlieJ15420 opened this issue · 5 comments

Hey, when I install kubeinvaders the pod in openshift doesnt start - I keep getting the following errors. Are you aware of why this might be happening?

2022/03/09 15:45:38 [emerg] 13#13: setgid(65534) failed (1: Operation not permitted)
2022/03/09 15:45:38 [emerg] 12#12: setgid(65534) failed (1: Operation not permitted)
2022/03/09 15:45:38 [alert] 10#10: worker process 12 exited with fatal code 2 and cannot be respawned
2022/03/09 15:45:38 [alert] 10#10: worker process 13 exited with fatal code 2 and cannot be respawned

Hi! Thank you for using KubeInvaders! Can you try to run pod i privileged mode ore with scc for anyuid?

Hey, I've applied both of these commands but still get the same error
oc adm policy add-scc-to-user privileged system:serviceaccount:kubeinvaders:default
oc adm policy add-scc-to-user anyuid system:serviceaccount:kubeinvaders:default

Which version of OCP are you using?

Sorry it's sorted now - the version is 4.8 but I created my own scc and added it as I couldn't add it to the privileged scc for some reason.

On another point, is there any functionality to be able to destroy the individual containers within a pod, rather than the whole pod itself?

hi @CharlieJ15420!

Ok I have to install an OCP4 cluster or CRC and test it... I will let know you know ;)