Create ingress.yaml
This commit is contained in:
parent
6f2c3c70fd
commit
70459d12e5
21
web/ingress.yaml
Normal file
21
web/ingress.yaml
Normal 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
|
||||
Loading…
x
Reference in New Issue
Block a user