🎨 enable externalTrafficPolicy: Local option to forward external IP
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user