add memory medium for proxy cache

This commit is contained in:
2024-07-19 12:02:24 +01:00
parent dd9fdf8342
commit b05fcbc944
+7 -2
View File
@@ -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