23 lines
471 B
YAML
23 lines
471 B
YAML
|
apiVersion: networking.k8s.io/v1
|
||
|
kind: Ingress
|
||
|
metadata:
|
||
|
name: example-ingress-single
|
||
|
namespace: demo
|
||
|
labels:
|
||
|
name: example-ingress-single
|
||
|
app: ingress
|
||
|
type: ingress
|
||
|
annotations:
|
||
|
nginx.ingress.kubernetes.io/rewrite-target: /
|
||
|
spec:
|
||
|
rules:
|
||
|
- http:
|
||
|
paths:
|
||
|
- path: /testpath
|
||
|
pathType: Prefix
|
||
|
backend:
|
||
|
service:
|
||
|
name: test
|
||
|
port:
|
||
|
number: 80
|