MoJo2600 / pihole-kubernetes

PiHole on kubernetes
493 stars 171 forks source link

php-cgi crashes if Huge Page Enabled on Linux System ( fix) Web Interface /admin not accesable/working #268

Open buchmann opened 9 months ago

buchmann commented 9 months ago

php-cgi -i crash with dump error in the container, php -i works . The challenge if you use huge pages (mayastor need this) in your system then for php-cgi to work they need to be assigned upfront in the resource area of the container definition you do it with setting a limit on hugepages, parameter hugepages-2MI, I used 512 which works for me ( quick write up : https://www.allwaysbeginner.com/startseite/pihole-kubernetes ) resources: limits: cpu: "1" hugepages-2Mi: 512Mi

kevin7s-io commented 9 months ago

Literally came here to post the exact same thing. Hopefully your issue and this comment will save someone the 90min I spent digging into this.

From my values.yml:

resources:
  limits:
    cpu: 200m
    memory: 256Mi
    hugepages-2Mi: 100Mi
  requests:
    cpu: 100m
    memory: 128Mi