ingress yaml

This commit is contained in:
2026-02-16 16:36:26 +00:00
parent 3704465a7e
commit 20586f6a96

19
k8s/ingress.yaml Normal file
View File

@@ -0,0 +1,19 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: nodejs-app
namespace: apps
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /
spec:
ingressClassName: nginx
rules:
- http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: nodejs-app
port:
number: 80