From b09999a8d04da5f79177138b85335c4b304423e6 Mon Sep 17 00:00:00 2001 From: pierre Date: Mon, 2 Feb 2026 21:50:23 +0000 Subject: [PATCH] removing all the fail2ban stuff --- Nginx.kube.yaml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/Nginx.kube.yaml b/Nginx.kube.yaml index 23e5923..47c90fe 100644 --- a/Nginx.kube.yaml +++ b/Nginx.kube.yaml @@ -23,6 +23,7 @@ spec: nodeName: kube-master containers: - image: nginx:alpine + #- image: gitea.tryton.geeraert.eu/pi-ux-ce/nginx-geoip2:latest imagePullPolicy: IfNotPresent name: reverse-proxy ports: @@ -31,8 +32,6 @@ spec: - containerPort: 443 name: rp-port-https volumeMounts: -# - name: reverse-proxy-conf-randomfile -# mountPath: /etc/nginx/conf.d/random.conf - name: nginx-sites-terraform mountPath: /etc/nginx/conf.d/ - mountPath: /var/log/nginx/ @@ -41,6 +40,10 @@ spec: mountPath: /etc/nginx/extra.conf.d/ - name: deny-ip-terraform mountPath: /etc/nginx/deny.d/ + - name: blacklisted-sessions-map + mountPath: /etc/nginx/blacklisted.d/ + - name: reverse-proxy-geoip + mountPath: /etc/nginx/geoip.d/ - name: reverse-proxy-ssl mountPath: /etc/nginx/ssl/ - mountPath: /etc/nginx/ @@ -60,11 +63,9 @@ spec: - name: reverse-proxy-ssl hostPath: path: /opt/kubernetes/Reverse_proxy_Nginx/certbot/conf/ - - hostPath: - path: /opt/kubernetes/Reverse_proxy_Nginx/random.conf - type: File - name: reverse-proxy-conf-randomfile - + - name: reverse-proxy-geoip + hostPath: + path: /opt/kubernetes/Reverse_proxy_Nginx/geoip - name: nginx-configfile configMap: name: nginx-config @@ -87,6 +88,9 @@ spec: - name: secret-htpasswd secret: secretName: htpasswd + - name: blacklisted-sessions-map + persistentVolumeClaim: + claimName: blacklisted-sessions-map --- apiVersion: v1 kind: Service