probably had a change but it's not working yet

This commit is contained in:
2024-10-14 21:59:09 +01:00
parent 1a1db6d6df
commit 6356a07e45
+22 -4
View File
@@ -8,6 +8,8 @@ kind: Deployment
metadata: metadata:
name: reverse-proxy name: reverse-proxy
namespace: reverse-proxy namespace: reverse-proxy
annotations:
reloader.stakater.com/search: "true"
spec: spec:
replicas: 1 replicas: 1
selector: selector:
@@ -29,10 +31,14 @@ spec:
- containerPort: 443 - containerPort: 443
name: rp-port-https name: rp-port-https
volumeMounts: volumeMounts:
- name: reverse-proxy-conf # - name: reverse-proxy-conf
# mountPath: /etc/nginx/conf.d/
- name: nginx-sites-terraform
mountPath: /etc/nginx/conf.d/ mountPath: /etc/nginx/conf.d/
- name: reverse-proxy-ssl - name: reverse-proxy-ssl
mountPath: /etc/nginx/ssl/ mountPath: /etc/nginx/ssl/
- name: nginx-configfile
mountPath: /tmp/etc/nginx/
- mountPath: /etc/nginx/nginx.conf - mountPath: /etc/nginx/nginx.conf
name: nginx-configfile-volume name: nginx-configfile-volume
- name: reverse-proxy-www - name: reverse-proxy-www
@@ -55,10 +61,22 @@ 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: 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 - name: nginx-configfile-volume
hostPath: configMap:
path: /opt/kubernetes/Reverse_proxy_Nginx/nginx.conf # directory location on host name: nginx-config
type: File # this field is optional defaultMode: 0555
- name: proxy-cache-path-volume - name: proxy-cache-path-volume
emptyDir: emptyDir:
medium: Memory medium: Memory