Change formatting of example-ingress.yaml (#16545)
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
84a1651d19
commit
313379c109
@@ -142,14 +142,14 @@ The following file is an Ingress resource that sends traffic to your Service via
|
|||||||
annotations:
|
annotations:
|
||||||
nginx.ingress.kubernetes.io/rewrite-target: /$1
|
nginx.ingress.kubernetes.io/rewrite-target: /$1
|
||||||
spec:
|
spec:
|
||||||
rules:
|
rules:
|
||||||
- host: hello-world.info
|
- host: hello-world.info
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /|/(.+)
|
- path: /|/(.+)
|
||||||
backend:
|
backend:
|
||||||
serviceName: web
|
serviceName: web
|
||||||
servicePort: 8080
|
servicePort: 8080
|
||||||
|
|
||||||
1. Create the Ingress resource by running the following command:
|
1. Create the Ingress resource by running the following command:
|
||||||
|
|
||||||
@@ -232,10 +232,10 @@ The following file is an Ingress resource that sends traffic to your Service via
|
|||||||
1. Edit the existing `example-ingress.yaml` and add the following lines:
|
1. Edit the existing `example-ingress.yaml` and add the following lines:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- path: /v2/*
|
- path: /v2/*
|
||||||
backend:
|
backend:
|
||||||
serviceName: web2
|
serviceName: web2
|
||||||
servicePort: 8080
|
servicePort: 8080
|
||||||
```
|
```
|
||||||
|
|
||||||
1. Apply the changes:
|
1. Apply the changes:
|
||||||
|
|||||||
Reference in New Issue
Block a user