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
|
name: storefront
|
||||||
namespace: manoonoils
|
namespace: manoonoils
|
||||||
spec:
|
spec:
|
||||||
# Use NodePort with externalTrafficPolicy: Local to preserve client source IP
|
type: ClusterIP
|
||||||
# This is required for proper client IP detection in analytics (Rybbit, etc.)
|
|
||||||
type: NodePort
|
|
||||||
externalTrafficPolicy: Local
|
|
||||||
selector:
|
selector:
|
||||||
app: storefront
|
app: storefront
|
||||||
ports:
|
ports:
|
||||||
- port: 3000
|
- port: 3000
|
||||||
targetPort: 3000
|
targetPort: 3000
|
||||||
# Let Kubernetes assign a NodePort automatically
|
|
||||||
|
|||||||
Reference in New Issue
Block a user