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

17 lines
318 B
YAML

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