22 lines
536 B
YAML
22 lines
536 B
YAML
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: myapplication
|
|
annotations:
|
|
nginx.ingress.kubernetes.io/proxy-body-size: "138m"
|
|
nginx.ingress.kubernetes.io/enable-cors: "true" #cf 01
|
|
nginx.ingress.kubernetes.io/cors-allow-headers: "X-Forwarded-For" #cf 01
|
|
spec:
|
|
ingressClassName: nginx
|
|
rules:
|
|
- host: myapplication.dev.local
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: myapplication
|
|
port:
|
|
number: 80
|