security: change storefront from NodePort to ClusterIP (routed through Traefik)
Build and Deploy / build (push) Successful in 0s
Build and Deploy / build (push) Successful in 0s
This commit is contained in:
+1
-5
@@ -4,13 +4,9 @@ metadata:
|
||||
name: storefront
|
||||
namespace: manoonoils
|
||||
spec:
|
||||
# Use NodePort with externalTrafficPolicy: Local to preserve client source IP
|
||||
# This is required for proper client IP detection in analytics (Rybbit, etc.)
|
||||
type: NodePort
|
||||
externalTrafficPolicy: Local
|
||||
type: ClusterIP
|
||||
selector:
|
||||
app: storefront
|
||||
ports:
|
||||
- port: 3000
|
||||
targetPort: 3000
|
||||
# Let Kubernetes assign a NodePort automatically
|
||||
|
||||
Reference in New Issue
Block a user