trying to purge from staticfiles

This commit is contained in:
2024-10-15 10:59:55 +01:00
parent 6356a07e45
commit 0522c52697
+18 -13
View File
@@ -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