-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update proxy configuration format (#144)
* Update proxy configuration Update proxy configuration format Update tests and docs Merge the server/client configuration example Replace metrics config with generic admin config Fixes #130 Co-authored-by: Mark Mandel <markmandel@google.com>
- Loading branch information
1 parent
abb9fe9
commit fbd4dd7
Showing
32 changed files
with
698 additions
and
677 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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,81 @@ | ||
Proxy Configuration | ||
|
||
The following is the schema and reference for a Quilkin proxy configuration file. See the [examples] folder for example configuration files. | ||
|
||
```yaml | ||
type: object | ||
properties: | ||
version: | ||
type: string | ||
description: | | ||
The configuration file version to use. | ||
enum: | ||
- v1alpha1 | ||
proxy: | ||
type: object | ||
description: | | ||
Configuration of core proxy behavior. | ||
properties: | ||
id: | ||
type: string | ||
description: | | ||
An identifier for the proxy instance. | ||
default: <uuid> A unique ID is generated for the proxy. | ||
port: | ||
type: integer | ||
description: | | ||
The listening port for the proxy. | ||
default: 7000 | ||
mode: | ||
type: string | ||
description: | | ||
The mode in which the proxy should run. | ||
enum: | ||
- SERVER | ||
- CLIENT | ||
default: SERVER | ||
admin: | ||
type: object | ||
description: | | ||
Configuration of operational proxy behavior. | ||
properties: | ||
metrics: | ||
type: object | ||
description: | | ||
Metrics related configuration. | ||
properties: | ||
port: | ||
type: integer | ||
description: | | ||
Port on which to expose metrics. | ||
default: 9091 | ||
static: | ||
type: object | ||
description: | | ||
Static configuration of endpoints and filters. | ||
properties: | ||
filter: | ||
'$ref': '#/definitions/filterchain' | ||
endpoints: | ||
'$ref': '#/definitions/endpoints' | ||
required: | ||
- endpoints | ||
|
||
required: | ||
- version | ||
|
||
definitions: | ||
filterchain: | ||
type: array | ||
description: | | ||
A filter chain. | ||
items: | ||
'$ref': {} # Refer to the Filter documentation for a filter configuration schema. | ||
endpoints: | ||
type: array | ||
description: | | ||
A list of upstream endpoints to forward packets to. | ||
``` | ||
[examples]: ../examples | ||
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.