🎨 enable externalTrafficPolicy: Local option to forward external IP

This commit is contained in:
2024-07-29 14:16:43 +01:00
parent 0f6eb95f20
commit 05fc32f18a
16 changed files with 324 additions and 221 deletions
+6
View File
@@ -39,6 +39,8 @@ spec:
mountPath: /var/www/certbot/
- name: proxy-cache-path-volume
mountPath: /tmp/cache/
- name: secret-htpasswd
mountPath: /authentication-htpasswd/
resources:
limits:
cpu: 250m
@@ -60,6 +62,9 @@ spec:
- name: proxy-cache-path-volume
emptyDir:
medium: Memory
- name: secret-htpasswd
secret:
secretName: htpasswd
---
apiVersion: v1
kind: Service
@@ -67,6 +72,7 @@ metadata:
name: reverse-proxy
namespace: reverse-proxy
spec:
externalTrafficPolicy: Local
ports:
- name: http
port: 80