Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Unable to use Systemd on GKE container without making the container Privileged

The application container i am using to deploy on GKE pod, uses Systemctl for starting/stopping the services. But don't want to make the container privileged. In AWS EKS i am able to do this without privileged mode. Is there any way to use systemclt without privileged mode.

0 3 344
3 REPLIES 3

So you are running systemd in your actual pod?

Yes we are using systemd on the actual pod

Hi demishra,

following kubernetes.io official documentation, you can try to use Security Context and avoid using Privilege Escalation --> https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ 

 

If you need some help, we can keep in touch 🙂

Top Labels in this Space