kubernetes-yaml/learn/learn-kubernetes-master/kiamol/ch21/functions/todo-api/ingress/ingress.yaml

21 lines
546 B
YAML
Raw Normal View History

apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: todo-api
labels:
kiamol: ch21
spec:
rules:
- host: api.todo.kiamol.local
http:
paths:
- path: /todos
backend:
serviceName: todo-api
servicePort: 8080
# this spec is equivalent to running
# kubeless trigger http create todo-api --function-name todo-api --path todos --hostname api.todo.kiamol.local
# but that fails with Kubeless 1.0.7 running on Kubernetes 1.18 - see
# https://github.com/kubeless/kubeless/issues/1130