From 9426333b13d817075029c5bf77470396ec62cca3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BE=84=E6=BD=AD?= Date: Tue, 1 Nov 2022 21:53:18 +0800 Subject: [PATCH] Update README.md --- README.md | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index b93bef795..87a822aca 100644 --- a/README.md +++ b/README.md @@ -63,12 +63,22 @@ helm install higress -n higress-system oci://higress-registry.cn-hangzhou.cr.ali apiVersion: networking.k8s.io/v1 kind: Ingress metadata: - name: test-ingress + name: simple-example spec: - defaultBackend: - service: - name: test - port: - number: 80 + rules: + - host: foo.bar.com + http: + paths: + - path: /foo + pathType: Prefix + backend: + service: + name: test + port: + number: 80 ``` + +```bash +curl "$(k get svc -n higress-system higress-gateway -o jsonpath='{.status.loadBalancer.ingress[0].ip}')"/foo -H 'host: foo.bar.com' +```