This commit is contained in:
+6
-25
@@ -31,19 +31,14 @@ spec:
|
||||
- containerPort: 443
|
||||
name: rp-port-https
|
||||
volumeMounts:
|
||||
# - name: reverse-proxy-conf
|
||||
# mountPath: /etc/nginx/conf.d/
|
||||
# - name: reverse-proxy-conf-randomfile
|
||||
# mountPath: /etc/nginx/conf.d/random.conf
|
||||
- name: nginx-sites-terraform
|
||||
mountPath: /etc/nginx/conf.d/
|
||||
- name: reverse-proxy-ssl
|
||||
mountPath: /etc/nginx/ssl/
|
||||
#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
|
||||
@@ -53,19 +48,13 @@ spec:
|
||||
cpu: 250m
|
||||
memory: 250Mi
|
||||
volumes:
|
||||
# - 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
|
||||
- hostPath:
|
||||
path: /opt/kubernetes/Reverse_proxy_Nginx/random.conf
|
||||
type: File
|
||||
name: reverse-proxy-conf-randomfile
|
||||
- name: nginx-configfile
|
||||
configMap:
|
||||
name: nginx-config
|
||||
@@ -74,14 +63,6 @@ spec:
|
||||
configMap:
|
||||
name: sites-terraform
|
||||
defaultMode: 0555
|
||||
# - name: nginx-configfile-volume
|
||||
# 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: proxy-cache-path-volume
|
||||
emptyDir:
|
||||
medium: Memory
|
||||
|
||||
Reference in New Issue
Block a user