Skip to content

Commit 5bea846

Browse files
authored
Merge pull request #44 from ckauzlaric-work/ck-update-to-v3-endpoint
updates from onboarding
2 parents 5c8fc77 + 287f2fb commit 5bea846

File tree

2 files changed

+22
-15
lines changed

2 files changed

+22
-15
lines changed

http-routes/040-route-propagation-pt-2.markdown

+21-14
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ to.
5353
1. Ssh onto the Diego Cell vm where appA is running and become root. You can
5454
find where appA is running by running the following command:
5555
```bash
56-
cf curl /v2/apps/<app-guid>/stats
56+
cf curl /v3/apps/<app-guid>/processes/web/stats
5757
```
5858
1. Use the [cfdot CLI](https://github.com/cloudfoundry/cfdot) to query BBS for
5959
actualLRPs. Cfdot is a helpful CLI for using the BBS API. It's a great tool
@@ -73,21 +73,21 @@ to.
7373
"ports": [
7474
{
7575
"container_port": 8080,
76-
"host_port": 61005,
76+
"host_port": 0,
7777
"container_tls_proxy_port": 61001,
78-
"host_tls_proxy_port": 61007
78+
"host_tls_proxy_port": 61002
7979
},
8080
{
8181
"container_port": 8080,
82-
"host_port": 61005,
82+
"host_port": 0,
8383
"container_tls_proxy_port": 61443,
84-
"host_tls_proxy_port": 61008
84+
"host_tls_proxy_port": 0
8585
},
8686
{
8787
"container_port": 2222,
88-
"host_port": 61006,
88+
"host_port": 0,
8989
"container_tls_proxy_port": 61002,
90-
"host_tls_proxy_port": 61009
90+
"host_tls_proxy_port": 61003
9191
}
9292
],
9393
"instance_address": "10.255.213.150",
@@ -115,15 +115,21 @@ to.
115115
"ports": [
116116
{
117117
"container_port": 8080, <------ CONTAINER_APP_PORT
118-
"host_port": 61012, <------ DIEGO_CELL_APP_PORT
118+
"host_port": 0, <------ DIEGO_CELL_APP_PORT
119119
"container_tls_proxy_port": 61001, <------ CONTAINER_ENVOY_PORT
120-
"host_tls_proxy_port": 61014, <------ DIEGO_CELL_ENVOY_PORT
120+
"host_tls_proxy_port": 61002 <------ DIEGO_CELL_ENVOY_PORT
121+
},
122+
{
123+
"container_port": 8080, <------- FOR_C2C
124+
"host_port": 0, <------- FOR_C2C
125+
"container_tls_proxy_port": 61443, <------- FOR_C2C
126+
"host_tls_proxy_port": 0 <------- FOR_C2C
121127
},
122128
{
123129
"container_port": 2222, <------ CONTAINER_SSH_PORT
124-
"host_port": 61013, <------ DIEGO_CELL_SSH_PORT
130+
"host_port": 0, <------ DIEGO_CELL_SSH_PORT
125131
"container_tls_proxy_port": 61002, <------ CONTAINER_ENVOY_SSH_PORT
126-
"host_tls_proxy_port": 61015 <------ DIEGO_CELL_ENVOY_SSH_PORT
132+
"host_tls_proxy_port": 61003 <------ DIEGO_CELL_ENVOY_SSH_PORT
127133
}
128134
],
129135
"instance_address": "10.255.116.6", <------ The overlay IP address of this app instance, let's call this the OVERLAY_IP
@@ -132,18 +138,19 @@ to.
132138
}
133139
```
134140
1. Let's define all of these values.
135-
* 👇 These are important for this module 👇
141+
* 👇 These are important for this module 👇
136142
* **DIEGO_CELL_IP** - The cell's IP address where this app instance is running, also sometimes called the host IP.
137143
* **CONTAINER_APP_PORT** - The port the app is listening on inside of its container. 8080 is the default value.
138-
* **DIEGO_CELL_APP_PORT** - The port on the Diego Cell where traffic to your app is sent to before it is forwarded to the overlay address and the container_port.
144+
* **DIEGO_CELL_APP_PORT** - The port on the Diego Cell where traffic to your app is sent to before it is forwarded to the overlay address and the container_port. By default this is 0 so that no port is exposed that sends traffic to the non-encrypted container port.
139145
* **CONTAINER_ENVOY_PORT** - The port inside of the app container that envoy is listening on for HTTPS traffic. This is the default value (currently unchangeable).
140146
* **DIEGO_CELL_ENVOY_PORT** - The port on the Diego Cell where traffic to your app's envoy sidecar is sent to before it is forwarded to the overlay address and the container_tls_proxy_port.
141147
* 👇 These are NOT important for this module 👇
142148
* **CONTAINER_SSH_PORT** - The port exposed on the app container for sshing onto the app container
143-
* **DIEGO_CELL_SSH_PORT** - The port on the Diego Cell where ssh traffic to your app container is sent to before it is forwarded to the overlay address and the ssh container_port.
149+
* **DIEGO_CELL_SSH_PORT** - The port on the Diego Cell where ssh traffic to your app container is sent to before it is forwarded to the overlay address and the ssh container_port. By default this is 0 so that no port is exposed that sends traffic to the non-encrypted container port.
144150
* **CONTAINER_ENVOY_SSH_PORT** - The ssh port inside of the app container that envoy is listening on for ssh traffic. This is the default value (currently unchangeable).
145151
* **DIEGO_CELL_ENVOY_SSH_PORT** - The port on the Diego Cell where ssh traffic to your app's envoy sidecar is sent to before it is forwarded to the overlay address and the ssh container_tls_proxy_port.
146152
* **OVERLAY_IP** - The overlay IP address of this app instance.
153+
* **FOR_C2C** - This entry is used for Container to Container networking. See [this doc](https://docs.cloudfoundry.org/concepts/understand-cf-networking.html#securing-container-to-container-traffic) for more information.
147154

148155
1. Use the cfdot CLI to query BBS for desiredLRPs.
149156

http-routes/130-debugging-tip.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Here is simplified diagram of the data flow of an http route:
2626
```
2727

2828
When to do this:
29-
* when you are having problems connecting to an app and you want to start picking off items on by one that are _not_ the problem.
29+
* when you are having problems connecting to an app and you want to start picking off items one by one that are _not_ the problem.
3030
* when one particular gorouter is having problems and you want to send traffic to just that gorouter.
3131
* when you are debugging and want to point your traffic at a particular gorouter so you can find the logs easier.
3232

0 commit comments

Comments
 (0)