-
Notifications
You must be signed in to change notification settings - Fork 327
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add health check to ensure trafficserver is responding.
- Loading branch information
Showing
2 changed files
with
25 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,7 @@ | ||
# A fake endpoint that just returns a 200 OK response. We'll use this to check | ||
# if Trafficserver is up and responding (since Envoy may not be up if that's | ||
# hosted separately). | ||
map http://api-umbrella-trafficserver-health.internal/_trafficserver-health/ http://127.0.0.1 @plugin=generator.so | ||
|
||
# Route all requests to Envoy for proxying to underlying API backends. | ||
map / <%- config["envoy"]["scheme"] %>://<%- config["envoy"]["host"] %>:<%- config["envoy"]["port"] %> |