From 0522c526975b59b2a5c3902f63a43cc036401597 Mon Sep 17 00:00:00 2001 From: pierre Date: Tue, 15 Oct 2024 10:59:55 +0100 Subject: [PATCH] trying to purge from staticfiles --- Nginx.kube.yaml | 31 ++++++++++++++++++------------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/Nginx.kube.yaml b/Nginx.kube.yaml index 108fdf4..c0dca88 100644 --- a/Nginx.kube.yaml +++ b/Nginx.kube.yaml @@ -37,12 +37,13 @@ spec: mountPath: /etc/nginx/conf.d/ - name: reverse-proxy-ssl mountPath: /etc/nginx/ssl/ - - name: nginx-configfile - mountPath: /tmp/etc/nginx/ - - mountPath: /etc/nginx/nginx.conf - name: nginx-configfile-volume - - name: reverse-proxy-www - mountPath: /var/www/certbot/ +#try to chnage from static file to confimap +# - mountPath: /etc/nginx/nginx.conf +# name: nginx-configfile-volume + - mountPath: /etc/nginx/ + name: nginx-configfile +# - name: reverse-proxy-www +# mountPath: /var/www/certbot/ - name: proxy-cache-path-volume mountPath: /tmp/cache/ - name: secret-htpasswd @@ -52,15 +53,19 @@ spec: cpu: 250m memory: 250Mi volumes: - - name: reverse-proxy-conf - hostPath: - path: /opt/kubernetes/Reverse_proxy_Nginx/conf.d +# - name: reverse-proxy-conf +# hostPath: +# path: /opt/kubernetes/Reverse_proxy_Nginx/conf.d - name: reverse-proxy-www hostPath: path: /opt/kubernetes/Reverse_proxy_Nginx/certbot/www/ - name: reverse-proxy-ssl hostPath: path: /opt/kubernetes/Reverse_proxy_Nginx/certbot/conf/ +# - hostPath: +# path: /opt/kubernetes/Reverse_proxy_Nginx/nginx.conf +# type: File +# name: nginx-configfile-volume - name: nginx-configfile configMap: name: nginx-config @@ -73,10 +78,10 @@ spec: # hostPath: # path: /opt/kubernetes/Reverse_proxy_Nginx/nginx.conf # directory location on host # type: File # this field is optional - - name: nginx-configfile-volume - configMap: - name: nginx-config - defaultMode: 0555 +# - name: nginx-configfile-volume +# configMap: +# name: nginx-config +# defaultMode: 0555 - name: proxy-cache-path-volume emptyDir: medium: Memory