From b05fcbc944fa16e69c99d2b8d9c78c93eb873d6a Mon Sep 17 00:00:00 2001 From: pierre Date: Fri, 19 Jul 2024 12:02:24 +0100 Subject: [PATCH] add memory medium for proxy cache --- Nginx.kube.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Nginx.kube.yaml b/Nginx.kube.yaml index 254e48d..89dc7c7 100644 --- a/Nginx.kube.yaml +++ b/Nginx.kube.yaml @@ -34,9 +34,11 @@ spec: - name: reverse-proxy-ssl mountPath: /etc/nginx/ssl/ - mountPath: /etc/nginx/nginx.conf - name: example-volume + name: nginx-configfile-volume - name: reverse-proxy-www mountPath: /var/www/certbot/ + - name: proxy-cache-path-volume + mountPath: /tmp/cache/ volumes: - name: reverse-proxy-conf hostPath: @@ -47,10 +49,13 @@ spec: - name: reverse-proxy-ssl hostPath: path: /opt/kubernetes/Reverse_proxy_Nginx/certbot/conf/ - - name: example-volume + - name: nginx-configfile-volume hostPath: path: /opt/kubernetes/Reverse_proxy_Nginx/nginx.conf # directory location on host type: File # this field is optional + - name: proxy-cache-path-volume + emptyDir: + medium: Memory --- apiVersion: v1 kind: Service