Create ingress.yaml

This commit is contained in:
HanWool Jeon 2025-06-19 10:34:01 +09:00 committed by GitHub
parent 6f2c3c70fd
commit 70459d12e5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

21
web/ingress.yaml Normal file
View File

@ -0,0 +1,21 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: hi-web-ingress
namespace: ns-hiorder
annotations:
kubernetes.io/ingress.class: "nginx"
nginx.ingress.kubernetes.io/rewrite-target: /
nginx.ingress.kubernetes.io/configuration-snippet: |
try_files $uri $uri/ /index.html;
spec:
rules:
- http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: frontend-service
port:
number: 80