Skip to content

Commit fa73a1d

Browse files
authored
Update custom http listener example readme (#6036)
1 parent a6e488d commit fa73a1d

File tree

1 file changed

+8
-17
lines changed
  • examples/custom-resources/custom-listeners

1 file changed

+8
-17
lines changed

examples/custom-resources/custom-listeners/README.md

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -70,24 +70,15 @@ here we deploy a GlobalConfiguration resource with the listeners we want to use
7070
kubectl create -f global-configuration.yaml
7171
```
7272

73-
## Step 2 - Save the custom port numbers
74-
75-
Save the custom HTTP and/or HTTPS ports into a shell variables for later:
76-
77-
```console
78-
IC_HTTP_PORT=8083
79-
IC_HTTPS_PORT=8443
80-
```
81-
82-
## Step 3 - Deploy the Cafe Application
73+
## Step 2 - Deploy the Cafe Application
8374

8475
Create the coffee and the tea deployments and services:
8576

8677
```console
8778
kubectl create -f cafe.yaml
8879
```
8980

90-
## Step 4 - Deploy the VirtualServer with custom listeners
81+
## Step 3 - Deploy the VirtualServer with custom listeners
9182

9283
The VirtualServer in this example is set to use the listeners defined in the GlobalConfiguration resource
9384
that was deployed in Step 1. Below is the yaml of this example VirtualServer:
@@ -132,7 +123,7 @@ that was deployed in Step 1. Below is the yaml of this example VirtualServer:
132123
kubectl create -f cafe-virtual-server.yaml
133124
```
134125

135-
## Step 5 - Test the Configuration
126+
## Step 4 - Test the Configuration
136127

137128
1. Check that the configuration has been successfully applied by inspecting the events of the VirtualServer:
138129

@@ -158,13 +149,13 @@ that was deployed in Step 1. Below is the yaml of this example VirtualServer:
158149
Normal AddedOrUpdated 7s nginx-ingress-controller Configuration for default/cafe was added or updated
159150
```
160151

161-
2. Since the deployed VirtualServer is using ports `8083` and 8443` in this example. you must explicitly specify these ports
152+
2. Since the deployed VirtualServer is using ports `8083` and `8443` in this example. you must explicitly specify these ports
162153
when sending requests to the endpoints of this VirtualServer:
163154

164-
For `/coffee` on `8443`:
155+
For `/coffee` on `8083`:
165156

166157
```console
167-
curl -k https://cafe.example.com:8443/coffee
158+
curl -k http://cafe.example.com:8083/coffee
168159
```
169160

170161
```text
@@ -175,10 +166,10 @@ when sending requests to the endpoints of this VirtualServer:
175166
...
176167
```
177168

178-
For `/coffee` on `8083`:
169+
For `/coffee` on `8443`:
179170

180171
```console
181-
curl -k https://cafe.example.com:8083/coffee
172+
curl -k https://cafe.example.com:8443/coffee
182173
```
183174

184175
```text

0 commit comments

Comments
 (0)