add memory medium for proxy cache
This commit is contained in:
+7
-2
@@ -34,9 +34,11 @@ spec:
|
|||||||
- name: reverse-proxy-ssl
|
- name: reverse-proxy-ssl
|
||||||
mountPath: /etc/nginx/ssl/
|
mountPath: /etc/nginx/ssl/
|
||||||
- mountPath: /etc/nginx/nginx.conf
|
- mountPath: /etc/nginx/nginx.conf
|
||||||
name: example-volume
|
name: nginx-configfile-volume
|
||||||
- name: reverse-proxy-www
|
- name: reverse-proxy-www
|
||||||
mountPath: /var/www/certbot/
|
mountPath: /var/www/certbot/
|
||||||
|
- name: proxy-cache-path-volume
|
||||||
|
mountPath: /tmp/cache/
|
||||||
volumes:
|
volumes:
|
||||||
- name: reverse-proxy-conf
|
- name: reverse-proxy-conf
|
||||||
hostPath:
|
hostPath:
|
||||||
@@ -47,10 +49,13 @@ spec:
|
|||||||
- name: reverse-proxy-ssl
|
- name: reverse-proxy-ssl
|
||||||
hostPath:
|
hostPath:
|
||||||
path: /opt/kubernetes/Reverse_proxy_Nginx/certbot/conf/
|
path: /opt/kubernetes/Reverse_proxy_Nginx/certbot/conf/
|
||||||
- name: example-volume
|
- name: nginx-configfile-volume
|
||||||
hostPath:
|
hostPath:
|
||||||
path: /opt/kubernetes/Reverse_proxy_Nginx/nginx.conf # directory location on host
|
path: /opt/kubernetes/Reverse_proxy_Nginx/nginx.conf # directory location on host
|
||||||
type: File # this field is optional
|
type: File # this field is optional
|
||||||
|
- name: proxy-cache-path-volume
|
||||||
|
emptyDir:
|
||||||
|
medium: Memory
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
|
|||||||
Reference in New Issue
Block a user