WhatsApp / WhatsApp-Business-API-Setup-Scripts

The scripts related to setting up WhatsApp business API
MIT License
410 stars 433 forks source link

/usr/local/wamedia require privileges for kubernetes #16

Closed sneerin closed 4 years ago

sneerin commented 4 years ago

on GKE path for Kubernetes causing crash since GKE got security settings enabled for /usr/ path, replacing the path fix the issue

mengyiyuan commented 4 years ago

Hi,

Not 100% sure if I understand you. Are you saying that the user permission required for /usr/local/wamedia caused pods to crash on GKE because GKE has security limitations on /usr/ and all its subdirectories on the host?

Where did you replace the path? In the hostPath of the PV definition yaml?

sneerin commented 4 years ago

Both, on another bare metal k8s setup it was just failing to start without crashing probably also due to the same reason. Replacing to /var/wamedia did the trick.

mengyiyuan commented 4 years ago

Thanks for reporting this issue. Not quite sure what we should do in this case, please use the templates as a starting point/reference only, you may need to change things based on your system requirements, because it is difficult to cover all cases.

I'll close the issue for now, because I don't think any actions need to be taken here.

Thanks!