Use the Kong Admin API /schemas
endpoint to find default values:
curl -i http://localhost:8001/schemas/routes
In your kong.yaml
file, set the default values you want to use across all Routes.
For example:
_info:
defaults:
route:
https_redirect_status_code: 426
path_handling: v0
preserve_host: false
protocols:
- http
- https
regex_priority: 0
request_buffering: true
response_buffering: true
strip_path: true
Note: If the Route protocols include grpc
and grpcs
, the strip_path
schema value must be false
. If set to true
, deck returns a schema
violation error.
For documentation on all available properties, see the
Route object documentation.
Use the Kong Admin API /schemas
endpoint to find default values:
curl -i http://localhost:8001/schemas/services
In your kong.yaml
file, set the default values you want to use across all
Services. For example:
_info:
defaults:
service:
port: 80
protocol: http
connect_timeout: 60000
write_timeout: 60000
read_timeout: 60000
retries: 5
For documentation on all available properties, see the
Service object documentation.
Use the Kong Admin API /schemas
endpoint to find default values:
curl -i http://localhost:8001/schemas/upstreams
In your kong.yaml
file, set the default values you want to use across all
Upstreams. For example:
_info:
defaults:
upstream:
slots: 10000
algorithm: round-robin
hash_fallback: none
hash_on: none
hash_on_cookie_path: /
healthchecks:
active:
concurrency: 10
healthy:
http_statuses:
- 200
- 302
interval: 0
successes: 0
http_path: /
https_verify_certificate: true
timeout: 1
type: http
unhealthy:
http_failures: 0
http_statuses:
- 429
- 404
- 500
- 501
- 502
- 503
- 504
- 505
interval: 0
tcp_failures: 0
timeouts: 0
passive:
healthy:
http_statuses:
- 200
- 201
- 202
- 203
- 204
- 205
- 206
- 207
- 208
- 226
- 300
- 301
- 302
- 303
- 304
- 305
- 306
- 307
- 308
successes: 0
type: http
unhealthy:
http_failures: 0
http_statuses:
- 429
- 500
- 503
tcp_failures: 0
timeouts: 0
threshold: 0
For documentation on all available properties, see the
Upstream object documentation.
Use the Kong Admin API /schemas
endpoint to find default values:
curl -i http://localhost:8001/schemas/targets
In your kong.yaml
file, set the default values you want to use across all
Targets. For example:
_info:
defaults:
target:
weight: 100
For all available properties, see the
Target object documentation.
Use the Kong Admin API /schemas
endpoint to find default values:
curl -i http://localhost:8001/schemas/plugins/<plugin-name>
decK doesn’t support setting custom default values for the plugin object.