diff --git a/api/swagger-spec/v1.json b/api/swagger-spec/v1.json index f1baf146938..f56018f3dfb 100644 --- a/api/swagger-spec/v1.json +++ b/api/swagger-spec/v1.json @@ -15902,11 +15902,36 @@ }, "host": { "type": "string", - "description": "Host name to connect to, defaults to the pod IP." + "description": "Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead." }, "scheme": { "type": "string", "description": "Scheme to use for connecting to the host. Defaults to HTTP." + }, + "httpHeaders": { + "type": "array", + "items": { + "$ref": "v1.HTTPHeader" + }, + "description": "Custom headers to set in the request. HTTP allows repeated headers." + } + } + }, + "v1.HTTPHeader": { + "id": "v1.HTTPHeader", + "description": "HTTPHeader describes a custom header to be used in HTTP probes", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string", + "description": "The header field name" + }, + "value": { + "type": "string", + "description": "The header field value" } } }, diff --git a/api/swagger-spec/v1beta1.json b/api/swagger-spec/v1beta1.json index be2ddfa57c7..f6471ff066c 100644 --- a/api/swagger-spec/v1beta1.json +++ b/api/swagger-spec/v1beta1.json @@ -4781,11 +4781,36 @@ }, "host": { "type": "string", - "description": "Host name to connect to, defaults to the pod IP." + "description": "Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead." }, "scheme": { "type": "string", "description": "Scheme to use for connecting to the host. Defaults to HTTP." + }, + "httpHeaders": { + "type": "array", + "items": { + "$ref": "v1.HTTPHeader" + }, + "description": "Custom headers to set in the request. HTTP allows repeated headers." + } + } + }, + "v1.HTTPHeader": { + "id": "v1.HTTPHeader", + "description": "HTTPHeader describes a custom header to be used in HTTP probes", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string", + "description": "The header field name" + }, + "value": { + "type": "string", + "description": "The header field value" } } }, diff --git a/docs/api-reference/extensions/v1beta1/definitions.html b/docs/api-reference/extensions/v1beta1/definitions.html index d435556773f..6d1780bc1fa 100755 --- a/docs/api-reference/extensions/v1beta1/definitions.html +++ b/docs/api-reference/extensions/v1beta1/definitions.html @@ -893,6 +893,47 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; } + +
HTTPHeader describes a custom header to be used in HTTP probes
+Name | +Description | +Required | +Schema | +Default | +
---|---|---|---|---|
name |
+The header field name |
+true |
+string |
++ |
value |
+The header field value |
+true |
+string |
++ |
host
Host name to connect to, defaults to the pod IP.
Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead.
false
string
string
httpHeaders
Custom headers to set in the request. HTTP allows repeated headers.
false
v1.HTTPHeader array