add templates/bookinfo-ingress.yaml

This commit is contained in:
Haitao Pan 2023-05-22 14:48:40 +08:00
parent 66fe670e96
commit 677019c877
2 changed files with 20 additions and 0 deletions

View File

@ -12,6 +12,7 @@
- bookinfo-reviews.yaml
- bookinfo-details.yaml
- bookinfo-ratings.yaml
- bookinfo-ingress.yaml
- name: Setup bookinfo
shell: "kubectl apply -f /tmp{{ item }}"
@ -22,3 +23,4 @@
- bookinfo-reviews.yaml
- bookinfo-details.yaml
- bookinfo-ratings.yaml
- bookinfo-ingress.yaml

View File

@ -0,0 +1,18 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: bookinfo
namespace: default
spec:
ingressClassName: nginx
rules:
- host: bookinfo.onwalk.net
http:
paths:
- backend:
service:
name: productpage
port:
number: 9080
path: /
pathType: Prefix