90DaysOfDevOps/2022/zh_tw/Days/Kubernetes/pacman-ingress.yaml

17 lines
318 B
YAML
Raw Normal View History

2022-10-23 23:38:19 +07:00
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: pacman-ingress
namespace: pacman
spec:
rules:
- host: pacman.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: pacman
port:
number: 80