k8s-samples/CKA_Course/ingress.yaml

16 lines
255 B
YAML
Raw Permalink Normal View History

2022-08-19 02:12:57 +00:00
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: my-ingress
spec:
rules:
- http:
paths:
- path: /somepath
pathType: Prefix
backend:
service:
name: my-service
port:
number: 80