Repository navigation
refactor sandboxes -> getting started - #469
Conversation
| Sandboxes | ||
| --------- | ||
|
|
||
| We've created a number of sandboxes using Docker Compose that set up different environments to test out Envoy's features and show samples configurations. As we gauge people's interests we will add more sandboxes demonstrating |
There was a problem hiding this comment.
Nit: s/samples configurations/sample configurations/
Nit: s/people's/peoples'/
There was a problem hiding this comment.
nit: please also try to wrap around 100 cols for docs
There was a problem hiding this comment.
Fixed the typos. Will switch back to Emacs for working on the Envoy docs just for Matt ;->.
| @@ -0,0 +1,30 @@ | |||
| .. _install_getting_started: | |||
|
|
|||
| Getting Started | |||
There was a problem hiding this comment.
What about including the google.com smoketest in this section as well? https://www.envoyproxy.io/docs/envoy/latest/install/ref_configs.html#smoketest-configuration
There was a problem hiding this comment.
+1. We should move that to here from that buried location and highlight it. The smoke test config is very simple to understand and a great way to get started.
There was a problem hiding this comment.
No problem. Not sure if you guys saw what I wrote at https://www.envoyproxy.io/download when I did the website, but I can copy the docs I wrote into here. (At least, when I came across the smoketest, I had to spend awhile figuring out how to get the Envoy binary to actually run the config.)
mattklein123
left a comment
There was a problem hiding this comment.
Thanks for working on this! Couple of comments.
| Sandboxes | ||
| --------- | ||
|
|
||
| We've created a number of sandboxes using Docker Compose that set up different environments to test out Envoy's features and show samples configurations. As we gauge people's interests we will add more sandboxes demonstrating |
There was a problem hiding this comment.
nit: please also try to wrap around 100 cols for docs
| building | ||
| ref_configs | ||
| sandboxes/sandboxes.rst | ||
| getting_started |
There was a problem hiding this comment.
I think my preference would be to move getting started before ref_configs. I think it flows better. Thoughts?
| @@ -0,0 +1,30 @@ | |||
| .. _install_getting_started: | |||
|
|
|||
| Getting Started | |||
There was a problem hiding this comment.
+1. We should move that to here from that buried location and highlight it. The smoke test config is very simple to understand and a great way to get started.
|
OK, I've made the suggested changes. The only open item are the instructions with the smoke test, where I went with a Docker-based approach. (Not sure what was intended with the original docs.) The Docker stuff works well for me, but I need to change the listener config to point to |
mattklein123
left a comment
There was a problem hiding this comment.
This is awesome! Few more comments.
| --------------------- | ||
|
|
||
| A very minimal Envoy configuration that can be used to validate basic plain HTTP | ||
| proxying is available in :repo:`configs/google_com_proxy.json`. This is not |
There was a problem hiding this comment.
Can we reference the new v2 YAML config?
There was a problem hiding this comment.
Yes, I can do that. There are two changes that I need to make to the default YAML to get it work for me -- I need to set dns_lookup_family to do V4_ONLY and change the listener to 0.0.0.0. If these changes are OK to put into the default smoketest, I'm happy to create a PR for this.
There was a problem hiding this comment.
SGTM. the V4_ONLY is already there but commented out. Let's just make it the default for smoke test purposes (maybe with a comment there that talks about how to test v6 if desired).
| proxying is available in :repo:`configs/google_com_proxy.json`. This is not | ||
| intended to represent a realistic Envoy deployment. | ||
|
|
||
| Create a ``Dockerfile`` that uses the latest Envoy images: |
There was a problem hiding this comment.
Should we just commit this in the main envoy repo so its ready to go?
|
|
||
| Make sure ``configs/google_com_proxy.json`` is in the same directory as your | ||
| ``Dockerfile``. Note that you may need to modify the listener to point to | ||
| 0.0.0.0 instead of 127.0.0.1. Then, build and run the Dockerfile: |
There was a problem hiding this comment.
Maybe just change the config to bind to 0.0.0.0 by default?
|
Here's my proposed plan:
|
|
@richarddli +1 thank you! |
simplify default config so someone can try envoy quickly add default Dockerfile for a quickstart Risk Level: Low Testing: Manual testing Docs Changes: Precursor to envoyproxy/data-plane-api#469 Signed-off-by: Richard Li <[email protected]>
|
OK, the changes that reference the updated smoketest settings are now in. This PR should be ready for merge, pending a final review. |
mattklein123
left a comment
There was a problem hiding this comment.
Nice, this is awesome. Will defer to @htuch for further review/merge.
|
@richarddli I think maybe a merge got messed up. Can you take a look? I think this was otherwise ready to go. |
htuch
left a comment
There was a problem hiding this comment.
@richarddli can you follow the instructions at https://github.com/envoyproxy/envoy/blob/master/CONTRIBUTING.md#fixing-dco to fix DCO? Thanks!
|
|
||
| The Dockerfile will build a container containing the latest version of Envoy, | ||
| and copy a basic Envoy configuration into the container. This basic | ||
| configuration tells Envoy to route incoming requests to Google.com. |
Signed-off-by: Richard Li <[email protected]>
|
@richarddli I think you are picking up other changes now? |
Signed-off-by: Richard Li <[email protected]>
Signed-off-by: Richard Li <[email protected]>
|
OK, sorry for all the Git madness. I've fixed this, and made @htuch requested changes as well. Because I had to squash to get the DCO to work, GitHub still thinks the changes requested is valid. |
|
@richarddli your diff still includes changes that shouldn't be in the diff. Can you merge upstream master? |
The sandboxes section is somewhat overloaded with both sandboxes & a HOWTO on how to build a custom Envoy docker image. This PR reorganizes the Sandboxes section to a Getting Started section. This also sets the stage for adding other types of quickstart docs.
Signed-off-by: Richard Li [email protected]