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 - name: run-volume
mountPath: /var/run/apache2 mountPath: /var/run/apache2
subPath: apache2 subPath: apache2
- name: hugepage
mountPath: /hugepages
resources: resources:
limits: limits:
cpu: 1500m cpu: 1500m
hugepages-2Mi: 1Gi
memory: 2048Mi memory: 2048Mi
requests: requests:
cpu: 500m cpu: 500m
hugepages-2Mi: 1Gi
memory: 256Mi memory: 256Mi
readinessProbe: readinessProbe:
tcpSocket: tcpSocket:
@ -83,8 +87,7 @@ spec:
- containerPort: 8080 - containerPort: 8080
name: nextcloud-http name: nextcloud-http
command: ["/bin/bash"] 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"] #command: ["/bin/sh","-c", "apachectl -D FOREGROUND; tail -f /dev/null"]
initContainers: initContainers:
- image: docker.sunet.se/sunet/docker-jinja:latest - image: docker.sunet.se/sunet/docker-jinja:latest
@ -235,3 +238,7 @@ spec:
- name: conf-volume - name: conf-volume
emptyDir: emptyDir:
sizeLimit: 500Mi sizeLimit: 500Mi
- name: hugepage
emptyDir:
medium: HugePages