Allocate hugepages

This commit is contained in:
Micke Nordin 2023-03-29 12:55:47 +02:00
parent caef690d29
commit 1543b52758
Signed by untrusted user: Micke
GPG key ID: 0DA0A7A5708FE257

View file

@ -62,12 +62,16 @@ spec:
- name: run-volume
mountPath: /var/run/apache2
subPath: apache2
- name: hugepage
mountPath: /hugepages
resources:
limits:
cpu: 1500m
hugepages-2Mi: 1Gi
memory: 2048Mi
requests:
cpu: 500m
hugepages-2Mi: 1Gi
memory: 256Mi
readinessProbe:
tcpSocket:
@ -83,8 +87,7 @@ spec:
- containerPort: 8080
name: nextcloud-http
command: ["/bin/bash"]
args: ["-c", "apachectl -D FOREGROUND"]
#args: ["-c", "cp /etc/apache2/mods-available/{php8.0.conf,php8.0.load}; apachectl -D FOREGROUND"]
args: ["-c", "cp /etc/apache2/mods-available/{php8.0.conf,php8.0.load}; apachectl -D FOREGROUND"]
#command: ["/bin/sh","-c", "apachectl -D FOREGROUND; tail -f /dev/null"]
initContainers:
- image: docker.sunet.se/sunet/docker-jinja:latest
@ -235,3 +238,7 @@ spec:
- name: conf-volume
emptyDir:
sizeLimit: 500Mi
- name: hugepage
emptyDir:
medium: HugePages