fix(ingress-nginx): rm L7 HTTP 80 netpols, force-ssl-redirect

This commit is contained in:
JJGadgets
2024-11-23 23:15:14 +08:00
parent 0d67755ed7
commit 83a113eccd
2 changed files with 1 additions and 6 deletions

View File

@@ -18,6 +18,7 @@ controller:
disable-access-log: "false"
log-format-escape-json: "true"
# hardening
force-ssl-redirect: "true"
hsts-max-age: "31449600"
hsts-preload: "true"
ssl-protocols: "TLSv1.3 TLSv1.2"

View File

@@ -30,9 +30,6 @@ spec:
- ports:
- port: "80"
protocol: TCP
rules:
http:
- {}
- ports:
- port: "443"
protocol: TCP
@@ -155,9 +152,6 @@ spec:
protocol: TCP
- port: "80"
protocol: TCP
rules:
http:
- {}
# connect to Rook-Ceph RGW/S3 object store in-cluster
- toServices:
- k8sServiceSelector: