probably had a change but it's not working yet
This commit is contained in:
+22
-4
@@ -8,6 +8,8 @@ kind: Deployment
|
||||
metadata:
|
||||
name: reverse-proxy
|
||||
namespace: reverse-proxy
|
||||
annotations:
|
||||
reloader.stakater.com/search: "true"
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
@@ -29,10 +31,14 @@ spec:
|
||||
- containerPort: 443
|
||||
name: rp-port-https
|
||||
volumeMounts:
|
||||
- name: reverse-proxy-conf
|
||||
# - name: reverse-proxy-conf
|
||||
# mountPath: /etc/nginx/conf.d/
|
||||
- name: nginx-sites-terraform
|
||||
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
|
||||
@@ -55,10 +61,22 @@ spec:
|
||||
- name: reverse-proxy-ssl
|
||||
hostPath:
|
||||
path: /opt/kubernetes/Reverse_proxy_Nginx/certbot/conf/
|
||||
- name: nginx-configfile
|
||||
configMap:
|
||||
name: nginx-config
|
||||
defaultMode: 0555
|
||||
- name: nginx-sites-terraform
|
||||
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
|
||||
hostPath:
|
||||
path: /opt/kubernetes/Reverse_proxy_Nginx/nginx.conf # directory location on host
|
||||
type: File # this field is optional
|
||||
configMap:
|
||||
name: nginx-config
|
||||
defaultMode: 0555
|
||||
- name: proxy-cache-path-volume
|
||||
emptyDir:
|
||||
medium: Memory
|
||||
|
||||
Reference in New Issue
Block a user